Parent Log: http://ci.aztec-labs.com/064c24dcd5b6ed73 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:18:15 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14822_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 21:18:16 +++ id -u 21:18:16 +++ id -g 21:18:16 ++ 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:18:16 + cid=579cf9430c42078ee1da222940267a6961b960218b02c605353f050961abdf22 21:18:16 + set +x 21:18:18 [21:18:18.161] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.168] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.178] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.178] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.188] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.189] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.199] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.199] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.209] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.211] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.218] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.219] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.249] ERROR: p2p:reqresp:connection-sampler Failed to close connection to peer with stream id 1: Error: Failed to close 21:18:18 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:136:66) 21:18:18 at /home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:397:39 21:18:18 at Object.<anonymous> (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:404:13) 21:18:18 at Object.mockConstructor [as close] (/home/aztec-dev/aztec-packages/yarn-project/node_modules/jest-mock/build/index.js:148:19) 21:18:18 at ConnectionSampler.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.ts:258:21) 21:18:18 at Object.close (/home/aztec-dev/aztec-packages/yarn-project/p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts:142:21) 21:18:18 [21:18:18.250] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.251] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.861] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.862] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.870] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.871] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.872] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.873] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.892] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.892] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.909] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.910] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.931] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.932] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.954] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.955] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.968] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.968] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.978] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.978] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 [21:18:18.988] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:18:18 [21:18:18.989] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:18:18 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 21:18:18 ConnectionSampler 21:18:18 getPeer 21:18:18 returns a random peer from the list (67 ms) 21:18:18 returns undefined if no peers are available (9 ms) 21:18:18 attempts to find peer with no active connections (11 ms) 21:18:18 should not sample a peer that is being excluded (9 ms) 21:18:18 connection management 21:18:18 correctly tracks active connections (11 ms) 21:18:18 handles multiple connections to same peer (7 ms) 21:18:18 handles errors during connection close (32 ms) 21:18:18 cleanup 21:18:18 cleans up stale connections (610 ms) 21:18:18 properly cleans up on stop (10 ms) 21:18:18 samplePeersBatch 21:18:18 should only return samples as many peers as available (18 ms) 21:18:18 prioritizes peers without active connections (18 ms) 21:18:18 falls back to peers with connections when needed (21 ms) 21:18:18 handles case when all peers have active connections (22 ms) 21:18:18 handles case when fewer peers available than requested (14 ms) 21:18:19 handles case when no peers available (10 ms) 21:18:19 returns exactly the number of peers requested when available (10 ms) 21:18:19 21:18:19 Test Suites: 1 passed, 1 total 21:18:19 Tests: 16 passed, 16 total 21:18:19 Snapshots: 0 total 21:18:19 Time: 1.614 s 21:18:19 Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i. 21:18:19 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?