Parent Log: http://ci.aztec-labs.com/3331709b9043bb65 Command: 97e7ef9a556fd7e6: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/015cb0cadef6a41094c3649f32a735392e1b9693 Env: REF_NAME=gh-readonly-queue/master/pr-15027-e9a2301883801edbe36ea8bba05dcca7e714f30a CURRENT_VERSION=0.87.8 CI_FULL=1 Date: Wed Jun 18 14:25:41 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15027_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_master 14:25:41 +++ id -u 14:25:41 +++ id -g 14:25:41 ++ 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:25:41 + cid=e7a0930f55f26851f4b9e124fae72a7db768334c78d6395f9a22f43eca915fb4 14:25:41 + set +x 14:25:43 [14:25:43.483] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:43 [14:25:43.488] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:43 [14:25:43.503] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:43 [14:25:43.504] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:43 [14:25:43.515] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:43 [14:25:43.516] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:43 [14:25:43.524] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:43 [14:25:43.525] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:43 [14:25:43.535] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:43 [14:25:43.536] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:43 [14:25:43.550] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:43 [14:25:43.551] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:43 [14:25:43.565] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:43 [14:25:43.565] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.177] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.178] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.185] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.185] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.186] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.187] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.201] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.202] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.219] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.219] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.231] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.232] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.261] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.262] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.278] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.279] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.292] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.293] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 [14:25:44.304] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:25:44 [14:25:44.305] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:25:44 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 14:25:44 ConnectionSampler 14:25:44 getPeer 14:25:44 returns a random peer from the list (90 ms) 14:25:44 returns undefined if no peers are available (14 ms) 14:25:44 attempts to find peer with no active connections (11 ms) 14:25:44 should not sample a peer that is being excluded (9 ms) 14:25:44 connection management 14:25:44 correctly tracks active connections (10 ms) 14:25:44 handles multiple connections to same peer (15 ms) 14:25:44 handles errors during connection close (14 ms) 14:25:44 cleanup 14:25:44 cleans up stale connections (612 ms) 14:25:44 properly cleans up on stop (10 ms) 14:25:44 samplePeersBatch 14:25:44 should only return samples as many peers as available (13 ms) 14:25:44 prioritizes peers without active connections (18 ms) 14:25:44 falls back to peers with connections when needed (12 ms) 14:25:44 handles case when all peers have active connections (31 ms) 14:25:44 handles case when fewer peers available than requested (16 ms) 14:25:44 handles case when no peers available (13 ms) 14:25:44 returns exactly the number of peers requested when available (12 ms) 14:25:44 14:25:44 Test Suites: 1 passed, 1 total 14:25:44 Tests: 16 passed, 16 total 14:25:44 Snapshots: 0 total 14:25:44 Time: 1.496 s 14:25:44 Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i. 14:25:44 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?