Parent Log:
http://ci.aztec-labs.com/66e7c042a97f543f
Command: 731d98bdb3377842: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/daebab2c4bace59ef25ddb29040a040926f095e6
Env: REF_NAME=gh-readonly-queue/next/pr-14986-b80949775e5c27908a6055ad24592f7d98bdc45a CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 09:10:35 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14986_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
09:10:35 +++ id -u
09:10:35 +++ id -g
09:10: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'\'''
09:10:36 + cid=7b12b6d1819cc95d53563c80ec34926bfdf76e6befe162c9687ce18aeb6b2fb9
09:10:36 + set +x
09:10:37 [09:10:37.816]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:37 [09:10:37.822]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:37 [09:10:37.833]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:37 [09:10:37.834]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:37 [09:10:37.848]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:37 [09:10:37.849]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:37 [09:10:37.862]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:37 [09:10:37.862]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:37 [09:10:37.873]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:37 [09:10:37.875]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:37 [09:10:37.883]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:37 [09:10:37.884]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:37 [09:10:37.893]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:37 [09:10:37.893]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:37 [09:10:37.901]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:37 [09:10:37.902]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.516]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.517]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.524]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.525]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.528]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.529]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.547]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.547]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.560]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.561]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.572]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.572]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.588]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.588]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.599]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.599]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.611]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.612]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38 [09:10:38.627]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:38 [09:10:38.627]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:38
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
09:10:38 ConnectionSampler
09:10:38 getPeer
09:10:38
✓ returns a random peer from the list (92 ms)
09:10:38
✓ returns undefined if no peers are available (9 ms)
09:10:38
✓ attempts to find peer with no active connections (15 ms)
09:10:38
✓ should not sample a peer that is being excluded (13 ms)
09:10:38 connection management
09:10:38
✓ correctly tracks active connections (12 ms)
09:10:38
✓ handles multiple connections to same peer (8 ms)
09:10:38
✓ handles errors during connection close (8 ms)
09:10:38
✓ does not accidentally close a stream for another peer (9 ms)
09:10:38 cleanup
09:10:38
✓ cleans up stale connections (613 ms)
09:10:38
✓ properly cleans up on stop (12 ms)
09:10:38 samplePeersBatch
09:10:38
✓ should only return samples as many peers as available (17 ms)
09:10:38
✓ prioritizes peers without active connections (13 ms)
09:10:38
✓ falls back to peers with connections when needed (11 ms)
09:10:38
✓ handles case when all peers have active connections (16 ms)
09:10:38
✓ handles case when fewer peers available than requested (10 ms)
09:10:38
✓ handles case when no peers available (12 ms)
09:10:38
✓ returns exactly the number of peers requested when available (15 ms)
09:10:38
09:10:38
Test Suites: 1 passed, 1 total
09:10:38
Tests: 17 passed, 17 total
09:10:38
Snapshots: 0 total
09:10:38
Time: 1.474 s
09:10:38
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
09:10:38
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?