Parent Log:
http://ci.aztec-labs.com/c4e91eecea7463a8
Command: d14a91e37c8b1083: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/97080f178c0a3e244c64b3c17bf255bed63fc3cf
Env: REF_NAME=gh-readonly-queue/next/pr-15065-4110b08ca823c6af4399e58e54e0483d6e3459ed CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 10:23:35 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15065_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
10:23:35 +++ id -u
10:23:35 +++ id -g
10:23:35 ++ 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'\'''
10:23:35 + cid=dc145e6c3be18a0c552405d73a5c85f99c7835aff08ed94bc0b10edea05010d1
10:23:35 + set +x
10:23:37 [10:23:37.343]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:37 [10:23:37.352]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:37 [10:23:37.368]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:37 [10:23:37.369]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:37 [10:23:37.382]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:37 [10:23:37.384]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:37 [10:23:37.397]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:37 [10:23:37.398]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:37 [10:23:37.411]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:37 [10:23:37.413]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:37 [10:23:37.433]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:37 [10:23:37.433]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:37 [10:23:37.451]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:37 [10:23:37.452]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:37 [10:23:37.471]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:37 [10:23:37.471]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.079]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.080]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.088]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.089]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.091]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.091]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.118]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.119]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.143]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.143]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.165]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.166]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.185]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.186]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.199]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.199]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.210]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.210]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38 [10:23:38.224]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:23:38 [10:23:38.224]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:23:38
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
10:23:38 ConnectionSampler
10:23:38 getPeer
10:23:38
✓ returns a random peer from the list (113 ms)
10:23:38
✓ returns undefined if no peers are available (14 ms)
10:23:38
✓ attempts to find peer with no active connections (14 ms)
10:23:38
✓ should not sample a peer that is being excluded (13 ms)
10:23:38 connection management
10:23:38
✓ correctly tracks active connections (15 ms)
10:23:38
✓ handles multiple connections to same peer (20 ms)
10:23:38
✓ handles errors during connection close (17 ms)
10:23:38
✓ does not accidentally close a stream for another peer (19 ms)
10:23:38 cleanup
10:23:38
✓ cleans up stale connections (608 ms)
10:23:38
✓ properly cleans up on stop (12 ms)
10:23:38 samplePeersBatch
10:23:38
✓ should only return samples as many peers as available (26 ms)
10:23:38
✓ prioritizes peers without active connections (24 ms)
10:23:38
✓ falls back to peers with connections when needed (22 ms)
10:23:38
✓ handles case when all peers have active connections (20 ms)
10:23:38
✓ handles case when fewer peers available than requested (12 ms)
10:23:38
✓ handles case when no peers available (10 ms)
10:23:38
✓ returns exactly the number of peers requested when available (14 ms)
10:23:38
10:23:38
Test Suites: 1 passed, 1 total
10:23:38
Tests: 17 passed, 17 total
10:23:38
Snapshots: 0 total
10:23:38
Time: 1.636 s
10:23:38
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
10:23:38
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?