Parent Log:
http://ci.aztec-labs.com/f83f1f9579928671
Command: 17e0d785507e6983: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/5867520ed258adecfee692b3694d693b2c7964ca
Env: REF_NAME=gh-readonly-queue/next/pr-14770-9b801754ba98479ee645488c29d2fda1eecbfd85 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 21:51:40 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14770_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
21:51:40 +++ id -u
21:51:40 +++ id -g
21:51:40 ++ 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'\'''
21:51:40 + cid=3b826928e5a098f9f8a7c59dc3b60aa7c20a56103f4b303913effc4cd835f663
21:51:40 + set +x
21:51:42 [21:51:42.334]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:42 [21:51:42.341]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:42 [21:51:42.367]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:42 [21:51:42.368]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:42 [21:51:42.381]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:42 [21:51:42.383]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:42 [21:51:42.393]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:42 [21:51:42.393]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:42 [21:51:42.403]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:42 [21:51:42.404]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:42 [21:51:42.415]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:42 [21:51:42.415]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:42 [21:51:42.423]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:42 [21:51:42.423]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:42 [21:51:42.431]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:42 [21:51:42.432]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.041]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.042]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.050]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.050]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.055]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.055]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.075]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.075]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.093]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.093]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.112]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.112]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.128]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.129]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.145]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.145]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.161]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.161]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43 [21:51:43.179]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:51:43 [21:51:43.179]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:51:43
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
21:51:43 ConnectionSampler
21:51:43 getPeer
21:51:43
✓ returns a random peer from the list (51 ms)
21:51:43
✓ returns undefined if no peers are available (25 ms)
21:51:43
✓ attempts to find peer with no active connections (14 ms)
21:51:43
✓ should not sample a peer that is being excluded (10 ms)
21:51:43 connection management
21:51:43
✓ correctly tracks active connections (11 ms)
21:51:43
✓ handles multiple connections to same peer (10 ms)
21:51:43
✓ handles errors during connection close (7 ms)
21:51:43
✓ does not accidentally close a stream for another peer (8 ms)
21:51:43 cleanup
21:51:43
✓ cleans up stale connections (609 ms)
21:51:43
✓ properly cleans up on stop (12 ms)
21:51:43 samplePeersBatch
21:51:43
✓ should only return samples as many peers as available (21 ms)
21:51:43
✓ prioritizes peers without active connections (17 ms)
21:51:43
✓ falls back to peers with connections when needed (18 ms)
21:51:43
✓ handles case when all peers have active connections (16 ms)
21:51:43
✓ handles case when fewer peers available than requested (16 ms)
21:51:43
✓ handles case when no peers available (16 ms)
21:51:43
✓ returns exactly the number of peers requested when available (18 ms)
21:51:43
21:51:43
Test Suites: 1 passed, 1 total
21:51:43
Tests: 17 passed, 17 total
21:51:43
Snapshots: 0 total
21:51:43
Time: 1.503 s
21:51:43
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
21:51:43
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?