Parent Log: http://ci.aztec-labs.com/a0947d4e5c3fb9d9 Command: 3cad4e1fd0756a5c: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/e9a2301883801edbe36ea8bba05dcca7e714f30a Env: REF_NAME=gh-readonly-queue/master/pr-15131-464e1a9d9b40b5188586643b44bc52bffccbc3e6 CURRENT_VERSION=0.87.8 CI_FULL=1 Date: Wed Jun 18 12:51:47 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15131_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_master 12:51:47 +++ id -u 12:51:47 +++ id -g 12:51:47 ++ 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:51:47 + cid=e4fa7292bbf28cb730aaf4cfea5bd98bc841bc92d2dd28c8f38e083597ffb613 12:51:47 + set +x 12:51:49 [12:51:49.147] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.152] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.163] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.164] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.175] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.176] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.190] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.191] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.206] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.207] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.216] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.216] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.228] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.229] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.840] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.841] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.848] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.849] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.850] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.850] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.864] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.865] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.883] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.888] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.910] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.911] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.926] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.927] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.938] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.939] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.950] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.950] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 [12:51:49.964] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:51:49 [12:51:49.964] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:51:49 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 12:51:49 ConnectionSampler 12:51:49 getPeer 12:51:49 returns a random peer from the list (81 ms) 12:51:49 returns undefined if no peers are available (10 ms) 12:51:49 attempts to find peer with no active connections (13 ms) 12:51:49 should not sample a peer that is being excluded (15 ms) 12:51:49 connection management 12:51:49 correctly tracks active connections (14 ms) 12:51:49 handles multiple connections to same peer (9 ms) 12:51:49 handles errors during connection close (12 ms) 12:51:49 cleanup 12:51:49 cleans up stale connections (611 ms) 12:51:49 properly cleans up on stop (9 ms) 12:51:49 samplePeersBatch 12:51:49 should only return samples as many peers as available (14 ms) 12:51:49 prioritizes peers without active connections (24 ms) 12:51:49 falls back to peers with connections when needed (22 ms) 12:51:49 handles case when all peers have active connections (16 ms) 12:51:49 handles case when fewer peers available than requested (12 ms) 12:51:49 handles case when no peers available (12 ms) 12:51:49 returns exactly the number of peers requested when available (14 ms) 12:51:49 12:51:49 Test Suites: 1 passed, 1 total 12:51:49 Tests: 16 passed, 16 total 12:51:49 Snapshots: 0 total 12:51:49 Time: 1.459 s 12:51:49 Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i. 12:51:49 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?