Parent Log: http://ci.aztec-labs.com/7d50fe3fd123434b Command: 9e675ed54321cc5a: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/96a426245731b3f48fcb6dd5e2a683c858706602 Env: REF_NAME=gh-readonly-queue/next/pr-15083-5867520ed258adecfee692b3694d693b2c7964ca CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 21:53:41 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15083_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_fc557f9901045594_next 21:53:41 +++ id -u 21:53:41 +++ id -g 21:53:41 ++ 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:53:41 + cid=6f4ce59f4b333c36b931f6930a06bc834d6499f5eee63b377a226a4b23ba6d6f 21:53:41 + set +x 21:53:43 [21:53:43.435] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:43 [21:53:43.440] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:43 [21:53:43.448] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:43 [21:53:43.448] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:43 [21:53:43.455] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:43 [21:53:43.456] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:43 [21:53:43.463] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:43 [21:53:43.463] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:43 [21:53:43.470] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:43 [21:53:43.471] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:43 [21:53:43.481] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:43 [21:53:43.482] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:43 [21:53:43.489] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:43 [21:53:43.490] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:43 [21:53:43.496] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:43 [21:53:43.496] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.104] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.105] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.113] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.114] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.115] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.115] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.133] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.134] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.153] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.153] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.173] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.173] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.192] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.193] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.212] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.212] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.229] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.230] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 [21:53:44.247] INFO: p2p:reqresp:connection-sampler Stopping connection sampler 21:53:44 [21:53:44.248] INFO: p2p:reqresp:connection-sampler Connection sampler stopped 21:53:44 PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts 21:53:44 ConnectionSampler 21:53:44 getPeer 21:53:44 returns a random peer from the list (58 ms) 21:53:44 returns undefined if no peers are available (7 ms) 21:53:44 attempts to find peer with no active connections (8 ms) 21:53:44 should not sample a peer that is being excluded (7 ms) 21:53:44 connection management 21:53:44 correctly tracks active connections (8 ms) 21:53:44 handles multiple connections to same peer (10 ms) 21:53:44 handles errors during connection close (7 ms) 21:53:44 does not accidentally close a stream for another peer (6 ms) 21:53:44 cleanup 21:53:44 cleans up stale connections (608 ms) 21:53:44 properly cleans up on stop (9 ms) 21:53:44 samplePeersBatch 21:53:44 should only return samples as many peers as available (18 ms) 21:53:44 prioritizes peers without active connections (19 ms) 21:53:44 falls back to peers with connections when needed (18 ms) 21:53:44 handles case when all peers have active connections (19 ms) 21:53:44 handles case when fewer peers available than requested (19 ms) 21:53:44 handles case when no peers available (19 ms) 21:53:44 returns exactly the number of peers requested when available (16 ms) 21:53:44 21:53:44 Test Suites: 1 passed, 1 total 21:53:44 Tests: 17 passed, 17 total 21:53:44 Snapshots: 0 total 21:53:44 Time: 1.442 s 21:53:44 Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts. 21:53:44 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?