Parent Log:
http://ci.aztec-labs.com/e09dcc0d0838bc1c
Command: 56d3c530a47f3a72: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/9071986bfe3af58c70d2c80c10f523e22bfe4cb4
Env: REF_NAME=gh-readonly-queue/next/pr-15133-64d1ec347b1cea9fa1b04ff6fc2984f8ee073b2b CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 14:52:09 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15133_amd64_x3-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
14:52:09 +++ id -u
14:52:09 +++ id -g
14:52: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'\'''
14:52:10 + cid=e280e3da94adb2675ad3a9ee477688878e970c0271d8d8fab7495fa491f5843c
14:52:10 + set +x
14:52:12 [14:52:12.015]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.020]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.030]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.031]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.037]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.038]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.044]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.045]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.053]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.054]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.062]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.063]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.070]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.071]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.080]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.081]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.688]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.689]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.698]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.698]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.699]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.700]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.717]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.718]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.730]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.730]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.749]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.750]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.767]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.768]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.781]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.782]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.795]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.795]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12 [14:52:12.810]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:52:12 [14:52:12.810]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:52:12
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
14:52:12 ConnectionSampler
14:52:12 getPeer
14:52:12
✓ returns a random peer from the list (47 ms)
14:52:12
✓ returns undefined if no peers are available (9 ms)
14:52:12
✓ attempts to find peer with no active connections (6 ms)
14:52:12
✓ should not sample a peer that is being excluded (6 ms)
14:52:12 connection management
14:52:12
✓ correctly tracks active connections (9 ms)
14:52:12
✓ handles multiple connections to same peer (9 ms)
14:52:12
✓ handles errors during connection close (7 ms)
14:52:12
✓ does not accidentally close a stream for another peer (9 ms)
14:52:12 cleanup
14:52:12
✓ cleans up stale connections (607 ms)
14:52:12
✓ properly cleans up on stop (10 ms)
14:52:12 samplePeersBatch
14:52:12
✓ should only return samples as many peers as available (19 ms)
14:52:12
✓ prioritizes peers without active connections (11 ms)
14:52:12
✓ falls back to peers with connections when needed (19 ms)
14:52:12
✓ handles case when all peers have active connections (18 ms)
14:52:12
✓ handles case when fewer peers available than requested (14 ms)
14:52:12
✓ handles case when no peers available (13 ms)
14:52:12
✓ returns exactly the number of peers requested when available (15 ms)
14:52:12
14:52:12
Test Suites: 1 passed, 1 total
14:52:12
Tests: 17 passed, 17 total
14:52:12
Snapshots: 0 total
14:52:12
Time: 1.51 s
14:52:12
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
14:52:12
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?