Parent Log: http://ci.aztec-labs.com/47dc0fc4fbd4a898 Command: 582720422b3f4dff: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/505a3c071181dbc5242dc8b655a9b2d69988c8db Env: REF_NAME=gh-readonly-queue/staging/pr-15211-e8f6c3b7e3e0e72a33e118ddf8e67d11e51464a8 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 12:40:13 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15211_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_staging 12:40:13 +++ id -u 12:40:13 +++ id -g 12:40:13 ++ 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:40:14 + cid=85578052674afc2771b9f2fc03003cbc349198189eab90c2175cb8ac6f01ac60 12:40:14 + set +x 12:40:15 [12:40:15.951] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:15 [12:40:15.956] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:15 [12:40:15.966] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:15 [12:40:15.967] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:15 [12:40:15.976] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:15 [12:40:15.977] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:15 [12:40:15.983] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:15 [12:40:15.984] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:15 [12:40:15.990] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:15 [12:40:15.990] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:15 [12:40:15.997] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:15 [12:40:15.998] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.006] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.006] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.017] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.017] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.629] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.629] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.642] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.643] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.646] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.646] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.667] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.667] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.683] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.684] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.700] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.701] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.714] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.714] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.725] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.729] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.744] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.745] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 [12:40:16.760] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 12:40:16 [12:40:16.761] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 12:40:16 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 12:40:16 ConnectionSampler 12:40:16 getPeer 12:40:16 returns a random peer from the list (59 ms) 12:40:16 returns undefined if no peers are available (11 ms) 12:40:16 attempts to find peer with no active connections (10 ms) 12:40:16 should not sample a peer that is being excluded (6 ms) 12:40:16 connection management 12:40:16 correctly tracks active connections (7 ms) 12:40:16 handles multiple connections to same peer (7 ms) 12:40:16 handles errors during connection close (8 ms) 12:40:16 does not accidentally close a stream for another peer (11 ms) 12:40:16 cleanup 12:40:16 cleans up stale connections (612 ms) 12:40:16 properly cleans up on stop (17 ms) 12:40:16 samplePeersBatch 12:40:16 should only return samples as many peers as available (20 ms) 12:40:16 prioritizes peers without active connections (16 ms) 12:40:16 falls back to peers with connections when needed (17 ms) 12:40:16 handles case when all peers have active connections (13 ms) 12:40:16 handles case when fewer peers available than requested (15 ms) 12:40:16 handles case when no peers available (15 ms) 12:40:16 returns exactly the number of peers requested when available (15 ms) 12:40:16 12:40:16 Test Suites: 1 passed, 1 total 12:40:16 Tests: 17 passed, 17 total 12:40:16 Snapshots: 0 total 12:40:16 Time: 1.504 s 12:40:16 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 12:40:16 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?