Parent Log:
http://ci.aztec-labs.com/391f36fa4313c6d4
Command: ccc91e389ae607c5: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/16fc84676c7308fa5f7ca4a54b67319803d0f5b7
Env: REF_NAME=gh-readonly-queue/next/pr-15072-991b313d676f7cf820bb62a33e57cf5a4c8cf9cf CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 15:58:06 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15072_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
15:58:06 +++ id -u
15:58:06 +++ id -g
15:58:06 ++ 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'\'''
15:58:06 + cid=f6c25677c1b27394a248f74b5980d00c68de829404f064a10c9b102606753ecb
15:58:06 + set +x
15:58:08 [15:58:08.502]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:08 [15:58:08.507]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:08 [15:58:08.518]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:08 [15:58:08.520]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:08 [15:58:08.528]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:08 [15:58:08.529]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:08 [15:58:08.537]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:08 [15:58:08.537]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:08 [15:58:08.544]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:08 [15:58:08.545]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:08 [15:58:08.552]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:08 [15:58:08.553]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:08 [15:58:08.560]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:08 [15:58:08.560]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:08 [15:58:08.569]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:08 [15:58:08.569]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.178]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.179]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.188]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.189]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.190]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.191]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.211]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.211]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.232]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.233]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.243]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.244]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.254]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.255]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.276]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.277]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.296]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.297]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09 [15:58:09.313]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:58:09 [15:58:09.314]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:58:09
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
15:58:09 ConnectionSampler
15:58:09 getPeer
15:58:09
✓ returns a random peer from the list (67 ms)
15:58:09
✓ returns undefined if no peers are available (10 ms)
15:58:09
✓ attempts to find peer with no active connections (9 ms)
15:58:09
✓ should not sample a peer that is being excluded (8 ms)
15:58:09 connection management
15:58:09
✓ correctly tracks active connections (7 ms)
15:58:09
✓ handles multiple connections to same peer (7 ms)
15:58:09
✓ handles errors during connection close (7 ms)
15:58:09
✓ does not accidentally close a stream for another peer (9 ms)
15:58:09 cleanup
15:58:09
✓ cleans up stale connections (609 ms)
15:58:09
✓ properly cleans up on stop (11 ms)
15:58:09 samplePeersBatch
15:58:09
✓ should only return samples as many peers as available (20 ms)
15:58:09
✓ prioritizes peers without active connections (21 ms)
15:58:09
✓ falls back to peers with connections when needed (11 ms)
15:58:09
✓ handles case when all peers have active connections (11 ms)
15:58:09
✓ handles case when fewer peers available than requested (18 ms)
15:58:09
✓ handles case when no peers available (20 ms)
15:58:09
✓ returns exactly the number of peers requested when available (16 ms)
15:58:09
15:58:09
Test Suites: 1 passed, 1 total
15:58:09
Tests: 17 passed, 17 total
15:58:09
Snapshots: 0 total
15:58:09
Time: 1.5 s
15:58:09
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
15:58:09
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?