Parent Log:
http://ci.aztec-labs.com/52a2d2cb830e3282
Command: 49f5129a0dc39cfa: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/4c695be4bff40a4a2ca2118c7e14c83a104e93aa
Env: REF_NAME=gh-readonly-queue/next/pr-15120-bbf33e6534f745d2f5a11c2f359583e881120fc4 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Wed Jun 18 17:22:34 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15120_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
17:22:34 +++ id -u
17:22:34 +++ id -g
17:22:34 ++ 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'\'''
17:22:34 + cid=817d53ad6f3c0979a1bf0e53b9d4b02f5b558906e317e84e14b5bd757b851e61
17:22:34 + set +x
17:22:36 [17:22:36.587]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:36 [17:22:36.593]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:36 [17:22:36.603]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:36 [17:22:36.604]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:36 [17:22:36.614]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:36 [17:22:36.615]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:36 [17:22:36.623]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:36 [17:22:36.624]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:36 [17:22:36.632]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:36 [17:22:36.633]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:36 [17:22:36.641]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:36 [17:22:36.642]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:36 [17:22:36.650]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:36 [17:22:36.650]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:36 [17:22:36.660]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:36 [17:22:36.661]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.269]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.270]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.278]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.279]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.280]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.280]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.300]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.301]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.316]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.317]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.333]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.334]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.347]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.348]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.359]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.359]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.377]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.378]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37 [17:22:37.400]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:22:37 [17:22:37.402]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:22:37
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
17:22:37 ConnectionSampler
17:22:37 getPeer
17:22:37
✓ returns a random peer from the list (63 ms)
17:22:37
✓ returns undefined if no peers are available (9 ms)
17:22:37
✓ attempts to find peer with no active connections (10 ms)
17:22:37
✓ should not sample a peer that is being excluded (8 ms)
17:22:37 connection management
17:22:37
✓ correctly tracks active connections (10 ms)
17:22:37
✓ handles multiple connections to same peer (8 ms)
17:22:37
✓ handles errors during connection close (8 ms)
17:22:37
✓ does not accidentally close a stream for another peer (10 ms)
17:22:37 cleanup
17:22:37
✓ cleans up stale connections (609 ms)
17:22:37
✓ properly cleans up on stop (9 ms)
17:22:37 samplePeersBatch
17:22:37
✓ should only return samples as many peers as available (20 ms)
17:22:37
✓ prioritizes peers without active connections (15 ms)
17:22:37
✓ falls back to peers with connections when needed (17 ms)
17:22:37
✓ handles case when all peers have active connections (14 ms)
17:22:37
✓ handles case when fewer peers available than requested (11 ms)
17:22:37
✓ handles case when no peers available (19 ms)
17:22:37
✓ returns exactly the number of peers requested when available (23 ms)
17:22:37
17:22:37
Test Suites: 1 passed, 1 total
17:22:37
Tests: 17 passed, 17 total
17:22:37
Snapshots: 0 total
17:22:37
Time: 1.516 s
17:22:37
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
17:22:37
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?