Parent Log:
http://ci.aztec-labs.com/1d91b979ad0fe7b8
Command: 516191759f225b4f: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/0f26f87af2947423f556c64f03e0100cbf5136f7
Env: REF_NAME=gh-readonly-queue/next/pr-15273-74eeec5d95106217d3b3f3068853022cef7fa307 CURRENT_VERSION=0.87.6 CI_FULL=0
Date: Wed Jun 25 10:58:43 UTC 2025
System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15273_arm64_a1-fast
Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
10:58:43 +++ id -u
10:58:43 +++ id -g
10:58:43 ++ 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'\'''
10:58:43 + cid=0c0f010189d5ab5dee3184f533c156ff1e63a1345b546a2a3eca37f1233ffca5
10:58:43 + set +x
10:58:44 [10:58:44.902]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:44 [10:58:44.906]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:44 [10:58:44.914]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:44 [10:58:44.915]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:44 [10:58:44.921]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:44 [10:58:44.923]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:44 [10:58:44.929]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:44 [10:58:44.929]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:44 [10:58:44.936]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:44 [10:58:44.937]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:44 [10:58:44.942]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:44 [10:58:44.943]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:44 [10:58:44.948]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:44 [10:58:44.948]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:44 [10:58:44.955]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:44 [10:58:44.955]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.561]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.561]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.567]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.567]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.567]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.568]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.579]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.579]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.590]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.590]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.602]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.602]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.613]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.613]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.624]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.624]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.633]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.634]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45 [10:58:45.644]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:58:45 [10:58:45.645]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:58:45
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
10:58:45 ConnectionSampler
10:58:45 getPeer
10:58:45
✓ returns a random peer from the list (45 ms)
10:58:45
✓ returns undefined if no peers are available (7 ms)
10:58:45
✓ attempts to find peer with no active connections (8 ms)
10:58:45
✓ should not sample a peer that is being excluded (6 ms)
10:58:45 connection management
10:58:45
✓ correctly tracks active connections (8 ms)
10:58:45
✓ handles multiple connections to same peer (5 ms)
10:58:45
✓ handles errors during connection close (5 ms)
10:58:45
✓ does not accidentally close a stream for another peer (7 ms)
10:58:45 cleanup
10:58:45
✓ cleans up stale connections (606 ms)
10:58:45
✓ properly cleans up on stop (6 ms)
10:58:45 samplePeersBatch
10:58:45
✓ should only return samples as many peers as available (11 ms)
10:58:45
✓ prioritizes peers without active connections (11 ms)
10:58:45
✓ falls back to peers with connections when needed (12 ms)
10:58:45
✓ handles case when all peers have active connections (11 ms)
10:58:45
✓ handles case when fewer peers available than requested (10 ms)
10:58:45
✓ handles case when no peers available (10 ms)
10:58:45
✓ returns exactly the number of peers requested when available (11 ms)
10:58:45
10:58:45
Test Suites: 1 passed, 1 total
10:58:45
Tests: 17 passed, 17 total
10:58:45
Snapshots: 0 total
10:58:45
Time: 1.279 s
10:58:45
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
10:58:45
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?