Parent Log: http://ci.aztec-labs.com/8251982aad1ef834 Command: a5511b51e55ea9c0: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/9cbd161a1dfa928167c1f969200b95df55ed4c6b Env: REF_NAME=gh-readonly-queue/next/pr-15157-6e3848bbd6845559b55825f0bc64df0673272969 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 20 09:42:57 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15157_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 09:42:57 +++ id -u 09:42:57 +++ id -g 09:42:57 ++ 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'\''' 09:42:57 + cid=78333d13136c9a8b219c276d9b16e9d149f7f940f9014332686d284353cf0866 09:42:57 + set +x 09:42:59 [09:42:59.566] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:42:59 [09:42:59.571] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:42:59 [09:42:59.581] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:42:59 [09:42:59.582] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:42:59 [09:42:59.588] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:42:59 [09:42:59.590] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:42:59 [09:42:59.596] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:42:59 [09:42:59.597] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:42:59 [09:42:59.606] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:42:59 [09:42:59.607] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:42:59 [09:42:59.613] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:42:59 [09:42:59.614] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:42:59 [09:42:59.620] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:42:59 [09:42:59.621] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:42:59 [09:42:59.630] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:42:59 [09:42:59.630] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.237] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.238] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.247] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.247] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.248] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.249] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.268] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.269] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.283] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.284] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.301] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.301] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.318] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.319] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.336] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.337] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.352] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.353] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 [09:43:00.374] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 09:43:00 [09:43:00.375] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 09:43:00 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 09:43:00 ConnectionSampler 09:43:00 getPeer 09:43:00 returns a random peer from the list (55 ms) 09:43:00 returns undefined if no peers are available (9 ms) 09:43:00 attempts to find peer with no active connections (8 ms) 09:43:00 should not sample a peer that is being excluded (7 ms) 09:43:00 connection management 09:43:00 correctly tracks active connections (10 ms) 09:43:00 handles multiple connections to same peer (6 ms) 09:43:00 handles errors during connection close (7 ms) 09:43:00 does not accidentally close a stream for another peer (8 ms) 09:43:00 cleanup 09:43:00 cleans up stale connections (608 ms) 09:43:00 properly cleans up on stop (10 ms) 09:43:00 samplePeersBatch 09:43:00 should only return samples as many peers as available (19 ms) 09:43:00 prioritizes peers without active connections (14 ms) 09:43:00 falls back to peers with connections when needed (17 ms) 09:43:00 handles case when all peers have active connections (17 ms) 09:43:00 handles case when fewer peers available than requested (18 ms) 09:43:00 handles case when no peers available (16 ms) 09:43:00 returns exactly the number of peers requested when available (22 ms) 09:43:00 09:43:00 Test Suites: 1 passed, 1 total 09:43:00 Tests: 17 passed, 17 total 09:43:00 Snapshots: 0 total 09:43:00 Time: 1.583 s 09:43:00 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 09:43:00 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?