Parent Log:
http://ci.aztec-labs.com/442c01a86f347561
Command: 519e29bba0e33530: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/2469b5f1633350f6be15733c04242af1cdc98227
Env: REF_NAME=gh-readonly-queue/next/pr-15042-ee3655e025191bc85c5b3d3122eeedb44e38ffb2 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 19:44:09 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15042_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
19:44:09 +++ id -u
19:44:09 +++ id -g
19:44:09 ++ docker run -d --name p2p_src_services_reqresp_connection-sampler_connection_sampler.test.ts --net=none --cpuset-cpus=0-127 --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'\'''
19:44:10 + cid=2e827a8b43f1f5fcec3b9b66e6a645aa4c6d139f923c794bd779cfdd1a4ba931
19:44:10 + set +x
19:44:12 [19:44:12.064]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.069]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.079]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.080]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.087]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.088]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.096]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.096]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.107]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.108]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.122]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.123]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.134]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.135]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.143]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.144]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.753]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.753]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.760]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.761]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.761]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.761]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.775]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.775]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.790]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.790]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.802]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.803]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.813]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.814]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.829]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.830]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.843]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.843]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12 [19:44:12.860]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
19:44:12 [19:44:12.860]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
19:44:12
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
19:44:12 ConnectionSampler
19:44:12 getPeer
19:44:12
✓ returns a random peer from the list (65 ms)
19:44:12
✓ returns undefined if no peers are available (9 ms)
19:44:12
✓ attempts to find peer with no active connections (7 ms)
19:44:12
✓ should not sample a peer that is being excluded (8 ms)
19:44:12 connection management
19:44:12
✓ correctly tracks active connections (11 ms)
19:44:12
✓ handles multiple connections to same peer (15 ms)
19:44:12
✓ handles errors during connection close (10 ms)
19:44:12
✓ does not accidentally close a stream for another peer (8 ms)
19:44:12 cleanup
19:44:12
✓ cleans up stale connections (608 ms)
19:44:12
✓ properly cleans up on stop (8 ms)
19:44:12 samplePeersBatch
19:44:12
✓ should only return samples as many peers as available (14 ms)
19:44:12
✓ prioritizes peers without active connections (14 ms)
19:44:12
✓ falls back to peers with connections when needed (12 ms)
19:44:12
✓ handles case when all peers have active connections (11 ms)
19:44:12
✓ handles case when fewer peers available than requested (16 ms)
19:44:12
✓ handles case when no peers available (15 ms)
19:44:12
✓ returns exactly the number of peers requested when available (15 ms)
19:44:12
19:44:12
Test Suites: 1 passed, 1 total
19:44:12
Tests: 17 passed, 17 total
19:44:12
Snapshots: 0 total
19:44:12
Time: 1.545 s
19:44:12
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
19:44:12
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?