Parent Log: http://ci.aztec-labs.com/c1f491862c605f23 Command: 6db87052395d3483: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/41cc1f518fed92110a82ce3c59385a3f5c0d8817 Env: REF_NAME=gh-readonly-queue/next/pr-15041-9cf4a24266245fa3ca003adb00e8ae759880c107 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 17:15:46 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15041_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 17:15:46 +++ id -u 17:15:46 +++ id -g 17:15:46 ++ 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'\''' 17:15:46 + cid=d2441124e4b7ac4ed31074ed585f7e32948aecc873134ae195760a3f2a246ac7 17:15:46 + set +x 17:15:48 [17:15:48.596] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:48 [17:15:48.602] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:48 [17:15:48.614] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:48 [17:15:48.615] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:48 [17:15:48.623] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:48 [17:15:48.624] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:48 [17:15:48.632] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:48 [17:15:48.633] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:48 [17:15:48.639] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:48 [17:15:48.640] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:48 [17:15:48.649] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:48 [17:15:48.649] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:48 [17:15:48.655] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:48 [17:15:48.656] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:48 [17:15:48.662] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:48 [17:15:48.662] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.269] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.269] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.280] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.280] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.281] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.282] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.297] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.298] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.311] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.311] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.324] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.325] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.335] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.335] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.349] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.349] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.361] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.365] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 [17:15:49.380] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 17:15:49 [17:15:49.381] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 17:15:49 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 17:15:49 ConnectionSampler 17:15:49 getPeer 17:15:49 returns a random peer from the list (68 ms) 17:15:49 returns undefined if no peers are available (11 ms) 17:15:49 attempts to find peer with no active connections (8 ms) 17:15:49 should not sample a peer that is being excluded (8 ms) 17:15:49 connection management 17:15:49 correctly tracks active connections (7 ms) 17:15:49 handles multiple connections to same peer (9 ms) 17:15:49 handles errors during connection close (6 ms) 17:15:49 does not accidentally close a stream for another peer (6 ms) 17:15:49 cleanup 17:15:49 cleans up stale connections (607 ms) 17:15:49 properly cleans up on stop (12 ms) 17:15:49 samplePeersBatch 17:15:49 should only return samples as many peers as available (16 ms) 17:15:49 prioritizes peers without active connections (12 ms) 17:15:49 falls back to peers with connections when needed (14 ms) 17:15:49 handles case when all peers have active connections (10 ms) 17:15:49 handles case when fewer peers available than requested (14 ms) 17:15:49 handles case when no peers available (15 ms) 17:15:49 returns exactly the number of peers requested when available (15 ms) 17:15:49 17:15:49 Test Suites: 1 passed, 1 total 17:15:49 Tests: 17 passed, 17 total 17:15:49 Snapshots: 0 total 17:15:49 Time: 1.387 s 17:15:49 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 17:15:49 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?