Parent Log: http://ci.aztec-labs.com/a6ad5c00f5faa201 Command: 4a8fdb7487b9ad73: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/420e0a54fb4bfe8b04d7dd479f59ed0fe3ad3b74 Env: REF_NAME=gh-readonly-queue/next/pr-14922-106f897363bb5aee27ddd091b5be9641b011c5bb CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Thu Jun 12 16:14:57 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-14922_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 16:14:57 +++ id -u 16:14:57 +++ id -g 16:14:57 ++ docker run -d --name p2p_src_services_reqresp_connection-sampler_connection_sampler.test.ts --net=none --cpuset-cpus=0-63 --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'\''' 16:14:57 + cid=53e5cc8107a04abb2014276df1e8e5f7993a7451939840d89df6d00aca799fe7 16:14:57 + set +x 16:14:58 [16:14:58.973] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:58 [16:14:58.977] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:58 [16:14:58.984] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:58 [16:14:58.985] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:58 [16:14:58.991] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:58 [16:14:58.992] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:58 [16:14:58.998] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:58 [16:14:58.998] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.005] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.006] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.011] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.012] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.017] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.017] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.623] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.623] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.629] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.629] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.630] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.630] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.640] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.641] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.651] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.652] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.662] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.662] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.673] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.674] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.683] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.684] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.693] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.693] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 [16:14:59.702] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 16:14:59 [16:14:59.703] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 16:14:59 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 16:14:59 ConnectionSampler 16:14:59 getPeer 16:14:59 returns a random peer from the list (46 ms) 16:14:59 returns undefined if no peers are available (7 ms) 16:14:59 attempts to find peer with no active connections (7 ms) 16:14:59 should not sample a peer that is being excluded (6 ms) 16:14:59 connection management 16:14:59 correctly tracks active connections (8 ms) 16:14:59 handles multiple connections to same peer (5 ms) 16:14:59 handles errors during connection close (5 ms) 16:14:59 cleanup 16:14:59 cleans up stale connections (606 ms) 16:14:59 properly cleans up on stop (6 ms) 16:14:59 samplePeersBatch 16:14:59 should only return samples as many peers as available (10 ms) 16:14:59 prioritizes peers without active connections (11 ms) 16:14:59 falls back to peers with connections when needed (10 ms) 16:14:59 handles case when all peers have active connections (11 ms) 16:14:59 handles case when fewer peers available than requested (10 ms) 16:14:59 handles case when no peers available (9 ms) 16:14:59 returns exactly the number of peers requested when available (10 ms) 16:14:59 16:14:59 Test Suites: 1 passed, 1 total 16:14:59 Tests: 16 passed, 16 total 16:14:59 Snapshots: 0 total 16:14:59 Time: 1.181 s 16:14:59 Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i. 16:14:59 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?