Parent Log: http://ci.aztec-labs.com/5285bbb6426f906e Command: 7ad4152ecf607d72: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/15c121440ebf929fded7bd0c31960fb154a3fa7a Env: REF_NAME=gh-readonly-queue/next/pr-14554-befc8c4c9ab253911288e1ef4bdd56c5ae8eeb9b CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Wed Jun 11 22:59:14 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14554_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 22:59:14 +++ id -u 22:59:14 +++ id -g 22:59:14 ++ 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'\''' 22:59:14 + cid=bb6154a05d719585bbb607a7430f5035d258c2908ef30c4e0563b58519d873d0 22:59:14 + set +x 22:59:16 [22:59:16.112] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.117] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.130] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.130] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.148] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.149] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.164] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.165] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.179] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.180] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.191] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.191] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.202] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.203] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.813] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.814] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.822] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.822] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.823] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.824] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.850] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.851] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.876] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.877] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.894] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.894] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.913] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.914] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.929] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.930] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.947] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.948] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 [22:59:16.972] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 22:59:16 [22:59:16.973] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 22:59:16 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 22:59:16 ConnectionSampler 22:59:16 getPeer 22:59:16 returns a random peer from the list (107 ms) 22:59:16 returns undefined if no peers are available (12 ms) 22:59:16 attempts to find peer with no active connections (19 ms) 22:59:16 should not sample a peer that is being excluded (16 ms) 22:59:16 connection management 22:59:16 correctly tracks active connections (15 ms) 22:59:16 handles multiple connections to same peer (11 ms) 22:59:16 handles errors during connection close (11 ms) 22:59:16 cleanup 22:59:16 cleans up stale connections (610 ms) 22:59:16 properly cleans up on stop (11 ms) 22:59:16 samplePeersBatch 22:59:16 should only return samples as many peers as available (27 ms) 22:59:16 prioritizes peers without active connections (24 ms) 22:59:16 falls back to peers with connections when needed (16 ms) 22:59:16 handles case when all peers have active connections (19 ms) 22:59:16 handles case when fewer peers available than requested (15 ms) 22:59:16 handles case when no peers available (19 ms) 22:59:16 returns exactly the number of peers requested when available (24 ms) 22:59:16 22:59:16 Test Suites: 1 passed, 1 total 22:59:16 Tests: 16 passed, 16 total 22:59:16 Snapshots: 0 total 22:59:16 Time: 1.516 s 22:59:16 Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i. 22:59:16 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?