Parent Log:
http://ci.aztec-labs.com/810a77e866dce8f5
Command: 411627cf9c043d00: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/721a41c449eb0c4538a26180f6061f326128cf78
Env: REF_NAME=gh-readonly-queue/next/pr-14963-60e60f99f2634ad75a76b6e103858ff9ccd041d5 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 18:41:32 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14963_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
18:41:32 +++ id -u
18:41:32 +++ id -g
18:41:32 ++ 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'\'''
18:41:32 + cid=61c1b104e53bd718827dfac62c82bd44390692c96554aae9bcc036603753cd42
18:41:32 + set +x
18:41:34 [18:41:34.560]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:34 [18:41:34.567]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:34 [18:41:34.577]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:34 [18:41:34.578]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:34 [18:41:34.585]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:34 [18:41:34.586]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:34 [18:41:34.592]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:34 [18:41:34.593]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:34 [18:41:34.601]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:34 [18:41:34.602]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:34 [18:41:34.611]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:34 [18:41:34.611]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:34 [18:41:34.617]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:34 [18:41:34.617]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:34 [18:41:34.622]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:34 [18:41:34.622]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.228]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.229]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.236]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.237]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.238]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.238]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.253]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.253]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.269]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.269]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.284]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.285]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.300]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.300]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.312]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.313]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.325]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.326]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35 [18:41:35.337]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:41:35 [18:41:35.337]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:41:35
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
18:41:35 ConnectionSampler
18:41:35 getPeer
18:41:35
✓ returns a random peer from the list (63 ms)
18:41:35
✓ returns undefined if no peers are available (8 ms)
18:41:35
✓ attempts to find peer with no active connections (8 ms)
18:41:35
✓ should not sample a peer that is being excluded (7 ms)
18:41:35 connection management
18:41:35
✓ correctly tracks active connections (9 ms)
18:41:35
✓ handles multiple connections to same peer (9 ms)
18:41:35
✓ handles errors during connection close (5 ms)
18:41:35
✓ does not accidentally close a stream for another peer (5 ms)
18:41:35 cleanup
18:41:35
✓ cleans up stale connections (606 ms)
18:41:35
✓ properly cleans up on stop (8 ms)
18:41:35 samplePeersBatch
18:41:35
✓ should only return samples as many peers as available (15 ms)
18:41:35
✓ prioritizes peers without active connections (16 ms)
18:41:35
✓ falls back to peers with connections when needed (15 ms)
18:41:35
✓ handles case when all peers have active connections (16 ms)
18:41:35
✓ handles case when fewer peers available than requested (12 ms)
18:41:35
✓ handles case when no peers available (13 ms)
18:41:35
✓ returns exactly the number of peers requested when available (12 ms)
18:41:35
18:41:35
Test Suites: 1 passed, 1 total
18:41:35
Tests: 17 passed, 17 total
18:41:35
Snapshots: 0 total
18:41:35
Time: 1.39 s
18:41:35
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
18:41:35
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?