Parent Log: http://ci.aztec-labs.com/dfafad3f43a52d54 Command: ccc91e389ae607c5: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/16fc84676c7308fa5f7ca4a54b67319803d0f5b7 Env: REF_NAME=gh-readonly-queue/next/pr-15072-991b313d676f7cf820bb62a33e57cf5a4c8cf9cf CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 15:58:07 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15072_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 15:58:08 +++ id -u 15:58:08 +++ id -g 15:58:08 ++ 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'\''' 15:58:08 + cid=14c301fb080f253d1338401a4e5754d719c8ff6065a3bb3e473344bf07c2a29f 15:58:08 + set +x 15:58:09 [15:58:09.956] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:09 [15:58:09.961] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:09 [15:58:09.971] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:09 [15:58:09.972] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:09 [15:58:09.980] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:09 [15:58:09.981] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:09 [15:58:09.987] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:09 [15:58:09.987] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:09 [15:58:09.993] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:09 [15:58:09.994] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.004] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.005] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.013] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.014] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.022] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.022] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.632] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.633] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.649] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.649] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.653] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.653] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.668] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.669] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.685] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.686] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.706] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.706] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.724] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.725] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.741] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.742] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.758] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.759] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 [15:58:10.776] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 15:58:10 [15:58:10.776] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 15:58:10 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 15:58:10 ConnectionSampler 15:58:10 getPeer 15:58:10 returns a random peer from the list (58 ms) 15:58:10 returns undefined if no peers are available (9 ms) 15:58:10 attempts to find peer with no active connections (9 ms) 15:58:10 should not sample a peer that is being excluded (5 ms) 15:58:10 connection management 15:58:10 correctly tracks active connections (7 ms) 15:58:10 handles multiple connections to same peer (10 ms) 15:58:10 handles errors during connection close (8 ms) 15:58:10 does not accidentally close a stream for another peer (8 ms) 15:58:10 cleanup 15:58:10 cleans up stale connections (610 ms) 15:58:10 properly cleans up on stop (20 ms) 15:58:10 samplePeersBatch 15:58:10 should only return samples as many peers as available (15 ms) 15:58:10 prioritizes peers without active connections (17 ms) 15:58:10 falls back to peers with connections when needed (18 ms) 15:58:10 handles case when all peers have active connections (18 ms) 15:58:10 handles case when fewer peers available than requested (17 ms) 15:58:10 handles case when no peers available (16 ms) 15:58:10 returns exactly the number of peers requested when available (15 ms) 15:58:10 15:58:10 Test Suites: 1 passed, 1 total 15:58:10 Tests: 17 passed, 17 total 15:58:10 Snapshots: 0 total 15:58:10 Time: 1.405 s 15:58:10 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 15:58:10 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?