Parent Log:
http://ci.aztec-labs.com/6da82d58e72c43f4
Command: d5ace37751aeb3b2: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/64d1ec347b1cea9fa1b04ff6fc2984f8ee073b2b
Env: REF_NAME=gh-readonly-queue/next/pr-15185-107a625e4a5b124b87c02fa9ff2ae12b5778baa9 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 14:49:52 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15185_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
14:49:52 +++ id -u
14:49:52 +++ id -g
14:49:52 ++ 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'\'''
14:49:52 + cid=34c372aaf3d2a450d84fffcd1dc4fe8a004641c46cec161b34220bfaa2deac33
14:49:52 + set +x
14:49:54 [14:49:54.227]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.231]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.239]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.239]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.248]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.249]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.256]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.256]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.265]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.266]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.271]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.272]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.280]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.281]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.291]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.292]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.899]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.900]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.908]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.908]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.909]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.909]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.919]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.920]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.931]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.932]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.946]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.946]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.958]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.959]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.970]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.970]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.980]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.980]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:54 [14:49:54.995]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:54 [14:49:54.995]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:55
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
14:49:55 ConnectionSampler
14:49:55 getPeer
14:49:55
✓ returns a random peer from the list (66 ms)
14:49:55
✓ returns undefined if no peers are available (7 ms)
14:49:55
✓ attempts to find peer with no active connections (9 ms)
14:49:55
✓ should not sample a peer that is being excluded (8 ms)
14:49:55 connection management
14:49:55
✓ correctly tracks active connections (9 ms)
14:49:55
✓ handles multiple connections to same peer (6 ms)
14:49:55
✓ handles errors during connection close (8 ms)
14:49:55
✓ does not accidentally close a stream for another peer (12 ms)
14:49:55 cleanup
14:49:55
✓ cleans up stale connections (607 ms)
14:49:55
✓ properly cleans up on stop (8 ms)
14:49:55 samplePeersBatch
14:49:55
✓ should only return samples as many peers as available (10 ms)
14:49:55
✓ prioritizes peers without active connections (12 ms)
14:49:55
✓ falls back to peers with connections when needed (14 ms)
14:49:55
✓ handles case when all peers have active connections (12 ms)
14:49:55
✓ handles case when fewer peers available than requested (11 ms)
14:49:55
✓ handles case when no peers available (9 ms)
14:49:55
✓ returns exactly the number of peers requested when available (15 ms)
14:49:55
14:49:55
Test Suites: 1 passed, 1 total
14:49:55
Tests: 17 passed, 17 total
14:49:55
Snapshots: 0 total
14:49:55
Time: 1.449 s
14:49:55
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
14:49:55
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?