Parent Log:
http://ci.aztec-labs.com/ac8143c2280c6a58
Command: d5ace37751aeb3b2: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/64d1ec347b1cea9fa1b04ff6fc2984f8ee073b2b
Env: REF_NAME=gh-readonly-queue/next/pr-15185-107a625e4a5b124b87c02fa9ff2ae12b5778baa9 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 14:49:56 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15185_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
14:49:56 +++ id -u
14:49:56 +++ id -g
14:49:56 ++ 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'\'''
14:49:56 + cid=eee4552bec40743c5757d9533ad5cb16e33ba5b2ae6dd6a43f2319a763838b0e
14:49:56 + set +x
14:49:58 [14:49:58.507]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:58 [14:49:58.512]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:58 [14:49:58.520]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:58 [14:49:58.521]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:58 [14:49:58.531]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:58 [14:49:58.533]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:58 [14:49:58.542]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:58 [14:49:58.543]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:58 [14:49:58.550]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:58 [14:49:58.551]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:58 [14:49:58.559]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:58 [14:49:58.560]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:58 [14:49:58.566]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:58 [14:49:58.567]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:58 [14:49:58.576]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:58 [14:49:58.577]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.186]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.187]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.195]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.196]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.196]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.197]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.215]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.216]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.234]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.234]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.253]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.253]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.269]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.269]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.284]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.285]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.299]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.299]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59 [14:49:59.316]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:49:59 [14:49:59.316]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:49:59
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
14:49:59 ConnectionSampler
14:49:59 getPeer
14:49:59
✓ returns a random peer from the list (64 ms)
14:49:59
✓ returns undefined if no peers are available (7 ms)
14:49:59
✓ attempts to find peer with no active connections (11 ms)
14:49:59
✓ should not sample a peer that is being excluded (10 ms)
14:49:59 connection management
14:49:59
✓ correctly tracks active connections (8 ms)
14:49:59
✓ handles multiple connections to same peer (7 ms)
14:49:59
✓ handles errors during connection close (6 ms)
14:49:59
✓ does not accidentally close a stream for another peer (9 ms)
14:49:59 cleanup
14:49:59
✓ cleans up stale connections (609 ms)
14:49:59
✓ properly cleans up on stop (9 ms)
14:49:59 samplePeersBatch
14:49:59
✓ should only return samples as many peers as available (18 ms)
14:49:59
✓ prioritizes peers without active connections (17 ms)
14:49:59
✓ falls back to peers with connections when needed (18 ms)
14:49:59
✓ handles case when all peers have active connections (15 ms)
14:49:59
✓ handles case when fewer peers available than requested (15 ms)
14:49:59
✓ handles case when no peers available (14 ms)
14:49:59
✓ returns exactly the number of peers requested when available (17 ms)
14:49:59
14:49:59
Test Suites: 1 passed, 1 total
14:49:59
Tests: 17 passed, 17 total
14:49:59
Snapshots: 0 total
14:49:59
Time: 1.659 s
14:49:59
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
14:49:59
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?