Parent Log: http://ci.aztec-labs.com/db09ed9f3e5496bc Command: 4482f7e540fd470f: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/ee3655e025191bc85c5b3d3122eeedb44e38ffb2 Env: REF_NAME=gh-readonly-queue/next/pr-15076-60e60f99f2634ad75a76b6e103858ff9ccd041d5 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 19:12:45 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15076_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 19:12:45 +++ id -u 19:12:45 +++ id -g 19:12:45 ++ 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'\''' 19:12:46 + cid=dd2c40835561585d904b5ad65be887d2c0e6115f8bc9c094c4988c9e6afdb012 19:12:46 + set +x 19:12:47 [19:12:47.844] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:47 [19:12:47.849] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:47 [19:12:47.860] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:47 [19:12:47.861] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:47 [19:12:47.872] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:47 [19:12:47.874] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:47 [19:12:47.883] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:47 [19:12:47.883] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:47 [19:12:47.893] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:47 [19:12:47.894] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:47 [19:12:47.904] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:47 [19:12:47.905] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:47 [19:12:47.912] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:47 [19:12:47.913] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:47 [19:12:47.922] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:47 [19:12:47.922] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.532] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.533] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.540] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.541] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.541] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.541] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.554] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.555] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.570] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.571] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.591] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.591] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.605] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.606] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.622] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.622] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.634] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.636] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 [19:12:48.651] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:12:48 [19:12:48.651] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:12:48 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 19:12:48 ConnectionSampler 19:12:48 getPeer 19:12:48 returns a random peer from the list (78 ms) 19:12:48 returns undefined if no peers are available (10 ms) 19:12:48 attempts to find peer with no active connections (12 ms) 19:12:48 should not sample a peer that is being excluded (9 ms) 19:12:48 connection management 19:12:48 correctly tracks active connections (10 ms) 19:12:48 handles multiple connections to same peer (10 ms) 19:12:48 handles errors during connection close (9 ms) 19:12:48 does not accidentally close a stream for another peer (8 ms) 19:12:48 cleanup 19:12:48 cleans up stale connections (609 ms) 19:12:48 properly cleans up on stop (7 ms) 19:12:48 samplePeersBatch 19:12:48 should only return samples as many peers as available (13 ms) 19:12:48 prioritizes peers without active connections (15 ms) 19:12:48 falls back to peers with connections when needed (19 ms) 19:12:48 handles case when all peers have active connections (14 ms) 19:12:48 handles case when fewer peers available than requested (16 ms) 19:12:48 handles case when no peers available (13 ms) 19:12:48 returns exactly the number of peers requested when available (14 ms) 19:12:48 19:12:48 Test Suites: 1 passed, 1 total 19:12:48 Tests: 17 passed, 17 total 19:12:48 Snapshots: 0 total 19:12:48 Time: 1.456 s 19:12:48 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 19:12:48 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?