Parent Log: http://ci.aztec-labs.com/40634769b4b9c052 Command: 0742425f32083b75: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/04abcb151443d51d2f1b002a2412a083a9384a51 Env: REF_NAME=gh-readonly-queue/next/pr-15077-263498dd65e8700218979d7a94dbfd25b2a8a8a8 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 20:51:55 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15077_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 20:51:55 +++ id -u 20:51:55 +++ id -g 20:51:55 ++ 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:51:56 + cid=f41710ea14472d10eb2ec29b3c14d4489befce511641da4b313727bc17cef05d 20:51:56 + set +x 20:51:58 [20:51:58.030] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.035] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.045] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.045] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.056] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.058] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.067] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.068] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.076] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.077] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.083] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.084] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.093] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.093] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.101] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.101] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.710] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.711] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.720] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.721] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.722] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.722] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.741] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.741] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.759] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.760] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.778] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.779] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.799] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.800] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.817] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.818] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.835] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.835] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 [20:51:58.852] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:51:58 [20:51:58.853] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:51:58 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 20:51:58 ConnectionSampler 20:51:58 getPeer 20:51:58 returns a random peer from the list (60 ms) 20:51:58 returns undefined if no peers are available (9 ms) 20:51:58 attempts to find peer with no active connections (12 ms) 20:51:58 should not sample a peer that is being excluded (9 ms) 20:51:58 connection management 20:51:58 correctly tracks active connections (8 ms) 20:51:58 handles multiple connections to same peer (7 ms) 20:51:58 handles errors during connection close (8 ms) 20:51:58 does not accidentally close a stream for another peer (8 ms) 20:51:58 cleanup 20:51:58 cleans up stale connections (609 ms) 20:51:58 properly cleans up on stop (10 ms) 20:51:58 samplePeersBatch 20:51:58 should only return samples as many peers as available (19 ms) 20:51:58 prioritizes peers without active connections (18 ms) 20:51:58 falls back to peers with connections when needed (18 ms) 20:51:58 handles case when all peers have active connections (20 ms) 20:51:58 handles case when fewer peers available than requested (17 ms) 20:51:58 handles case when no peers available (18 ms) 20:51:58 returns exactly the number of peers requested when available (17 ms) 20:51:58 20:51:58 Test Suites: 1 passed, 1 total 20:51:58 Tests: 17 passed, 17 total 20:51:58 Snapshots: 0 total 20:51:58 Time: 1.573 s 20:51:58 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 20:51:58 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?