Parent Log: http://ci.aztec-labs.com/5da774ef0d100089 Command: a668859b212fc7b1: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/3c1b9d57eadcc8fb03a7ed42610cf0a1ae4a32eb Env: REF_NAME=gh-readonly-queue/next/pr-14858-4b0e4dc09fa55f0bc808fa0c7c3e95e8fa997069 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 21:39:59 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14858_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 21:39:59 +++ id -u 21:39:59 +++ id -g 21:39:59 ++ 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'\''' 21:40:00 + cid=4f3dcafba0a67c3150addd3de77880366fd74659ac38e735585d1a49cf4a0ca6 21:40:00 + set +x 21:40:01 [21:40:01.882] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:01 [21:40:01.887] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:01 [21:40:01.896] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:01 [21:40:01.896] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:01 [21:40:01.902] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:01 [21:40:01.903] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:01 [21:40:01.909] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:01 [21:40:01.910] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:01 [21:40:01.915] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:01 [21:40:01.916] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:01 [21:40:01.921] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:01 [21:40:01.921] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:01 [21:40:01.926] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:01 [21:40:01.927] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:01 [21:40:01.931] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:01 [21:40:01.931] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.536] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.537] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.543] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.544] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.544] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.544] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.559] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.560] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.572] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.573] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.589] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.590] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.617] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.618] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.631] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.632] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.644] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.645] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 [21:40:02.659] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:40:02 [21:40:02.660] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:40:02 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 21:40:02 ConnectionSampler 21:40:02 getPeer 21:40:02 returns a random peer from the list (51 ms) 21:40:02 returns undefined if no peers are available (7 ms) 21:40:02 attempts to find peer with no active connections (7 ms) 21:40:02 should not sample a peer that is being excluded (6 ms) 21:40:02 connection management 21:40:02 correctly tracks active connections (6 ms) 21:40:02 handles multiple connections to same peer (4 ms) 21:40:02 handles errors during connection close (5 ms) 21:40:02 does not accidentally close a stream for another peer (5 ms) 21:40:02 cleanup 21:40:02 cleans up stale connections (605 ms) 21:40:02 properly cleans up on stop (7 ms) 21:40:02 samplePeersBatch 21:40:02 should only return samples as many peers as available (15 ms) 21:40:02 prioritizes peers without active connections (12 ms) 21:40:02 falls back to peers with connections when needed (17 ms) 21:40:02 handles case when all peers have active connections (27 ms) 21:40:02 handles case when fewer peers available than requested (14 ms) 21:40:02 handles case when no peers available (12 ms) 21:40:02 returns exactly the number of peers requested when available (15 ms) 21:40:02 21:40:02 Test Suites: 1 passed, 1 total 21:40:02 Tests: 17 passed, 17 total 21:40:02 Snapshots: 0 total 21:40:02 Time: 1.438 s 21:40:02 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 21:40:02 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?