Parent Log: http://ci.aztec-labs.com/0df5bfb21436c985 Command: 98619016930b559c: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/92d685c3a802eb31897b6f13d28b9ee428c73744 Env: REF_NAME=gh-readonly-queue/next/pr-15093-4e3f550332c81006b8d3cdbeb646f4c567473f9d CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Thu Jun 19 20:00:09 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15093_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 20:00:09 +++ id -u 20:00:09 +++ id -g 20:00:09 ++ 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:00:10 + cid=a7e4b80e1de898b58c65a1b8794c9ab74b2f8357f1b3c475d46ac312928f8115 20:00:10 + set +x 20:00:11 [20:00:11.973] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:11 [20:00:11.978] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:11 [20:00:11.987] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:11 [20:00:11.987] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:11 [20:00:11.994] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:11 [20:00:11.995] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.002] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.002] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.008] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.009] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.015] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.015] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.022] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.022] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.029] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.030] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.637] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.638] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.645] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.646] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.646] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.647] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.665] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.665] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.684] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.684] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.725] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.726] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.741] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.741] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.752] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.753] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.761] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.762] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 [20:00:12.772] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:00:12 [20:00:12.772] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:00:12 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 20:00:12 ConnectionSampler 20:00:12 getPeer 20:00:12 returns a random peer from the list (52 ms) 20:00:12 returns undefined if no peers are available (8 ms) 20:00:12 attempts to find peer with no active connections (8 ms) 20:00:12 should not sample a peer that is being excluded (6 ms) 20:00:12 connection management 20:00:12 correctly tracks active connections (7 ms) 20:00:12 handles multiple connections to same peer (6 ms) 20:00:12 handles errors during connection close (7 ms) 20:00:12 does not accidentally close a stream for another peer (7 ms) 20:00:12 cleanup 20:00:12 cleans up stale connections (608 ms) 20:00:12 properly cleans up on stop (8 ms) 20:00:12 samplePeersBatch 20:00:12 should only return samples as many peers as available (19 ms) 20:00:12 prioritizes peers without active connections (18 ms) 20:00:12 falls back to peers with connections when needed (41 ms) 20:00:12 handles case when all peers have active connections (16 ms) 20:00:12 handles case when fewer peers available than requested (11 ms) 20:00:12 handles case when no peers available (9 ms) 20:00:12 returns exactly the number of peers requested when available (10 ms) 20:00:12 20:00:12 Test Suites: 1 passed, 1 total 20:00:12 Tests: 17 passed, 17 total 20:00:12 Snapshots: 0 total 20:00:12 Time: 1.469 s 20:00:12 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 20:00:12 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?