Parent Log: http://ci.aztec-labs.com/9a389be50a19927e Command: 4f32fa69539b8ea0: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/ad85cda24c2f9b5b4b17d4921f8597b71949bb6c Env: REF_NAME=gh-readonly-queue/next/pr-15223-87c4b689268afecc86ab007c3587e45110daa43d CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 19:25:46 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15223_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 19:25:46 +++ id -u 19:25:46 +++ id -g 19:25:46 ++ 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'\''' 19:25:46 + cid=3968c3034ea1c1f7c47d03bfcde99a3a8c19861629fedaf58f6bd513a2d844a4 19:25:46 + set +x 19:25:48 [19:25:48.432] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:48 [19:25:48.437] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:48 [19:25:48.448] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:48 [19:25:48.449] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:48 [19:25:48.458] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:48 [19:25:48.459] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:48 [19:25:48.468] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:48 [19:25:48.469] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:48 [19:25:48.478] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:48 [19:25:48.479] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:48 [19:25:48.487] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:48 [19:25:48.488] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:48 [19:25:48.495] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:48 [19:25:48.496] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:48 [19:25:48.503] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:48 [19:25:48.504] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.114] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.115] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.122] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.123] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.123] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.124] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.139] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.139] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.157] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.158] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.173] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.174] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.188] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.189] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.200] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.201] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.216] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.216] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 [19:25:49.231] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 19:25:49 [19:25:49.231] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 19:25:49 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 19:25:49 ConnectionSampler 19:25:49 getPeer 19:25:49 returns a random peer from the list (61 ms) 19:25:49 returns undefined if no peers are available (10 ms) 19:25:49 attempts to find peer with no active connections (10 ms) 19:25:49 should not sample a peer that is being excluded (9 ms) 19:25:49 connection management 19:25:49 correctly tracks active connections (10 ms) 19:25:49 handles multiple connections to same peer (8 ms) 19:25:49 handles errors during connection close (8 ms) 19:25:49 does not accidentally close a stream for another peer (7 ms) 19:25:49 cleanup 19:25:49 cleans up stale connections (610 ms) 19:25:49 properly cleans up on stop (8 ms) 19:25:49 samplePeersBatch 19:25:49 should only return samples as many peers as available (16 ms) 19:25:49 prioritizes peers without active connections (18 ms) 19:25:49 falls back to peers with connections when needed (15 ms) 19:25:49 handles case when all peers have active connections (13 ms) 19:25:49 handles case when fewer peers available than requested (11 ms) 19:25:49 handles case when no peers available (15 ms) 19:25:49 returns exactly the number of peers requested when available (15 ms) 19:25:49 19:25:49 Test Suites: 1 passed, 1 total 19:25:49 Tests: 17 passed, 17 total 19:25:49 Snapshots: 0 total 19:25:49 Time: 1.484 s 19:25:49 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 19:25:49 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?