Parent Log: http://ci.aztec-labs.com/2dd73c7f6b4dcf15 Command: c118fea9c063e772: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/12d931e5ea9343eec403068931d3121e1d10e37e Env: REF_NAME=gh-readonly-queue/next/pr-15042-254faae7d330e160b14c6eaaa099dc92d4a9cac7 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 12:35:02 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15042_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 12:35:02 +++ id -u 12:35:02 +++ id -g 12:35:02 ++ 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'\''' 12:35:03 + cid=4701785dd8ff74d03dd3a40ae713e4e9fd541b4094feedfefa12a40c343f6ec6 12:35:03 + set +x 12:35:04 [12:35:04.659] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:04 [12:35:04.666] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:04 [12:35:04.676] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:04 [12:35:04.677] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:04 [12:35:04.690] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:04 [12:35:04.691] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:04 [12:35:04.702] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:04 [12:35:04.702] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:04 [12:35:04.713] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:04 [12:35:04.714] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:04 [12:35:04.722] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:04 [12:35:04.723] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:04 [12:35:04.730] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:04 [12:35:04.730] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:04 [12:35:04.735] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:04 [12:35:04.736] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.341] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.342] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.354] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.355] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.356] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.356] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.375] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.376] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.392] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.393] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.410] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.410] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.428] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.429] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.441] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.442] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.456] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.457] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 [12:35:05.466] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:35:05 [12:35:05.467] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:35:05 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 12:35:05 ConnectionSampler 12:35:05 getPeer 12:35:05 returns a random peer from the list (70 ms) 12:35:05 returns undefined if no peers are available (10 ms) 12:35:05 attempts to find peer with no active connections (13 ms) 12:35:05 should not sample a peer that is being excluded (10 ms) 12:35:05 connection management 12:35:05 correctly tracks active connections (12 ms) 12:35:05 handles multiple connections to same peer (8 ms) 12:35:05 handles errors during connection close (6 ms) 12:35:05 does not accidentally close a stream for another peer (5 ms) 12:35:05 cleanup 12:35:05 cleans up stale connections (606 ms) 12:35:05 properly cleans up on stop (13 ms) 12:35:05 samplePeersBatch 12:35:05 should only return samples as many peers as available (19 ms) 12:35:05 prioritizes peers without active connections (17 ms) 12:35:05 falls back to peers with connections when needed (18 ms) 12:35:05 handles case when all peers have active connections (18 ms) 12:35:05 handles case when fewer peers available than requested (13 ms) 12:35:05 handles case when no peers available (14 ms) 12:35:05 returns exactly the number of peers requested when available (10 ms) 12:35:05 12:35:05 Test Suites: 1 passed, 1 total 12:35:05 Tests: 17 passed, 17 total 12:35:05 Snapshots: 0 total 12:35:05 Time: 1.484 s 12:35:05 Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i. 12:35:05 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?