Parent Log: http://ci.aztec-labs.com/dcdd13adfe0c256a Command: d57d38082bbaf86d: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/fdc8ff50dee1a2a8a98393ff5069a285b52efa1f Env: REF_NAME=gh-readonly-queue/next/pr-15187-9b8ea5acda76687342ddb62595e293281661f029 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 09:39:40 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15187_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 09:39:40 +++ id -u 09:39:40 +++ id -g 09:39:40 ++ 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'\''' 09:39:40 + cid=03e4cdb9eba025615ace30d219f6702343161107151f0896d9a015e2b2a70ba9 09:39:40 + set +x 09:39:42 [09:39:42.426] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:42 [09:39:42.432] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:42 [09:39:42.442] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:42 [09:39:42.442] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:42 [09:39:42.450] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:42 [09:39:42.451] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:42 [09:39:42.457] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:42 [09:39:42.457] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:42 [09:39:42.468] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:42 [09:39:42.470] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:42 [09:39:42.476] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:42 [09:39:42.477] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:42 [09:39:42.484] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:42 [09:39:42.484] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:42 [09:39:42.505] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:42 [09:39:42.506] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.120] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.121] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.128] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.128] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.129] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.129] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.144] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.144] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.158] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.158] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.173] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.173] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.187] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.187] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.198] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.199] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.211] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.211] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 [09:39:43.229] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:39:43 [09:39:43.230] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:39:43 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 09:39:43 ConnectionSampler 09:39:43 getPeer 09:39:43 returns a random peer from the list (80 ms) 09:39:43 returns undefined if no peers are available (9 ms) 09:39:43 attempts to find peer with no active connections (9 ms) 09:39:43 should not sample a peer that is being excluded (6 ms) 09:39:43 connection management 09:39:43 correctly tracks active connections (11 ms) 09:39:43 handles multiple connections to same peer (6 ms) 09:39:43 handles errors during connection close (7 ms) 09:39:43 does not accidentally close a stream for another peer (22 ms) 09:39:43 cleanup 09:39:43 cleans up stale connections (612 ms) 09:39:43 properly cleans up on stop (9 ms) 09:39:43 samplePeersBatch 09:39:43 should only return samples as many peers as available (15 ms) 09:39:43 prioritizes peers without active connections (13 ms) 09:39:43 falls back to peers with connections when needed (15 ms) 09:39:43 handles case when all peers have active connections (13 ms) 09:39:43 handles case when fewer peers available than requested (11 ms) 09:39:43 handles case when no peers available (13 ms) 09:39:43 returns exactly the number of peers requested when available (19 ms) 09:39:43 09:39:43 Test Suites: 1 passed, 1 total 09:39:43 Tests: 17 passed, 17 total 09:39:43 Snapshots: 0 total 09:39:43 Time: 1.586 s 09:39:43 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 09:39:43 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?