Parent Log: http://ci.aztec-labs.com/ea10f86f3d4ea560 Command: d634b34c6dd762bb: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/9b801754ba98479ee645488c29d2fda1eecbfd85 Env: REF_NAME=gh-readonly-queue/next/pr-14963-ee3655e025191bc85c5b3d3122eeedb44e38ffb2 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 20:57:32 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14963_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 20:57:32 +++ id -u 20:57:32 +++ id -g 20:57:32 ++ 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'\''' 20:57:32 + cid=abd1464575a8bbebfe4bbb7154dc96474b9493a1525621e2ffd1af4c339e138d 20:57:32 + set +x 20:57:34 [20:57:34.248] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.253] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.264] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.264] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.274] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.275] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.284] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.285] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.292] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.293] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.301] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.302] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.307] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.308] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.313] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.313] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.920] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.921] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.929] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.930] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.931] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.931] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.951] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.951] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:34 [20:57:34.978] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:34 [20:57:34.981] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:35 [20:57:35.005] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:35 [20:57:35.005] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:35 [20:57:35.019] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:35 [20:57:35.019] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:35 [20:57:35.030] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:35 [20:57:35.031] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:35 [20:57:35.046] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:35 [20:57:35.047] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:35 [20:57:35.068] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:57:35 [20:57:35.069] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:57:35 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 20:57:35 ConnectionSampler 20:57:35 getPeer 20:57:35 returns a random peer from the list (72 ms) 20:57:35 returns undefined if no peers are available (10 ms) 20:57:35 attempts to find peer with no active connections (11 ms) 20:57:35 should not sample a peer that is being excluded (9 ms) 20:57:35 connection management 20:57:35 correctly tracks active connections (7 ms) 20:57:35 handles multiple connections to same peer (8 ms) 20:57:35 handles errors during connection close (6 ms) 20:57:35 does not accidentally close a stream for another peer (6 ms) 20:57:35 cleanup 20:57:35 cleans up stale connections (607 ms) 20:57:35 properly cleans up on stop (10 ms) 20:57:35 samplePeersBatch 20:57:35 should only return samples as many peers as available (18 ms) 20:57:35 prioritizes peers without active connections (30 ms) 20:57:35 falls back to peers with connections when needed (22 ms) 20:57:35 handles case when all peers have active connections (14 ms) 20:57:35 handles case when fewer peers available than requested (11 ms) 20:57:35 handles case when no peers available (15 ms) 20:57:35 returns exactly the number of peers requested when available (21 ms) 20:57:35 20:57:35 Test Suites: 1 passed, 1 total 20:57:35 Tests: 17 passed, 17 total 20:57:35 Snapshots: 0 total 20:57:35 Time: 1.472 s 20:57:35 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 20:57:35 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?