Parent Log:
http://ci.aztec-labs.com/f52c31edbe1f934c
Command: a668859b212fc7b1: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/3c1b9d57eadcc8fb03a7ed42610cf0a1ae4a32eb
Env: REF_NAME=gh-readonly-queue/next/pr-14858-4b0e4dc09fa55f0bc808fa0c7c3e95e8fa997069 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 17 21:40:14 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14858_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
21:40:14 +++ id -u
21:40:14 +++ id -g
21:40:14 ++ 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:40:15 + cid=fda344672f0c9977903c9a03815233c35741c7250db2425bc126fb66f6ab77a9
21:40:15 + set +x
21:40:17 [21:40:17.090]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.096]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.109]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.110]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.121]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.123]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.132]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.133]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.142]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.144]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.151]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.152]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.164]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.165]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.175]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.175]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.786]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.787]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.795]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.796]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.797]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.798]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.817]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.818]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.841]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.842]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.863]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.863]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.878]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.879]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.889]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.890]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.903]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.903]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17 [21:40:17.913]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
21:40:17 [21:40:17.913]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
21:40:17
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
21:40:17 ConnectionSampler
21:40:17 getPeer
21:40:17
✓ returns a random peer from the list (76 ms)
21:40:17
✓ returns undefined if no peers are available (12 ms)
21:40:17
✓ attempts to find peer with no active connections (13 ms)
21:40:17
✓ should not sample a peer that is being excluded (10 ms)
21:40:17 connection management
21:40:17
✓ correctly tracks active connections (10 ms)
21:40:17
✓ handles multiple connections to same peer (7 ms)
21:40:17
✓ handles errors during connection close (12 ms)
21:40:17
✓ does not accidentally close a stream for another peer (10 ms)
21:40:17 cleanup
21:40:17
✓ cleans up stale connections (611 ms)
21:40:17
✓ properly cleans up on stop (9 ms)
21:40:17 samplePeersBatch
21:40:17
✓ should only return samples as many peers as available (19 ms)
21:40:17
✓ prioritizes peers without active connections (23 ms)
21:40:17
✓ falls back to peers with connections when needed (22 ms)
21:40:17
✓ handles case when all peers have active connections (15 ms)
21:40:17
✓ handles case when fewer peers available than requested (11 ms)
21:40:17
✓ handles case when no peers available (13 ms)
21:40:17
✓ returns exactly the number of peers requested when available (9 ms)
21:40:17
21:40:17
Test Suites: 1 passed, 1 total
21:40:17
Tests: 17 passed, 17 total
21:40:17
Snapshots: 0 total
21:40:17
Time: 1.579 s
21:40:17
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
21:40:17
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?