Parent Log:
http://ci.aztec-labs.com/20565fb19cf53bed
Command: 557c108a8ed544a3: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/4b0e4dc09fa55f0bc808fa0c7c3e95e8fa997069
Env: REF_NAME=gh-readonly-queue/next/pr-15116-433ba6218aed45169029991a493e4232b30b8ec6 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 17 20:30:36 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15116_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
20:30:36 +++ id -u
20:30:36 +++ id -g
20:30:36 ++ 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'\'''
20:30:36 + cid=caf463987cf05ee6fc1c7502ae4624823aed75ff2bb0740f538098518435e395
20:30:36 + set +x
20:30:38 [20:30:38.246]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.254]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.267]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.267]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.278]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.279]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.287]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.287]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.297]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.298]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.305]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.306]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.313]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.314]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.321]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.321]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.932]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.933]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.939]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.940]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.941]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.941]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.960]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.961]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:38 [20:30:38.979]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:38 [20:30:38.980]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:39 [20:30:38.999]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:39 [20:30:39.000]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:39 [20:30:39.021]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:39 [20:30:39.022]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:39 [20:30:39.041]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:39 [20:30:39.042]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:39 [20:30:39.057]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:39 [20:30:39.058]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:39 [20:30:39.075]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
20:30:39 [20:30:39.075]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
20:30:39
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
20:30:39 ConnectionSampler
20:30:39 getPeer
20:30:39
✓ returns a random peer from the list (58 ms)
20:30:39
✓ returns undefined if no peers are available (12 ms)
20:30:39
✓ attempts to find peer with no active connections (11 ms)
20:30:39
✓ should not sample a peer that is being excluded (8 ms)
20:30:39 connection management
20:30:39
✓ correctly tracks active connections (10 ms)
20:30:39
✓ handles multiple connections to same peer (7 ms)
20:30:39
✓ handles errors during connection close (8 ms)
20:30:39
✓ does not accidentally close a stream for another peer (8 ms)
20:30:39 cleanup
20:30:39
✓ cleans up stale connections (611 ms)
20:30:39
✓ properly cleans up on stop (8 ms)
20:30:39 samplePeersBatch
20:30:39
✓ should only return samples as many peers as available (20 ms)
20:30:39
✓ prioritizes peers without active connections (18 ms)
20:30:39
✓ falls back to peers with connections when needed (20 ms)
20:30:39
✓ handles case when all peers have active connections (21 ms)
20:30:39
✓ handles case when fewer peers available than requested (19 ms)
20:30:39
✓ handles case when no peers available (15 ms)
20:30:39
✓ returns exactly the number of peers requested when available (17 ms)
20:30:39
20:30:39
Test Suites: 1 passed, 1 total
20:30:39
Tests: 17 passed, 17 total
20:30:39
Snapshots: 0 total
20:30:39
Time: 1.536 s
20:30:39
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
20:30:39
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?