Parent Log:
http://ci.aztec-labs.com/d525d18f08c39a3a
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:41 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14986_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
09:10:41 +++ id -u
09:10:41 +++ id -g
09:10:41 ++ 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:42 + cid=8c29d38c502d91338baa932b1981b13923e7d18465e0c179aa3ddc2c5f94d816
09:10:42 + set +x
09:10:43 [09:10:43.472]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:43 [09:10:43.479]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:43 [09:10:43.490]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:43 [09:10:43.490]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:43 [09:10:43.499]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:43 [09:10:43.500]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:43 [09:10:43.508]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:43 [09:10:43.508]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:43 [09:10:43.519]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:43 [09:10:43.520]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:43 [09:10:43.528]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:43 [09:10:43.529]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:43 [09:10:43.544]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:43 [09:10:43.544]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:43 [09:10:43.561]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:43 [09:10:43.562]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.173]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.174]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.181]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.182]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.184]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.184]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.206]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.206]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.220]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.220]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.232]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.233]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.257]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.258]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.269]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.269]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.285]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.285]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44 [09:10:44.300]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
09:10:44 [09:10:44.301]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
09:10:44
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
09:10:44 ConnectionSampler
09:10:44 getPeer
09:10:44
✓ returns a random peer from the list (104 ms)
09:10:44
✓ returns undefined if no peers are available (8 ms)
09:10:44
✓ attempts to find peer with no active connections (9 ms)
09:10:44
✓ should not sample a peer that is being excluded (9 ms)
09:10:44 connection management
09:10:44
✓ correctly tracks active connections (11 ms)
09:10:44
✓ handles multiple connections to same peer (9 ms)
09:10:44
✓ handles errors during connection close (16 ms)
09:10:44
✓ does not accidentally close a stream for another peer (16 ms)
09:10:44 cleanup
09:10:44
✓ cleans up stale connections (611 ms)
09:10:44
✓ properly cleans up on stop (11 ms)
09:10:44 samplePeersBatch
09:10:44
✓ should only return samples as many peers as available (22 ms)
09:10:44
✓ prioritizes peers without active connections (13 ms)
09:10:44
✓ falls back to peers with connections when needed (12 ms)
09:10:44
✓ handles case when all peers have active connections (25 ms)
09:10:44
✓ handles case when fewer peers available than requested (11 ms)
09:10:44
✓ handles case when no peers available (16 ms)
09:10:44
✓ returns exactly the number of peers requested when available (15 ms)
09:10:44
09:10:44
Test Suites: 1 passed, 1 total
09:10:44
Tests: 17 passed, 17 total
09:10:44
Snapshots: 0 total
09:10:44
Time: 1.462 s
09:10:44
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
09:10:44
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?