Parent Log: http://ci.aztec-labs.com/cb0087ed15f77415 Command: 0f4f65dca0a2798e: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/67bf12030291ce3da2cf39ff5fbfa799eae98dc5 Env: REF_NAME=gh-readonly-queue/next/pr-14963-42440bd429a3b283b3a344db0be4652d818bd261 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 20:01:48 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14963_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 20:01:48 +++ id -u 20:01:48 +++ id -g 20:01:48 ++ 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:01:48 + cid=40254d487ec8f401b16affd7a461cb49845c8a36829395b26c0509c9373915c1 20:01:48 + set +x 20:01:50 [20:01:50.213] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.217] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.224] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.225] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.232] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.234] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.242] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.243] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.252] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.253] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.263] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.264] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.270] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.271] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.278] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.278] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.885] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.886] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.899] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.902] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.904] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.905] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.928] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.928] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.940] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.940] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.960] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.961] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:50 [20:01:50.979] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:50 [20:01:50.980] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:51 [20:01:51.000] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:51 [20:01:51.001] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:51 [20:01:51.018] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:51 [20:01:51.019] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:51 [20:01:51.032] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 20:01:51 [20:01:51.033] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 20:01:51 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 20:01:51 ConnectionSampler 20:01:51 getPeer 20:01:51 returns a random peer from the list (62 ms) 20:01:51 returns undefined if no peers are available (6 ms) 20:01:51 attempts to find peer with no active connections (8 ms) 20:01:51 should not sample a peer that is being excluded (9 ms) 20:01:51 connection management 20:01:51 correctly tracks active connections (10 ms) 20:01:51 handles multiple connections to same peer (10 ms) 20:01:51 handles errors during connection close (6 ms) 20:01:51 does not accidentally close a stream for another peer (7 ms) 20:01:51 cleanup 20:01:51 cleans up stale connections (610 ms) 20:01:51 properly cleans up on stop (16 ms) 20:01:51 samplePeersBatch 20:01:51 should only return samples as many peers as available (21 ms) 20:01:51 prioritizes peers without active connections (12 ms) 20:01:51 falls back to peers with connections when needed (21 ms) 20:01:51 handles case when all peers have active connections (18 ms) 20:01:51 handles case when fewer peers available than requested (22 ms) 20:01:51 handles case when no peers available (16 ms) 20:01:51 returns exactly the number of peers requested when available (14 ms) 20:01:51 20:01:51 Test Suites: 1 passed, 1 total 20:01:51 Tests: 17 passed, 17 total 20:01:51 Snapshots: 0 total 20:01:51 Time: 1.489 s 20:01:51 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 20:01:51 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?