Parent Log:
http://ci.aztec-labs.com/5910880ca7ea8613
Command: c6dc62f84205193f: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/3cbe7945c84145b8646cf5cf8fb730b915c0dc93
Env: REF_NAME=gh-readonly-queue/next/pr-15068-254faae7d330e160b14c6eaaa099dc92d4a9cac7 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 13:30:35 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15068_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
13:30:35 +++ id -u
13:30:35 +++ id -g
13:30:35 ++ 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'\'''
13:30:36 + cid=d7e3377c7d112c95048278cfad79d98d5a627622fdb942de613d61ff2ace917e
13:30:36 + set +x
13:30:37 [13:30:37.795]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:37 [13:30:37.799]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:37 [13:30:37.808]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:37 [13:30:37.809]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:37 [13:30:37.819]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:37 [13:30:37.820]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:37 [13:30:37.829]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:37 [13:30:37.830]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:37 [13:30:37.841]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:37 [13:30:37.843]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:37 [13:30:37.856]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:37 [13:30:37.856]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:37 [13:30:37.865]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:37 [13:30:37.865]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:37 [13:30:37.874]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:37 [13:30:37.875]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.485]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.486]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.493]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.494]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.494]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.494]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.511]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.511]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.526]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.527]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.542]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.542]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.554]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.555]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.566]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.567]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.576]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.579]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38 [13:30:38.590]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:30:38 [13:30:38.590]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:30:38
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
13:30:38 ConnectionSampler
13:30:38 getPeer
13:30:38
✓ returns a random peer from the list (54 ms)
13:30:38
✓ returns undefined if no peers are available (10 ms)
13:30:38
✓ attempts to find peer with no active connections (11 ms)
13:30:38
✓ should not sample a peer that is being excluded (9 ms)
13:30:38 connection management
13:30:38
✓ correctly tracks active connections (12 ms)
13:30:38
✓ handles multiple connections to same peer (13 ms)
13:30:38
✓ handles errors during connection close (9 ms)
13:30:38
✓ does not accidentally close a stream for another peer (8 ms)
13:30:38 cleanup
13:30:38
✓ cleans up stale connections (611 ms)
13:30:38
✓ properly cleans up on stop (8 ms)
13:30:38 samplePeersBatch
13:30:38
✓ should only return samples as many peers as available (17 ms)
13:30:38
✓ prioritizes peers without active connections (15 ms)
13:30:38
✓ falls back to peers with connections when needed (13 ms)
13:30:38
✓ handles case when all peers have active connections (12 ms)
13:30:38
✓ handles case when fewer peers available than requested (12 ms)
13:30:38
✓ handles case when no peers available (12 ms)
13:30:38
✓ returns exactly the number of peers requested when available (11 ms)
13:30:38
13:30:38
Test Suites: 1 passed, 1 total
13:30:38
Tests: 17 passed, 17 total
13:30:38
Snapshots: 0 total
13:30:38
Time: 1.364 s
13:30:38
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
13:30:38
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?