Parent Log: http://ci.aztec-labs.com/1566bd89da2c1869 Command: ef85c2b8680d9e9c: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/9ba478709ce5c48099f79f9531da8292811cb18a Env: REF_NAME=gh-readonly-queue/staging/pr-15247-3863bc02d671057d0cffd4ced17ca317788ff190 CURRENT_VERSION=1.0.0 CI_FULL=1 Date: Tue Jun 24 14:59:19 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15247_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_staging 14:59:19 +++ id -u 14:59:19 +++ id -g 14:59:19 ++ 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:59:20 + cid=fb546491d740e009306f4d79be1fb900be0ec5696fc12dfb5ef496a40ffa2f27 14:59:20 + set +x 14:59:21 [14:59:21.945] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:21 [14:59:21.950] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:21 [14:59:21.958] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:21 [14:59:21.959] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:21 [14:59:21.968] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:21 [14:59:21.969] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:21 [14:59:21.978] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:21 [14:59:21.978] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:21 [14:59:21.989] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:21 [14:59:21.990] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:21 [14:59:21.998] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:21.999] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.007] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.008] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.015] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.016] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.623] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.624] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.629] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.629] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.630] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.630] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.645] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.646] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.671] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.673] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.696] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.697] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.710] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.711] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.725] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.726] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.738] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.739] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 [14:59:22.751] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:59:22 [14:59:22.751] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:59:22 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 14:59:22 ConnectionSampler 14:59:22 getPeer 14:59:22 returns a random peer from the list (55 ms) 14:59:22 returns undefined if no peers are available (7 ms) 14:59:22 attempts to find peer with no active connections (11 ms) 14:59:22 should not sample a peer that is being excluded (9 ms) 14:59:22 connection management 14:59:22 correctly tracks active connections (11 ms) 14:59:22 handles multiple connections to same peer (8 ms) 14:59:22 handles errors during connection close (8 ms) 14:59:22 does not accidentally close a stream for another peer (7 ms) 14:59:22 cleanup 14:59:22 cleans up stale connections (608 ms) 14:59:22 properly cleans up on stop (5 ms) 14:59:22 samplePeersBatch 14:59:22 should only return samples as many peers as available (17 ms) 14:59:22 prioritizes peers without active connections (27 ms) 14:59:22 falls back to peers with connections when needed (22 ms) 14:59:22 handles case when all peers have active connections (13 ms) 14:59:22 handles case when fewer peers available than requested (15 ms) 14:59:22 handles case when no peers available (13 ms) 14:59:22 returns exactly the number of peers requested when available (12 ms) 14:59:22 14:59:22 Test Suites: 1 passed, 1 total 14:59:22 Tests: 17 passed, 17 total 14:59:22 Snapshots: 0 total 14:59:22 Time: 1.614 s 14:59:22 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 14:59:22 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?