Parent Log: http://ci.aztec-labs.com/1923b10caa18faa7 Command: ffd1cbbe745b5db8: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/80d800435dd8dfa325e38593d83b405488449dba Env: REF_NAME=gh-readonly-queue/next/pr-14444-28bf32bfc2566751e8baa0a9125a9db20d474bee CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Fri Jun 20 16:00:52 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-14444_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 16:00:52 +++ id -u 16:00:52 +++ id -g 16:00:52 ++ 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'\''' 16:00:52 + cid=4ad15c6618d035f27edd8b729d2139270d2174f3c448db665ff55871c9300cbb 16:00:52 + set +x 16:00:53 [16:00:53.918] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:53 [16:00:53.923] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:53 [16:00:53.931] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:53 [16:00:53.931] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:53 [16:00:53.938] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:53 [16:00:53.939] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:53 [16:00:53.946] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:53 [16:00:53.946] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:53 [16:00:53.953] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:53 [16:00:53.954] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:53 [16:00:53.959] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:53 [16:00:53.960] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:53 [16:00:53.965] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:53 [16:00:53.966] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:53 [16:00:53.972] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:53 [16:00:53.972] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.579] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.579] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.584] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.585] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.585] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.585] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.596] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.596] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.607] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.607] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.619] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.620] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.630] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.630] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.640] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.641] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.650] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.651] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 [16:00:54.661] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:00:54 [16:00:54.661] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:00:54 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 16:00:54 ConnectionSampler 16:00:54 getPeer 16:00:54 returns a random peer from the list (45 ms) 16:00:54 returns undefined if no peers are available (7 ms) 16:00:54 attempts to find peer with no active connections (8 ms) 16:00:54 should not sample a peer that is being excluded (6 ms) 16:00:54 connection management 16:00:54 correctly tracks active connections (7 ms) 16:00:54 handles multiple connections to same peer (5 ms) 16:00:54 handles errors during connection close (5 ms) 16:00:54 does not accidentally close a stream for another peer (7 ms) 16:00:54 cleanup 16:00:54 cleans up stale connections (606 ms) 16:00:54 properly cleans up on stop (6 ms) 16:00:54 samplePeersBatch 16:00:54 should only return samples as many peers as available (11 ms) 16:00:54 prioritizes peers without active connections (11 ms) 16:00:54 falls back to peers with connections when needed (12 ms) 16:00:54 handles case when all peers have active connections (11 ms) 16:00:54 handles case when fewer peers available than requested (10 ms) 16:00:54 handles case when no peers available (10 ms) 16:00:54 returns exactly the number of peers requested when available (10 ms) 16:00:54 16:00:54 Test Suites: 1 passed, 1 total 16:00:54 Tests: 17 passed, 17 total 16:00:54 Snapshots: 0 total 16:00:54 Time: 1.314 s 16:00:54 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 16:00:54 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?