Parent Log:
http://ci.aztec-labs.com/bba6ba24268b9dc1
Command: 1b54ea671a21576c: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/30660269b33bab8cca354c41659533acf4d48e07
Env: REF_NAME=gh-readonly-queue/next/pr-15026-d96baf1c44329e8b2e3a432ad803f702f5184a62 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 13 09:35:40 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15026_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
09:35:40 +++ id -u
09:35:40 +++ id -g
09:35:40 ++ 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'\'''
09:35:40 + cid=c9bf1044222debac2c487566837bfb2994898d379d93fc208c6943b8f7b03684
09:35:40 + set +x
09:35:42 [09:35:42.156]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.163]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.179]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.180]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.199]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.200]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.213]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.214]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.223]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.224]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.233]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.234]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.246]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.246]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.854]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.855]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.864]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.864]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.865]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.866]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.878]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.878]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.900]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.901]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.917]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.917]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.938]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.939]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.955]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.955]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.971]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.971]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:42 [09:35:42.993]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:35:42 [09:35:42.994]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:35:43
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
09:35:43 ConnectionSampler
09:35:43 getPeer
09:35:43
✓ returns a random peer from the list (101 ms)
09:35:43
✓ returns undefined if no peers are available (15 ms)
09:35:43
✓ attempts to find peer with no active connections (19 ms)
09:35:43
✓ should not sample a peer that is being excluded (12 ms)
09:35:43 connection management
09:35:43
✓ correctly tracks active connections (10 ms)
09:35:43
✓ handles multiple connections to same peer (9 ms)
09:35:43
✓ handles errors during connection close (12 ms)
09:35:43 cleanup
09:35:43
✓ cleans up stale connections (607 ms)
09:35:43
✓ properly cleans up on stop (10 ms)
09:35:43 samplePeersBatch
09:35:43
✓ should only return samples as many peers as available (13 ms)
09:35:43
✓ prioritizes peers without active connections (22 ms)
09:35:43
✓ falls back to peers with connections when needed (17 ms)
09:35:43
✓ handles case when all peers have active connections (21 ms)
09:35:43
✓ handles case when fewer peers available than requested (17 ms)
09:35:43
✓ handles case when no peers available (16 ms)
09:35:43
✓ returns exactly the number of peers requested when available (22 ms)
09:35:43
09:35:43
Test Suites: 1 passed, 1 total
09:35:43
Tests: 16 passed, 16 total
09:35:43
Snapshots: 0 total
09:35:43
Time: 1.53 s
09:35:43
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
09:35:43
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?