Parent Log: http://ci.aztec-labs.com/7bcd1e743e29abf2 Command: b71f9d6a9e3f68ca: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/ee24aac96469b4f1cb8d70e614b2dd27bf0eb134 Env: REF_NAME=gh-readonly-queue/next/pr-15242-1c2c2ee2949dbe31742cc9501a31bf3bce8083cf CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 14:07:52 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15242_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 14:07:52 +++ id -u 14:07:52 +++ id -g 14:07:52 ++ 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'\''' 14:07:52 + cid=c00f004d8684f81869d73b6747c1f6b6c5a90f8a27de2d6c05c5caa3433b8fbb 14:07:52 + set +x 14:07:54 [14:07:54.172] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.177] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.188] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.189] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.200] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.201] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.210] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.211] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.222] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.224] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.232] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.233] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.240] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.240] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.246] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.246] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.856] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.857] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.864] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.864] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.865] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.865] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.880] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.880] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.892] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.892] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.903] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.904] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.916] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.916] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.927] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.928] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.938] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.939] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 [14:07:54.951] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:07:54 [14:07:54.952] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:07:54 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 14:07:54 ConnectionSampler 14:07:54 getPeer 14:07:54 returns a random peer from the list (59 ms) 14:07:54 returns undefined if no peers are available (10 ms) 14:07:54 attempts to find peer with no active connections (11 ms) 14:07:54 should not sample a peer that is being excluded (10 ms) 14:07:54 connection management 14:07:54 correctly tracks active connections (11 ms) 14:07:54 handles multiple connections to same peer (9 ms) 14:07:54 handles errors during connection close (7 ms) 14:07:54 does not accidentally close a stream for another peer (7 ms) 14:07:54 cleanup 14:07:54 cleans up stale connections (608 ms) 14:07:54 properly cleans up on stop (8 ms) 14:07:54 samplePeersBatch 14:07:54 should only return samples as many peers as available (15 ms) 14:07:54 prioritizes peers without active connections (12 ms) 14:07:54 falls back to peers with connections when needed (12 ms) 14:07:54 handles case when all peers have active connections (12 ms) 14:07:54 handles case when fewer peers available than requested (11 ms) 14:07:54 handles case when no peers available (11 ms) 14:07:54 returns exactly the number of peers requested when available (13 ms) 14:07:54 14:07:54 Test Suites: 1 passed, 1 total 14:07:54 Tests: 17 passed, 17 total 14:07:54 Snapshots: 0 total 14:07:54 Time: 1.465 s 14:07:54 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 14:07:54 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?