Parent Log: http://ci.aztec-labs.com/4dfece09b5e9b3d5 Command: 1c48ff816cf3011e: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/e050b787f6dead84c4ef7e5bdb8dcc8cf81d5f65 Env: REF_NAME=gh-readonly-queue/next/pr-15129-d5c48d855d83e19712c6b72281801c6fce176ec1 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Wed Jun 18 15:33:02 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15129_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 15:33:02 +++ id -u 15:33:02 +++ id -g 15:33:02 ++ 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'\''' 15:33:03 + cid=ddecbe038c101235f80d677e6ef39f973bb8992fc003c4595ef4f4d05a9c6ea4 15:33:03 + set +x 15:33:04 [15:33:04.969] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:04 [15:33:04.973] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:04 [15:33:04.980] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:04 [15:33:04.981] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:04 [15:33:04.987] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:04 [15:33:04.987] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:04 [15:33:04.993] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:04 [15:33:04.993] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.001] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.002] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.007] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.008] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.015] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.016] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.030] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.031] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.642] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.642] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.650] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.651] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.652] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.652] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.664] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.665] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.687] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.688] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.705] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.705] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.734] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.735] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.750] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.751] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.766] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.767] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 [15:33:05.786] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:33:05 [15:33:05.786] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:33:05 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 15:33:05 ConnectionSampler 15:33:05 getPeer 15:33:05 returns a random peer from the list (65 ms) 15:33:05 returns undefined if no peers are available (6 ms) 15:33:05 attempts to find peer with no active connections (7 ms) 15:33:05 should not sample a peer that is being excluded (6 ms) 15:33:05 connection management 15:33:05 correctly tracks active connections (9 ms) 15:33:05 handles multiple connections to same peer (5 ms) 15:33:05 handles errors during connection close (8 ms) 15:33:05 does not accidentally close a stream for another peer (14 ms) 15:33:05 cleanup 15:33:05 cleans up stale connections (611 ms) 15:33:05 properly cleans up on stop (9 ms) 15:33:05 samplePeersBatch 15:33:05 should only return samples as many peers as available (13 ms) 15:33:05 prioritizes peers without active connections (23 ms) 15:33:05 falls back to peers with connections when needed (18 ms) 15:33:05 handles case when all peers have active connections (29 ms) 15:33:05 handles case when fewer peers available than requested (16 ms) 15:33:05 handles case when no peers available (16 ms) 15:33:05 returns exactly the number of peers requested when available (20 ms) 15:33:05 15:33:05 Test Suites: 1 passed, 1 total 15:33:05 Tests: 17 passed, 17 total 15:33:05 Snapshots: 0 total 15:33:05 Time: 1.62 s 15:33:05 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 15:33:05 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?