Parent Log: http://ci.aztec-labs.com/b6d2c2e7c46edfef Command: 14e3ee78b19e4a89: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/ba9dcd7f83f0ed07aa55d643aa24a5958ed337e7 Env: REF_NAME=gh-readonly-queue/next/pr-15256-92cd160fc2a40d2f7c467287f1abae3af9960805 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Thu Jun 26 08:25:06 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15256_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 08:25:06 +++ id -u 08:25:06 +++ id -g 08:25:06 ++ 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:25:06 + cid=cc5e9aee8ec15ea0cbba09cb09ee79d2b77902856a6a07ea7e84e90858942322 08:25:06 + set +x 08:25:08 [08:25:08.574] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:08 [08:25:08.580] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:08 [08:25:08.594] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:08 [08:25:08.594] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:08 [08:25:08.605] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:08 [08:25:08.606] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:08 [08:25:08.615] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:08 [08:25:08.616] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:08 [08:25:08.623] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:08 [08:25:08.625] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:08 [08:25:08.630] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:08 [08:25:08.630] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:08 [08:25:08.637] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:08 [08:25:08.637] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:08 [08:25:08.650] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:08 [08:25:08.651] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.257] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.258] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.268] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.268] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.272] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.274] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.293] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.294] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.313] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.314] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.329] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.329] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.340] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.341] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.350] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.350] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.365] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.365] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 [08:25:09.388] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 08:25:09 [08:25:09.388] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 08:25:09 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 08:25:09 ConnectionSampler 08:25:09 getPeer 08:25:09 returns a random peer from the list (72 ms) 08:25:09 returns undefined if no peers are available (12 ms) 08:25:09 attempts to find peer with no active connections (12 ms) 08:25:09 should not sample a peer that is being excluded (10 ms) 08:25:09 connection management 08:25:09 correctly tracks active connections (7 ms) 08:25:09 handles multiple connections to same peer (5 ms) 08:25:09 handles errors during connection close (6 ms) 08:25:09 does not accidentally close a stream for another peer (13 ms) 08:25:09 cleanup 08:25:09 cleans up stale connections (607 ms) 08:25:09 properly cleans up on stop (15 ms) 08:25:09 samplePeersBatch 08:25:09 should only return samples as many peers as available (20 ms) 08:25:09 prioritizes peers without active connections (19 ms) 08:25:09 falls back to peers with connections when needed (15 ms) 08:25:09 handles case when all peers have active connections (12 ms) 08:25:09 handles case when fewer peers available than requested (9 ms) 08:25:09 handles case when no peers available (14 ms) 08:25:09 returns exactly the number of peers requested when available (24 ms) 08:25:09 08:25:09 Test Suites: 1 passed, 1 total 08:25:09 Tests: 17 passed, 17 total 08:25:09 Snapshots: 0 total 08:25:09 Time: 1.573 s 08:25:09 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 08:25:09 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?