Parent Log: http://ci.aztec-labs.com/e20580f783f05d65 Command: 67815e8d3568a714: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/4e03f15ca8099f25d50eddd19c4914764b84fe7b Env: REF_NAME=gh-readonly-queue/next/pr-15013-4800d08570523bc1b2a9e8ec0dfb09e326f4689a CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 14:35:00 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15013_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 14:35:00 +++ id -u 14:35:00 +++ id -g 14:35:00 ++ 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:35:00 + cid=ed36d35c498e0cc5e051fee9e33a83b0227883f5b59a2d5dcb57f6bc5d10b0a3 14:35:00 + set +x 14:35:02 [14:35:02.112] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.117] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.129] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.130] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.151] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.152] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.163] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.164] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.174] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.175] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.181] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.181] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.199] ERROR: p2p:reqresp:connection-sampler Failed to close connection to peer with stream id 1: Error: Failed to close 14:35:02 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:136:66) 14:35:02 at /home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:397:39 14:35:02 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:404:13) 14:35:02 at Object.mockConstructor [as close] (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:148:19) 14:35:02 at ConnectionSampler.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.ts:258:21) 14:35:02 at Object.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:142:21) 14:35:02 [14:35:02.200] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.200] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.807] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.807] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.815] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.816] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.817] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.818] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.840] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.842] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.870] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.870] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.893] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.894] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.912] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.913] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.928] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.929] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.943] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.944] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 [14:35:02.959] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 14:35:02 [14:35:02.960] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 14:35:02 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 14:35:02 ConnectionSampler 14:35:02 getPeer 14:35:02 returns a random peer from the list (87 ms) 14:35:02 returns undefined if no peers are available (10 ms) 14:35:02 attempts to find peer with no active connections (23 ms) 14:35:02 should not sample a peer that is being excluded (11 ms) 14:35:02 connection management 14:35:02 correctly tracks active connections (10 ms) 14:35:02 handles multiple connections to same peer (5 ms) 14:35:02 handles errors during connection close (19 ms) 14:35:02 cleanup 14:35:02 cleans up stale connections (607 ms) 14:35:02 properly cleans up on stop (10 ms) 14:35:02 samplePeersBatch 14:35:02 should only return samples as many peers as available (24 ms) 14:35:02 prioritizes peers without active connections (28 ms) 14:35:02 falls back to peers with connections when needed (23 ms) 14:35:02 handles case when all peers have active connections (18 ms) 14:35:02 handles case when fewer peers available than requested (16 ms) 14:35:02 handles case when no peers available (15 ms) 14:35:02 returns exactly the number of peers requested when available (15 ms) 14:35:02 14:35:02 Test Suites: 1 passed, 1 total 14:35:02 Tests: 16 passed, 16 total 14:35:02 Snapshots: 0 total 14:35:02 Time: 1.428 s 14:35:02 Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i. 14:35:02 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?