Parent Log: http://ci.aztec-labs.com/af1e240df4354864 Command: 7e183daba6e4e4c5: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/712835e3cfa2ed6f980f2d482aa4b0ae767046a7 Env: REF_NAME=gh-readonly-queue/next/pr-15077-4b0e4dc09fa55f0bc808fa0c7c3e95e8fa997069 CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Tue Jun 17 21:11:18 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15077_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 21:11:18 +++ id -u 21:11:18 +++ id -g 21:11:18 ++ docker run -d --name p2p_src_services_reqresp_connection-sampler_connection_sampler.test.ts --net=none --cpuset-cpus=0-63 --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:11:18 + cid=70a4c716187bb4ae390c83262621bc11fe84e939413b9a627cfb4cdd5f05235c 21:11:18 + set +x 21:11:20 [21:11:20.087] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.091] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.099] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.100] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.107] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.108] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.114] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.115] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.121] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.122] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.128] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.128] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.134] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.134] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.139] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.139] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.748] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.748] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.753] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.754] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.754] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.754] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.765] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.765] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.776] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.776] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.787] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.787] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.799] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.799] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.809] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.809] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.819] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.819] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 [21:11:20.829] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:11:20 [21:11:20.829] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:11:20 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 21:11:20 ConnectionSampler 21:11:20 getPeer 21:11:20 returns a random peer from the list (45 ms) 21:11:20 returns undefined if no peers are available (7 ms) 21:11:20 attempts to find peer with no active connections (8 ms) 21:11:20 should not sample a peer that is being excluded (6 ms) 21:11:20 connection management 21:11:20 correctly tracks active connections (8 ms) 21:11:20 handles multiple connections to same peer (6 ms) 21:11:20 handles errors during connection close (5 ms) 21:11:20 does not accidentally close a stream for another peer (5 ms) 21:11:20 cleanup 21:11:20 cleans up stale connections (608 ms) 21:11:20 properly cleans up on stop (6 ms) 21:11:20 samplePeersBatch 21:11:20 should only return samples as many peers as available (11 ms) 21:11:20 prioritizes peers without active connections (10 ms) 21:11:20 falls back to peers with connections when needed (10 ms) 21:11:20 handles case when all peers have active connections (11 ms) 21:11:20 handles case when fewer peers available than requested (11 ms) 21:11:20 handles case when no peers available (9 ms) 21:11:20 returns exactly the number of peers requested when available (9 ms) 21:11:20 21:11:20 Test Suites: 1 passed, 1 total 21:11:20 Tests: 17 passed, 17 total 21:11:20 Snapshots: 0 total 21:11:20 Time: 1.318 s 21:11:20 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 21:11:20 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?