Parent Log: http://ci.aztec-labs.com/2aac72a9f0a3e7d4 Command: b818050160cbcbd8: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/184d5f7d956dd7251670a2dd6728f313cfdf3caf Env: REF_NAME=gh-readonly-queue/next/pr-14822-e56baa7f24bac54baf9e2f22f6f33ae6fa8b8c0f CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 21:17:32 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14822_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 21:17:33 +++ id -u 21:17:33 +++ id -g 21:17:33 ++ 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'\''' 21:17:33 + cid=cacab12699ea8fff01ff1bd2d001c2c6b13218b35103da97250990333a36825f 21:17:33 + set +x 21:17:34 [21:17:34.885] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:34 [21:17:34.891] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:34 [21:17:34.901] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:34 [21:17:34.901] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:34 [21:17:34.909] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:34 [21:17:34.910] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:34 [21:17:34.938] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:34 [21:17:34.939] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:34 [21:17:34.950] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:34 [21:17:34.951] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:34 [21:17:34.962] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:34 [21:17:34.963] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:34 [21:17:34.995] ERROR: p2p:reqresp:connection-sampler Failed to close connection to peer with stream id 1: Error: Failed to close 21:17:34 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:136:66) 21:17:34 at /home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:397:39 21:17:34 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:404:13) 21:17:34 at Object.mockConstructor [as close] (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:148:19) 21:17:34 at ConnectionSampler.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.ts:258:21) 21:17:34 at Object.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:142:21) 21:17:34 [21:17:34.996] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:34 [21:17:34.997] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.606] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.606] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.612] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.613] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.614] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.614] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.632] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.632] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.650] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.651] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.666] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.667] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.683] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.684] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.696] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.697] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.706] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.707] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 [21:17:35.719] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:17:35 [21:17:35.720] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:17:35 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 21:17:35 ConnectionSampler 21:17:35 getPeer 21:17:35 returns a random peer from the list (80 ms) 21:17:35 returns undefined if no peers are available (9 ms) 21:17:35 attempts to find peer with no active connections (8 ms) 21:17:35 should not sample a peer that is being excluded (30 ms) 21:17:35 connection management 21:17:35 correctly tracks active connections (12 ms) 21:17:35 handles multiple connections to same peer (12 ms) 21:17:35 handles errors during connection close (32 ms) 21:17:35 cleanup 21:17:35 cleans up stale connections (609 ms) 21:17:35 properly cleans up on stop (7 ms) 21:17:35 samplePeersBatch 21:17:35 should only return samples as many peers as available (18 ms) 21:17:35 prioritizes peers without active connections (18 ms) 21:17:35 falls back to peers with connections when needed (15 ms) 21:17:35 handles case when all peers have active connections (17 ms) 21:17:35 handles case when fewer peers available than requested (12 ms) 21:17:35 handles case when no peers available (10 ms) 21:17:35 returns exactly the number of peers requested when available (13 ms) 21:17:35 21:17:35 Test Suites: 1 passed, 1 total 21:17:35 Tests: 16 passed, 16 total 21:17:35 Snapshots: 0 total 21:17:35 Time: 1.498 s 21:17:35 Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i. 21:17:35 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?