Parent Log: http://ci.aztec-labs.com/a3bb03fa16e317bc Command: 00c2c16648004337: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/015cb0cadef6a41094c3649f32a735392e1b9693 Env: REF_NAME=gh-readonly-queue/master/pr-15027-e9a2301883801edbe36ea8bba05dcca7e714f30a CURRENT_VERSION=0.87.8 CI_FULL=0 Date: Wed Jun 18 14:28:08 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15027_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_master 14:28:08 +++ id -u 14:28:08 +++ id -g 14:28:08 ++ 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'\''' 14:28:09 + cid=0ba7bb5812c7aff979ee83364a42dd074b32c892b7f85176171ba8998419d32f 14:28:09 + set +x 14:28:10 [14:28:10.141] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.145] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.153] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.154] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.160] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.161] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.167] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.167] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.174] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.175] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.180] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.181] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.186] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.186] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.792] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.792] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.797] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.798] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.798] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.799] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.809] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.809] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.820] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.820] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.830] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.831] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.842] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.842] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.852] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.852] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.861] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.861] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 [14:28:10.871] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:28:10 [14:28:10.871] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:28:10 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 14:28:10 ConnectionSampler 14:28:10 getPeer 14:28:10 returns a random peer from the list (45 ms) 14:28:10 returns undefined if no peers are available (7 ms) 14:28:10 attempts to find peer with no active connections (8 ms) 14:28:10 should not sample a peer that is being excluded (6 ms) 14:28:10 connection management 14:28:10 correctly tracks active connections (7 ms) 14:28:10 handles multiple connections to same peer (5 ms) 14:28:10 handles errors during connection close (5 ms) 14:28:10 cleanup 14:28:10 cleans up stale connections (605 ms) 14:28:10 properly cleans up on stop (6 ms) 14:28:10 samplePeersBatch 14:28:10 should only return samples as many peers as available (10 ms) 14:28:10 prioritizes peers without active connections (10 ms) 14:28:10 falls back to peers with connections when needed (10 ms) 14:28:10 handles case when all peers have active connections (11 ms) 14:28:10 handles case when fewer peers available than requested (10 ms) 14:28:10 handles case when no peers available (10 ms) 14:28:10 returns exactly the number of peers requested when available (9 ms) 14:28:10 14:28:10 Test Suites: 1 passed, 1 total 14:28:10 Tests: 16 passed, 16 total 14:28:10 Snapshots: 0 total 14:28:10 Time: 1.174 s 14:28:10 Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i. 14:28:10 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?