Parent Log:
http://ci.aztec-labs.com/3f5c58d0c8cd50db
Command: ca4daf70a894f3c3: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/f0619dd82429a5973f3e1da8d7eb0877264908e3
Env: REF_NAME=gh-readonly-queue/next/pr-15188-ef6780e77e5f82f98ddfe92fd387cfd5fa7682e8 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 16:11:06 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15188_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
16:11:06 +++ id -u
16:11:06 +++ id -g
16:11:06 ++ 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'\'''
16:11:06 + cid=32fed7f97a69d4cc35ea77f34420698a86b3b2ec28f01bbcdeeadf8f5e5b50ae
16:11:06 + set +x
16:11:08 [16:11:08.295]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.300]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.308]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.309]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.317]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.318]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.325]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.325]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.333]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.334]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.341]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.341]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.348]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.348]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.356]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.356]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.963]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.963]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.968]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.969]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.969]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.969]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.979]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.980]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:08 [16:11:08.992]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:08 [16:11:08.993]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:09 [16:11:09.009]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:09 [16:11:09.010]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:09 [16:11:09.028]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:09 [16:11:09.029]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:09 [16:11:09.045]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:09 [16:11:09.046]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:09 [16:11:09.062]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:09 [16:11:09.063]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:09 [16:11:09.078]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:11:09 [16:11:09.079]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:11:09
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:11:09 ConnectionSampler
16:11:09 getPeer
16:11:09
✓ returns a random peer from the list (54 ms)
16:11:09
✓ returns undefined if no peers are available (7 ms)
16:11:09
✓ attempts to find peer with no active connections (9 ms)
16:11:09
✓ should not sample a peer that is being excluded (8 ms)
16:11:09 connection management
16:11:09
✓ correctly tracks active connections (9 ms)
16:11:09
✓ handles multiple connections to same peer (7 ms)
16:11:09
✓ handles errors during connection close (6 ms)
16:11:09
✓ does not accidentally close a stream for another peer (8 ms)
16:11:09 cleanup
16:11:09
✓ cleans up stale connections (607 ms)
16:11:09
✓ properly cleans up on stop (5 ms)
16:11:09 samplePeersBatch
16:11:09
✓ should only return samples as many peers as available (10 ms)
16:11:09
✓ prioritizes peers without active connections (13 ms)
16:11:09
✓ falls back to peers with connections when needed (17 ms)
16:11:09
✓ handles case when all peers have active connections (18 ms)
16:11:09
✓ handles case when fewer peers available than requested (17 ms)
16:11:09
✓ handles case when no peers available (16 ms)
16:11:09
✓ returns exactly the number of peers requested when available (17 ms)
16:11:09
16:11:09
Test Suites: 1 passed, 1 total
16:11:09
Tests: 17 passed, 17 total
16:11:09
Snapshots: 0 total
16:11:09
Time: 1.432 s
16:11:09
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
16:11:09
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?