Parent Log: http://ci.aztec-labs.com/55755cfc18e6eb0f Command: 13dd8684e4e32fd7: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/1c9ca312bfdace816082212846900a49694e1e50 Env: REF_NAME=gh-readonly-queue/next/pr-15182-af094bce13530e078c78de9f3264280e6693d533 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 08:55:42 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15182_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 08:55:42 +++ id -u 08:55:42 +++ id -g 08:55:42 ++ 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'\''' 08:55:42 + cid=4a0222a9b15a0b72a1f790221a43eda107f9caece1ef0ab2911196dc00000408 08:55:42 + set +x 08:55:44 [08:55:44.263] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.268] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.280] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.280] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.288] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.290] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.298] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.298] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.307] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.309] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.317] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.318] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.325] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.326] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.336] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.337] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.946] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.947] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.956] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.957] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.958] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.959] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:44 [08:55:44.982] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:44 [08:55:44.986] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:45 [08:55:45.007] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:45 [08:55:45.008] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:45 [08:55:45.029] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:45 [08:55:45.030] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:45 [08:55:45.047] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:45 [08:55:45.048] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:45 [08:55:45.064] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:45 [08:55:45.064] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:45 [08:55:45.079] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:45 [08:55:45.079] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:45 [08:55:45.096] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:55:45 [08:55:45.096] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:55:45 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 08:55:45 ConnectionSampler 08:55:45 getPeer 08:55:45 returns a random peer from the list (56 ms) 08:55:45 returns undefined if no peers are available (11 ms) 08:55:45 attempts to find peer with no active connections (9 ms) 08:55:45 should not sample a peer that is being excluded (8 ms) 08:55:45 connection management 08:55:45 correctly tracks active connections (9 ms) 08:55:45 handles multiple connections to same peer (8 ms) 08:55:45 handles errors during connection close (7 ms) 08:55:45 does not accidentally close a stream for another peer (12 ms) 08:55:45 cleanup 08:55:45 cleans up stale connections (609 ms) 08:55:45 properly cleans up on stop (11 ms) 08:55:45 samplePeersBatch 08:55:45 should only return samples as many peers as available (27 ms) 08:55:45 prioritizes peers without active connections (20 ms) 08:55:45 falls back to peers with connections when needed (22 ms) 08:55:45 handles case when all peers have active connections (17 ms) 08:55:45 handles case when fewer peers available than requested (16 ms) 08:55:45 handles case when no peers available (15 ms) 08:55:45 returns exactly the number of peers requested when available (16 ms) 08:55:45 08:55:45 Test Suites: 1 passed, 1 total 08:55:45 Tests: 17 passed, 17 total 08:55:45 Snapshots: 0 total 08:55:45 Time: 1.538 s 08:55:45 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 08:55:45 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?