Parent Log: http://ci.aztec-labs.com/778f0cf50fd384fb Command: d8033ca60b1dba76: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/9ddf7d35886489afed34aca3cb819b32c86194b4 Env: REF_NAME=gh-readonly-queue/next/pr-15215-99e234fe4473771b32124e0402885610a6a3f98a CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 09:22:53 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15215_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:22:53 +++ id -u 09:22:53 +++ id -g 09:22:53 ++ 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:22:54 + cid=d50ba2a69741d69e3cddb7f1dcea18e49349708f0c20a0352eb18d2b3c46f40f 09:22:54 + set +x 09:22:55 [09:22:55.757] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:55 [09:22:55.762] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:55 [09:22:55.773] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:55 [09:22:55.773] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:55 [09:22:55.783] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:55 [09:22:55.784] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:55 [09:22:55.791] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:55 [09:22:55.792] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:55 [09:22:55.800] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:55 [09:22:55.801] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:55 [09:22:55.808] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:55 [09:22:55.808] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:55 [09:22:55.817] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:55 [09:22:55.817] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:55 [09:22:55.827] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:55 [09:22:55.828] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.437] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.438] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.446] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.447] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.447] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.447] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.459] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.460] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.483] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.484] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.502] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.502] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.516] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.516] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.528] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.528] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.538] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.539] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 [09:22:56.550] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:22:56 [09:22:56.551] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:22:56 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 09:22:56 ConnectionSampler 09:22:56 getPeer 09:22:56 returns a random peer from the list (71 ms) 09:22:56 returns undefined if no peers are available (10 ms) 09:22:56 attempts to find peer with no active connections (11 ms) 09:22:56 should not sample a peer that is being excluded (7 ms) 09:22:56 connection management 09:22:56 correctly tracks active connections (8 ms) 09:22:56 handles multiple connections to same peer (8 ms) 09:22:56 handles errors during connection close (9 ms) 09:22:56 does not accidentally close a stream for another peer (11 ms) 09:22:56 cleanup 09:22:56 cleans up stale connections (610 ms) 09:22:56 properly cleans up on stop (9 ms) 09:22:56 samplePeersBatch 09:22:56 should only return samples as many peers as available (13 ms) 09:22:56 prioritizes peers without active connections (22 ms) 09:22:56 falls back to peers with connections when needed (18 ms) 09:22:56 handles case when all peers have active connections (13 ms) 09:22:56 handles case when fewer peers available than requested (13 ms) 09:22:56 handles case when no peers available (10 ms) 09:22:56 returns exactly the number of peers requested when available (12 ms) 09:22:56 09:22:56 Test Suites: 1 passed, 1 total 09:22:56 Tests: 17 passed, 17 total 09:22:56 Snapshots: 0 total 09:22:56 Time: 1.564 s 09:22:56 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 09:22:56 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?