Parent Log: http://ci.aztec-labs.com/912699a4bbfaaff7 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/2d661b35c089f032f50de084b07dded86f0873b8 Env: REF_NAME=gh-readonly-queue/next/pr-15187-301dce04331dcfb583b7508b91491de618d4acf4 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 10:50:26 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15187_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 10:50:26 +++ id -u 10:50:26 +++ id -g 10:50:26 ++ 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'\''' 10:50:27 + cid=8e7b1fde20d4cad63c56fcdf1a9d5cc5c4099f21af27de5a9c64b23c18de69bf 10:50:27 + set +x 10:50:28 [10:50:28.881] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:28 [10:50:28.886] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:28 [10:50:28.895] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:28 [10:50:28.895] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:28 [10:50:28.903] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:28 [10:50:28.905] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:28 [10:50:28.913] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:28 [10:50:28.914] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:28 [10:50:28.923] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:28 [10:50:28.925] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:28 [10:50:28.933] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:28 [10:50:28.934] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:28 [10:50:28.944] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:28 [10:50:28.944] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:28 [10:50:28.952] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:28 [10:50:28.952] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.564] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.565] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.576] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.576] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.577] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.577] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.597] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.597] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.623] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.623] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.639] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.639] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.652] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.652] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.667] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.668] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.683] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.683] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 [10:50:29.698] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 10:50:29 [10:50:29.699] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 10:50:29 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 10:50:29 ConnectionSampler 10:50:29 getPeer 10:50:29 returns a random peer from the list (60 ms) 10:50:29 returns undefined if no peers are available (8 ms) 10:50:29 attempts to find peer with no active connections (9 ms) 10:50:29 should not sample a peer that is being excluded (8 ms) 10:50:29 connection management 10:50:29 correctly tracks active connections (11 ms) 10:50:29 handles multiple connections to same peer (9 ms) 10:50:29 handles errors during connection close (9 ms) 10:50:29 does not accidentally close a stream for another peer (8 ms) 10:50:29 cleanup 10:50:29 cleans up stale connections (613 ms) 10:50:29 properly cleans up on stop (11 ms) 10:50:29 samplePeersBatch 10:50:29 should only return samples as many peers as available (20 ms) 10:50:29 prioritizes peers without active connections (26 ms) 10:50:29 falls back to peers with connections when needed (15 ms) 10:50:29 handles case when all peers have active connections (14 ms) 10:50:29 handles case when fewer peers available than requested (15 ms) 10:50:29 handles case when no peers available (15 ms) 10:50:29 returns exactly the number of peers requested when available (15 ms) 10:50:29 10:50:29 Test Suites: 1 passed, 1 total 10:50:29 Tests: 17 passed, 17 total 10:50:29 Snapshots: 0 total 10:50:29 Time: 1.518 s 10:50:29 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 10:50:29 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?