Parent Log:
http://ci.aztec-labs.com/dd99e75a6da3da84
Command: 53a3eb771435c939: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/6e3848bbd6845559b55825f0bc64df0673272969
Env: REF_NAME=gh-readonly-queue/next/pr-15167-bae1f0ed01e43b291f60c0888e05ceb15d4bb6f6 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 09:38:12 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15167_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
09:38:12 +++ id -u
09:38:12 +++ id -g
09:38:12 ++ 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:38:13 + cid=85014da9b83579a680dab5e5ef4eb293f59b4f30bd8b5263a38f9ea59d7d8727
09:38:13 + set +x
09:38:14 [09:38:14.765]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:14 [09:38:14.774]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:14 [09:38:14.784]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:14 [09:38:14.784]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:14 [09:38:14.792]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:14 [09:38:14.793]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:14 [09:38:14.801]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:14 [09:38:14.801]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:14 [09:38:14.809]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:14 [09:38:14.810]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:14 [09:38:14.817]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:14 [09:38:14.818]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:14 [09:38:14.823]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:14 [09:38:14.823]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:14 [09:38:14.832]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:14 [09:38:14.832]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.440]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.441]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.449]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.450]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.450]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.451]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.468]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.469]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.487]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.487]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.505]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.506]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.518]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.519]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.530]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.531]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.544]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.544]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15 [09:38:15.557]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:38:15 [09:38:15.558]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:38:15
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
09:38:15 ConnectionSampler
09:38:15 getPeer
09:38:15
✓ returns a random peer from the list (63 ms)
09:38:15
✓ returns undefined if no peers are available (9 ms)
09:38:15
✓ attempts to find peer with no active connections (8 ms)
09:38:15
✓ should not sample a peer that is being excluded (8 ms)
09:38:15 connection management
09:38:15
✓ correctly tracks active connections (9 ms)
09:38:15
✓ handles multiple connections to same peer (7 ms)
09:38:15
✓ handles errors during connection close (5 ms)
09:38:15
✓ does not accidentally close a stream for another peer (9 ms)
09:38:15 cleanup
09:38:15
✓ cleans up stale connections (608 ms)
09:38:15
✓ properly cleans up on stop (9 ms)
09:38:15 samplePeersBatch
09:38:15
✓ should only return samples as many peers as available (18 ms)
09:38:15
✓ prioritizes peers without active connections (18 ms)
09:38:15
✓ falls back to peers with connections when needed (18 ms)
09:38:15
✓ handles case when all peers have active connections (13 ms)
09:38:15
✓ handles case when fewer peers available than requested (12 ms)
09:38:15
✓ handles case when no peers available (13 ms)
09:38:15
✓ returns exactly the number of peers requested when available (13 ms)
09:38:15
09:38:15
Test Suites: 1 passed, 1 total
09:38:15
Tests: 17 passed, 17 total
09:38:15
Snapshots: 0 total
09:38:15
Time: 1.534 s
09:38:15
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
09:38:15
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?