Parent Log: http://ci.aztec-labs.com/6bcaf8b705a8c8ed Command: a222d7f5a623064c: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/a37c3cdcd562df234bc44cc52cdce68d105ff2f2 Env: REF_NAME=gh-readonly-queue/next/pr-15135-df0c3e8efd6211cf15eedf67d2a591cc54099ac8 CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Wed Jun 18 18:51:04 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15135_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 18:51:04 +++ id -u 18:51:04 +++ id -g 18:51:04 ++ docker run -d --name p2p_src_services_reqresp_connection-sampler_connection_sampler.test.ts --net=none --cpuset-cpus=0-63 --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'\''' 18:51:05 + cid=41a998c243bcfb94d0bdbd5c6e90301a09a51120cdd38b0106630b4e1948ee4a 18:51:05 + set +x 18:51:06 [18:51:06.515] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:06 [18:51:06.519] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:06 [18:51:06.527] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:06 [18:51:06.528] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:06 [18:51:06.534] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:06 [18:51:06.536] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:06 [18:51:06.542] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:06 [18:51:06.542] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:06 [18:51:06.548] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:06 [18:51:06.550] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:06 [18:51:06.555] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:06 [18:51:06.556] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:06 [18:51:06.561] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:06 [18:51:06.561] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:06 [18:51:06.568] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:06 [18:51:06.568] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.173] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.174] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.179] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.179] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.180] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.180] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.191] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.191] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.202] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.202] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.214] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.214] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.225] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.225] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.235] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.235] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.245] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.245] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 [18:51:07.255] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 18:51:07 [18:51:07.256] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 18:51:07 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 18:51:07 ConnectionSampler 18:51:07 getPeer 18:51:07 returns a random peer from the list (44 ms) 18:51:07 returns undefined if no peers are available (7 ms) 18:51:07 attempts to find peer with no active connections (8 ms) 18:51:07 should not sample a peer that is being excluded (5 ms) 18:51:07 connection management 18:51:07 correctly tracks active connections (7 ms) 18:51:07 handles multiple connections to same peer (6 ms) 18:51:07 handles errors during connection close (5 ms) 18:51:07 does not accidentally close a stream for another peer (6 ms) 18:51:07 cleanup 18:51:07 cleans up stale connections (605 ms) 18:51:07 properly cleans up on stop (5 ms) 18:51:07 samplePeersBatch 18:51:07 should only return samples as many peers as available (11 ms) 18:51:07 prioritizes peers without active connections (11 ms) 18:51:07 falls back to peers with connections when needed (12 ms) 18:51:07 handles case when all peers have active connections (10 ms) 18:51:07 handles case when fewer peers available than requested (10 ms) 18:51:07 handles case when no peers available (9 ms) 18:51:07 returns exactly the number of peers requested when available (10 ms) 18:51:07 18:51:07 Test Suites: 1 passed, 1 total 18:51:07 Tests: 17 passed, 17 total 18:51:07 Snapshots: 0 total 18:51:07 Time: 1.288 s 18:51:07 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 18:51:07 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?