Parent Log:
http://ci.aztec-labs.com/72dfec5668227906
Command: 37aad4e9ebf491ef: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/bbf33e6534f745d2f5a11c2f359583e881120fc4
Env: REF_NAME=gh-readonly-queue/next/pr-15047-e56623c3f6400dc164642e49255b211d6fb03ac6 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Wed Jun 18 17:06:09 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15047_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:06:09 +++ id -u
17:06:09 +++ id -g
17:06:09 ++ 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:06:10 + cid=7ae3189004bed31c266a458897e61d74dd4cdda3da66c7efcb44b346b8d749f1
17:06:10 + set +x
17:06:11 [17:06:11.533]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:11 [17:06:11.538]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:11 [17:06:11.546]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:11 [17:06:11.547]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:11 [17:06:11.564]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:11 [17:06:11.566]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:11 [17:06:11.579]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:11 [17:06:11.580]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:11 [17:06:11.588]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:11 [17:06:11.589]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:11 [17:06:11.595]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:11 [17:06:11.596]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:11 [17:06:11.603]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:11 [17:06:11.603]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:11 [17:06:11.612]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:11 [17:06:11.613]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.222]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.222]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.229]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.230]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.231]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.231]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.241]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.241]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.251]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.252]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.271]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.272]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.289]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.290]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.306]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.307]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.318]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.318]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12 [17:06:12.332]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
17:06:12 [17:06:12.333]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
17:06:12
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
17:06:12 ConnectionSampler
17:06:12 getPeer
17:06:12
✓ returns a random peer from the list (64 ms)
17:06:12
✓ returns undefined if no peers are available (7 ms)
17:06:12
✓ attempts to find peer with no active connections (19 ms)
17:06:12
✓ should not sample a peer that is being excluded (12 ms)
17:06:12 connection management
17:06:12
✓ correctly tracks active connections (8 ms)
17:06:12
✓ handles multiple connections to same peer (6 ms)
17:06:12
✓ handles errors during connection close (8 ms)
17:06:12
✓ does not accidentally close a stream for another peer (9 ms)
17:06:12 cleanup
17:06:12
✓ cleans up stale connections (608 ms)
17:06:12
✓ properly cleans up on stop (8 ms)
17:06:12 samplePeersBatch
17:06:12
✓ should only return samples as many peers as available (11 ms)
17:06:12
✓ prioritizes peers without active connections (10 ms)
17:06:12
✓ falls back to peers with connections when needed (20 ms)
17:06:12
✓ handles case when all peers have active connections (18 ms)
17:06:12
✓ handles case when fewer peers available than requested (16 ms)
17:06:12
✓ handles case when no peers available (11 ms)
17:06:12
✓ returns exactly the number of peers requested when available (14 ms)
17:06:12
17:06:12
Test Suites: 1 passed, 1 total
17:06:12
Tests: 17 passed, 17 total
17:06:12
Snapshots: 0 total
17:06:12
Time: 1.475 s
17:06:12
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
17:06:12
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?