Parent Log: http://ci.aztec-labs.com/61d18f8cc5e02e5e Command: eadd2d8c3615a197: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/08155d6637b809206692717f27c5b1985b02ab88 Env: REF_NAME=gh-readonly-queue/next/pr-15269-66f4503091e9c8b77815b90888bd66a59696da9b CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Wed Jun 25 09:25:52 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15269_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 09:25:52 +++ id -u 09:25:52 +++ id -g 09:25:52 ++ 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:25:52 + cid=59150cad79bed9463dbeba5b799f7a9e93c43047c94720fbd13f747f24ff2077 09:25:52 + set +x 09:25:54 [09:25:54.295] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.300] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.315] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.316] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.326] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.328] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.336] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.337] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.346] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.347] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.353] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.353] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.359] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.359] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.369] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.370] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.979] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.980] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.987] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.987] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:54 [09:25:54.988] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:54 [09:25:54.988] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:55 [09:25:55.000] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:55 [09:25:55.000] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:55 [09:25:55.020] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:55 [09:25:55.021] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:55 [09:25:55.043] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:55 [09:25:55.043] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:55 [09:25:55.061] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:55 [09:25:55.061] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:55 [09:25:55.075] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:55 [09:25:55.076] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:55 [09:25:55.085] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:55 [09:25:55.086] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:55 [09:25:55.100] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:25:55 [09:25:55.101] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:25:55 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 09:25:55 ConnectionSampler 09:25:55 getPeer 09:25:55 returns a random peer from the list (79 ms) 09:25:55 returns undefined if no peers are available (13 ms) 09:25:55 attempts to find peer with no active connections (11 ms) 09:25:55 should not sample a peer that is being excluded (8 ms) 09:25:55 connection management 09:25:55 correctly tracks active connections (9 ms) 09:25:55 handles multiple connections to same peer (5 ms) 09:25:55 handles errors during connection close (5 ms) 09:25:55 does not accidentally close a stream for another peer (10 ms) 09:25:55 cleanup 09:25:55 cleans up stale connections (609 ms) 09:25:55 properly cleans up on stop (7 ms) 09:25:55 samplePeersBatch 09:25:55 should only return samples as many peers as available (13 ms) 09:25:55 prioritizes peers without active connections (20 ms) 09:25:55 falls back to peers with connections when needed (23 ms) 09:25:55 handles case when all peers have active connections (18 ms) 09:25:55 handles case when fewer peers available than requested (14 ms) 09:25:55 handles case when no peers available (10 ms) 09:25:55 returns exactly the number of peers requested when available (15 ms) 09:25:55 09:25:55 Test Suites: 1 passed, 1 total 09:25:55 Tests: 17 passed, 17 total 09:25:55 Snapshots: 0 total 09:25:55 Time: 1.573 s 09:25:55 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 09:25:55 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?