Parent Log:
http://ci.aztec-labs.com/a1c0649f970fa576
Command: 6978e0e5f3e9e568: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/af094bce13530e078c78de9f3264280e6693d533
Env: REF_NAME=gh-readonly-queue/next/pr-15224-8ecfee1e20968adef7d520a6b827b218f486ba0e CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 23 18:28:09 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15224_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
18:28:10 +++ id -u
18:28:10 +++ id -g
18:28:10 ++ 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'\'''
18:28:10 + cid=0600f2127c0db8e8e4b9ee5b3389bfa2538bd18e51532dd52b51a21025b6bd25
18:28:10 + set +x
18:28:12 [18:28:12.234]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.238]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.247]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.247]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.258]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.259]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.268]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.268]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.278]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.279]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.287]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.288]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.295]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.296]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.311]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.311]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.921]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.922]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.931]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.932]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.933]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.934]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.953]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.953]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.967]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.968]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:12 [18:28:12.994]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:12 [18:28:12.996]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:13 [18:28:13.015]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:13 [18:28:13.015]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:13 [18:28:13.026]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:13 [18:28:13.026]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:13 [18:28:13.040]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:13 [18:28:13.041]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:13 [18:28:13.057]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:28:13 [18:28:13.057]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:28:13
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
18:28:13 ConnectionSampler
18:28:13 getPeer
18:28:13
✓ returns a random peer from the list (61 ms)
18:28:13
✓ returns undefined if no peers are available (8 ms)
18:28:13
✓ attempts to find peer with no active connections (12 ms)
18:28:13
✓ should not sample a peer that is being excluded (9 ms)
18:28:13 connection management
18:28:13
✓ correctly tracks active connections (11 ms)
18:28:13
✓ handles multiple connections to same peer (8 ms)
18:28:13
✓ handles errors during connection close (8 ms)
18:28:13
✓ does not accidentally close a stream for another peer (15 ms)
18:28:13 cleanup
18:28:13
✓ cleans up stale connections (610 ms)
18:28:13
✓ properly cleans up on stop (12 ms)
18:28:13 samplePeersBatch
18:28:13
✓ should only return samples as many peers as available (18 ms)
18:28:13
✓ prioritizes peers without active connections (14 ms)
18:28:13
✓ falls back to peers with connections when needed (28 ms)
18:28:13
✓ handles case when all peers have active connections (20 ms)
18:28:13
✓ handles case when fewer peers available than requested (11 ms)
18:28:13
✓ handles case when no peers available (14 ms)
18:28:13
✓ returns exactly the number of peers requested when available (18 ms)
18:28:13
18:28:13
Test Suites: 1 passed, 1 total
18:28:13
Tests: 17 passed, 17 total
18:28:13
Snapshots: 0 total
18:28:13
Time: 1.573 s
18:28:13
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
18:28:13
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?