Parent Log: http://ci.aztec-labs.com/4462dba3691bf87b Command: e1036ad1e7e82d49: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/812a53d5d7c2057744dbf808172864443b5de7af Env: REF_NAME=gh-readonly-queue/next/pr-14417-7a716b3fac2dc249573084a274291af7802ba659 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Thu Jun 26 13:36:52 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14417_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 13:36:52 +++ id -u 13:36:52 +++ id -g 13:36: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'\''' 13:36:52 + cid=caaf593f0c4f1a973e8e73814f5e3ad950b3cbea837ef5b00f718597b163aa7b 13:36:52 + set +x 13:36:54 [13:36:54.438] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:54 [13:36:54.443] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:54 [13:36:54.453] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:54 [13:36:54.454] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:54 [13:36:54.464] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:54 [13:36:54.465] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:54 [13:36:54.474] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:54 [13:36:54.474] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:54 [13:36:54.483] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:54 [13:36:54.484] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:54 [13:36:54.491] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:54 [13:36:54.492] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:54 [13:36:54.499] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:54 [13:36:54.499] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:54 [13:36:54.506] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:54 [13:36:54.509] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.117] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.118] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.125] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.126] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.127] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.128] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.142] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.144] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.161] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.161] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.181] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.181] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.196] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.197] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.213] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.213] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.229] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.229] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 [13:36:55.245] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 13:36:55 [13:36:55.246] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 13:36:55 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 13:36:55 ConnectionSampler 13:36:55 getPeer 13:36:55 returns a random peer from the list (52 ms) 13:36:55 returns undefined if no peers are available (10 ms) 13:36:55 attempts to find peer with no active connections (11 ms) 13:36:55 should not sample a peer that is being excluded (9 ms) 13:36:55 connection management 13:36:55 correctly tracks active connections (9 ms) 13:36:55 handles multiple connections to same peer (7 ms) 13:36:55 handles errors during connection close (7 ms) 13:36:55 does not accidentally close a stream for another peer (9 ms) 13:36:55 cleanup 13:36:55 cleans up stale connections (608 ms) 13:36:55 properly cleans up on stop (9 ms) 13:36:55 samplePeersBatch 13:36:55 should only return samples as many peers as available (16 ms) 13:36:55 prioritizes peers without active connections (18 ms) 13:36:55 falls back to peers with connections when needed (20 ms) 13:36:55 handles case when all peers have active connections (15 ms) 13:36:55 handles case when fewer peers available than requested (15 ms) 13:36:55 handles case when no peers available (16 ms) 13:36:55 returns exactly the number of peers requested when available (16 ms) 13:36:55 13:36:55 Test Suites: 1 passed, 1 total 13:36:55 Tests: 17 passed, 17 total 13:36:55 Snapshots: 0 total 13:36:55 Time: 1.525 s 13:36:55 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 13:36:55 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?