Parent Log: http://ci.aztec-labs.com/171b2d80c85afdbd Command: eebb3ae31c0c785a: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/cbd66b52b44f3aad75bf6e52a67987ed206598aa Env: REF_NAME=gh-readonly-queue/next/pr-15121-5d017313171ed95ebc6dbf88c1dffe207497338e CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Wed Jun 18 20:43:16 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15121_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 20:43:16 +++ id -u 20:43:16 +++ id -g 20:43:16 ++ 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'\''' 20:43:16 + cid=a00626956fa8a6154ce8db001e2227cc0d9c51a454d5650a9231a62aaec97f4a 20:43:16 + set +x 20:43:17 [20:43:17.607] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:17 [20:43:17.611] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:17 [20:43:17.619] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:17 [20:43:17.620] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:17 [20:43:17.627] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:17 [20:43:17.628] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:17 [20:43:17.634] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:17 [20:43:17.634] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:17 [20:43:17.641] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:17 [20:43:17.642] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:17 [20:43:17.647] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:17 [20:43:17.648] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:17 [20:43:17.653] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:17 [20:43:17.653] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:17 [20:43:17.660] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:17 [20:43:17.660] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.265] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.266] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.271] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.271] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.272] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.272] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.283] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.283] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.294] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.294] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.306] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.307] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.317] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.317] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.328] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.328] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.338] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.338] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 [20:43:18.348] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:43:18 [20:43:18.349] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:43:18 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 20:43:18 ConnectionSampler 20:43:18 getPeer 20:43:18 returns a random peer from the list (45 ms) 20:43:18 returns undefined if no peers are available (7 ms) 20:43:18 attempts to find peer with no active connections (8 ms) 20:43:18 should not sample a peer that is being excluded (6 ms) 20:43:18 connection management 20:43:18 correctly tracks active connections (7 ms) 20:43:18 handles multiple connections to same peer (5 ms) 20:43:18 handles errors during connection close (5 ms) 20:43:18 does not accidentally close a stream for another peer (7 ms) 20:43:18 cleanup 20:43:18 cleans up stale connections (605 ms) 20:43:18 properly cleans up on stop (6 ms) 20:43:18 samplePeersBatch 20:43:18 should only return samples as many peers as available (12 ms) 20:43:18 prioritizes peers without active connections (11 ms) 20:43:18 falls back to peers with connections when needed (12 ms) 20:43:18 handles case when all peers have active connections (11 ms) 20:43:18 handles case when fewer peers available than requested (10 ms) 20:43:18 handles case when no peers available (10 ms) 20:43:18 returns exactly the number of peers requested when available (11 ms) 20:43:18 20:43:18 Test Suites: 1 passed, 1 total 20:43:18 Tests: 17 passed, 17 total 20:43:18 Snapshots: 0 total 20:43:18 Time: 1.314 s 20:43:18 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 20:43:18 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?