Parent Log: http://ci.aztec-labs.com/157a14478d3e36aa Command: d634b34c6dd762bb: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/9b801754ba98479ee645488c29d2fda1eecbfd85 Env: REF_NAME=gh-readonly-queue/next/pr-14963-ee3655e025191bc85c5b3d3122eeedb44e38ffb2 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 20:57:21 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14963_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 20:57:21 +++ id -u 20:57:21 +++ id -g 20:57:21 ++ 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'\''' 20:57:22 + cid=bb075cea023aab0e77c00ba4ff7f251964a539aadb46b7e5a31f0af3050b447e 20:57:22 + set +x 20:57:23 [20:57:23.639] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:23 [20:57:23.647] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:23 [20:57:23.656] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:23 [20:57:23.657] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:23 [20:57:23.664] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:23 [20:57:23.664] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:23 [20:57:23.670] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:23 [20:57:23.670] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:23 [20:57:23.677] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:23 [20:57:23.678] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:23 [20:57:23.687] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:23 [20:57:23.688] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:23 [20:57:23.693] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:23 [20:57:23.693] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:23 [20:57:23.699] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:23 [20:57:23.700] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.307] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.308] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.313] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.314] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.314] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.314] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.326] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.326] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.347] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.348] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.362] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.363] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.376] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.376] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.393] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.394] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.412] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.412] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 [20:57:24.422] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:24 [20:57:24.423] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:24 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 20:57:24 ConnectionSampler 20:57:24 getPeer 20:57:24 returns a random peer from the list (61 ms) 20:57:24 returns undefined if no peers are available (7 ms) 20:57:24 attempts to find peer with no active connections (7 ms) 20:57:24 should not sample a peer that is being excluded (5 ms) 20:57:24 connection management 20:57:24 correctly tracks active connections (8 ms) 20:57:24 handles multiple connections to same peer (9 ms) 20:57:24 handles errors during connection close (5 ms) 20:57:24 does not accidentally close a stream for another peer (6 ms) 20:57:24 cleanup 20:57:24 cleans up stale connections (607 ms) 20:57:24 properly cleans up on stop (5 ms) 20:57:24 samplePeersBatch 20:57:24 should only return samples as many peers as available (12 ms) 20:57:24 prioritizes peers without active connections (21 ms) 20:57:24 falls back to peers with connections when needed (15 ms) 20:57:24 handles case when all peers have active connections (14 ms) 20:57:24 handles case when fewer peers available than requested (17 ms) 20:57:24 handles case when no peers available (18 ms) 20:57:24 returns exactly the number of peers requested when available (10 ms) 20:57:24 20:57:24 Test Suites: 1 passed, 1 total 20:57:24 Tests: 17 passed, 17 total 20:57:24 Snapshots: 0 total 20:57:24 Time: 1.385 s 20:57:24 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 20:57:24 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?