Parent Log:
http://ci.aztec-labs.com/66a4a534a6c10a99
Command: cbdd76383a795445:ISOLATE=1:NAME=p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts yarn-project/scripts/run_test.sh p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
Commit:
https://github.com/AztecProtocol/aztec-packages/commit/9ba478709ce5c48099f79f9531da8292811cb18a
Env: REF_NAME=gh-readonly-queue/staging/pr-15247-3863bc02d671057d0cffd4ced17ca317788ff190 CURRENT_VERSION=1.0.0 CI_FULL=0
Date: Tue Jun 24 15:04:09 UTC 2025
System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15247_arm64_a1-fast
Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_staging
15:04:09 +++ id -u
15:04:09 +++ id -g
15:04:09 ++ docker run -d --name p2p_src_services_reqresp_connection-sampler_connection_sampler.test.ts --net=none --cpuset-cpus=0-63 --cpus=2 --memory=8g --user 1000:1000 -v/home/aztec-dev:/home/aztec-dev --mount type=tmpfs,target=/tmp,tmpfs-size=1g --workdir /home/aztec-dev/aztec-packages -e HOME -e VERBOSE -e GIT_CONFIG_GLOBAL=/home/aztec-dev/aztec-packages/build-images/src/home/.gitconfig -e FORCE_COLOR=true -e CPUS -e MEM aztecprotocol/build:3.0 /bin/bash -c 'timeout -v 600s bash -c '\''yarn-project/scripts/run_test.sh p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts'\'''
15:04:09 + cid=c356fc63a636703c3a81bc8a7d6bc4b766c73a53988d53acfea92004484102fb
15:04:09 + set +x
15:04:10 [15:04:10.552]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:10 [15:04:10.556]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:10 [15:04:10.564]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:10 [15:04:10.565]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:10 [15:04:10.572]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:10 [15:04:10.573]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:10 [15:04:10.579]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:10 [15:04:10.579]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:10 [15:04:10.585]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:10 [15:04:10.587]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:10 [15:04:10.592]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:10 [15:04:10.593]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:10 [15:04:10.598]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:10 [15:04:10.598]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:10 [15:04:10.605]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:10 [15:04:10.605]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.211]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.211]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.217]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.217]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.217]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.218]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.228]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.229]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.240]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.240]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.252]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.252]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.262]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.263]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.273]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.273]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.282]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.283]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11 [15:04:11.293]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:04:11 [15:04:11.294]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:04:11
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
15:04:11 ConnectionSampler
15:04:11 getPeer
15:04:11
✓ returns a random peer from the list (44 ms)
15:04:11
✓ returns undefined if no peers are available (7 ms)
15:04:11
✓ attempts to find peer with no active connections (8 ms)
15:04:11
✓ should not sample a peer that is being excluded (6 ms)
15:04:11 connection management
15:04:11
✓ correctly tracks active connections (7 ms)
15:04:11
✓ handles multiple connections to same peer (5 ms)
15:04:11
✓ handles errors during connection close (5 ms)
15:04:11
✓ does not accidentally close a stream for another peer (6 ms)
15:04:11 cleanup
15:04:11
✓ cleans up stale connections (606 ms)
15:04:11
✓ properly cleans up on stop (6 ms)
15:04:11 samplePeersBatch
15:04:11
✓ should only return samples as many peers as available (11 ms)
15:04:11
✓ prioritizes peers without active connections (11 ms)
15:04:11
✓ falls back to peers with connections when needed (12 ms)
15:04:11
✓ handles case when all peers have active connections (11 ms)
15:04:11
✓ handles case when fewer peers available than requested (10 ms)
15:04:11
✓ handles case when no peers available (10 ms)
15:04:11
✓ returns exactly the number of peers requested when available (11 ms)
15:04:11
15:04:11
Test Suites: 1 passed, 1 total
15:04:11
Tests: 17 passed, 17 total
15:04:11
Snapshots: 0 total
15:04:11
Time: 1.292 s
15:04:11
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
15:04:11
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?