Parent Log: http://ci.aztec-labs.com/0a3fab80774a5b56 Command: ef85c2b8680d9e9c: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/9ba478709ce5c48099f79f9531da8292811cb18a Env: REF_NAME=gh-readonly-queue/staging/pr-15247-3863bc02d671057d0cffd4ced17ca317788ff190 CURRENT_VERSION=1.0.0 CI_FULL=1 Date: Tue Jun 24 14:59:21 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15247_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_staging 14:59:22 +++ id -u 14:59:22 +++ id -g 14:59:22 ++ 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'\''' 14:59:22 + cid=e2a78f2160979a60202ae214f34fe74c26c896b1bd5da8026fde01ee6219d28d 14:59:22 + set +x 14:59:24 [14:59:24.137] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.142] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.156] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.157] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.166] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.167] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.173] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.174] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.185] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.187] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.196] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.196] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.205] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.206] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.216] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.217] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.828] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.832] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.848] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.849] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.850] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.851] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.874] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.874] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.891] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.892] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.914] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.915] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.927] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.928] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.948] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.949] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.963] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.964] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 [14:59:24.983] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:24 [14:59:24.984] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:24 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 14:59:24 ConnectionSampler 14:59:24 getPeer 14:59:24 returns a random peer from the list (63 ms) 14:59:24 returns undefined if no peers are available (12 ms) 14:59:24 attempts to find peer with no active connections (9 ms) 14:59:24 should not sample a peer that is being excluded (6 ms) 14:59:24 connection management 14:59:24 correctly tracks active connections (13 ms) 14:59:24 handles multiple connections to same peer (8 ms) 14:59:24 handles errors during connection close (9 ms) 14:59:24 does not accidentally close a stream for another peer (11 ms) 14:59:24 cleanup 14:59:24 cleans up stale connections (615 ms) 14:59:24 properly cleans up on stop (13 ms) 14:59:24 samplePeersBatch 14:59:24 should only return samples as many peers as available (22 ms) 14:59:24 prioritizes peers without active connections (17 ms) 14:59:24 falls back to peers with connections when needed (23 ms) 14:59:24 handles case when all peers have active connections (13 ms) 14:59:24 handles case when fewer peers available than requested (16 ms) 14:59:24 handles case when no peers available (15 ms) 14:59:24 returns exactly the number of peers requested when available (19 ms) 14:59:24 14:59:24 Test Suites: 1 passed, 1 total 14:59:24 Tests: 17 passed, 17 total 14:59:24 Snapshots: 0 total 14:59:24 Time: 1.589 s 14:59:24 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 14:59:24 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?