Parent Log:
http://ci.aztec-labs.com/ac35d2fca3044326
Command: ca0909fea864dc4d: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/534f06e45f48274efd53a2204c90cb0b91a53efb
Env: REF_NAME=gh-readonly-queue/next/pr-15230-ad85cda24c2f9b5b4b17d4921f8597b71949bb6c CURRENT_VERSION=0.87.6 CI_FULL=0
Date: Tue Jun 24 20:52:14 UTC 2025
System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15230_arm64_a1-fast
Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
20:52:14 +++ id -u
20:52:14 +++ id -g
20:52:14 ++ 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'\'''
20:52:14 + cid=2994319371cd6b52458b926639a13a241e3fbd8b339b48444ad67d1d257d029f
20:52:14 + set +x
20:52:16 [20:52:16.226]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.230]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.238]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.239]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.245]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.246]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.252]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.253]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.259]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.260]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.266]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.266]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.271]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.272]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.278]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.278]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.884]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.884]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.889]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.890]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.890]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.890]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.901]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.901]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.912]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.913]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.924]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.925]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.935]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.935]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.945]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.946]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.955]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.955]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16 [20:52:16.966]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:52:16 [20:52:16.966]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:52:16
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
20:52:16 ConnectionSampler
20:52:16 getPeer
20:52:16
✓ returns a random peer from the list (44 ms)
20:52:16
✓ returns undefined if no peers are available (7 ms)
20:52:16
✓ attempts to find peer with no active connections (8 ms)
20:52:16
✓ should not sample a peer that is being excluded (6 ms)
20:52:16 connection management
20:52:16
✓ correctly tracks active connections (8 ms)
20:52:16
✓ handles multiple connections to same peer (5 ms)
20:52:16
✓ handles errors during connection close (5 ms)
20:52:16
✓ does not accidentally close a stream for another peer (6 ms)
20:52:16 cleanup
20:52:16
✓ cleans up stale connections (605 ms)
20:52:16
✓ properly cleans up on stop (6 ms)
20:52:16 samplePeersBatch
20:52:16
✓ should only return samples as many peers as available (11 ms)
20:52:16
✓ prioritizes peers without active connections (11 ms)
20:52:16
✓ falls back to peers with connections when needed (12 ms)
20:52:16
✓ handles case when all peers have active connections (11 ms)
20:52:16
✓ handles case when fewer peers available than requested (10 ms)
20:52:16
✓ handles case when no peers available (10 ms)
20:52:16
✓ returns exactly the number of peers requested when available (11 ms)
20:52:16
20:52:16
Test Suites: 1 passed, 1 total
20:52:16
Tests: 17 passed, 17 total
20:52:16
Snapshots: 0 total
20:52:16
Time: 1.286 s
20:52:16
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
20:52:16
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?