Parent Log:
http://ci.aztec-labs.com/fd27c7b524aab244
Command: f803628267cda2b6: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/21a568ac0c9ef351b1923375be41d4620add2b60
Env: REF_NAME=gh-readonly-queue/next/pr-15042-b80949775e5c27908a6055ad24592f7d98bdc45a CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Sun Jun 15 12:34:53 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15042_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
12:34:53 +++ id -u
12:34:53 +++ id -g
12:34:53 ++ 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'\'''
12:34:53 + cid=ecc8bcec07d9988b5824f78750c4f4ed96f378638f49e982d262289a4cd73410
12:34:53 + set +x
12:34:55 [12:34:55.443]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:55 [12:34:55.452]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:55 [12:34:55.468]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:55 [12:34:55.468]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:55 [12:34:55.481]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:55 [12:34:55.483]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:55 [12:34:55.495]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:55 [12:34:55.496]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:55 [12:34:55.508]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:55 [12:34:55.509]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:55 [12:34:55.518]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:55 [12:34:55.519]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:55 [12:34:55.528]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:55 [12:34:55.528]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:55 [12:34:55.534]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:55 [12:34:55.535]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.142]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.143]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.153]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.154]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.155]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.155]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.176]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.177]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.194]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.195]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.214]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.215]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.235]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.235]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.251]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.252]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.262]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.263]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56 [12:34:56.278]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
12:34:56 [12:34:56.278]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
12:34:56
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
12:34:56 ConnectionSampler
12:34:56 getPeer
12:34:56
✓ returns a random peer from the list (101 ms)
12:34:56
✓ returns undefined if no peers are available (13 ms)
12:34:56
✓ attempts to find peer with no active connections (15 ms)
12:34:56
✓ should not sample a peer that is being excluded (12 ms)
12:34:56 connection management
12:34:56
✓ correctly tracks active connections (13 ms)
12:34:56
✓ handles multiple connections to same peer (10 ms)
12:34:56
✓ handles errors during connection close (8 ms)
12:34:56
✓ does not accidentally close a stream for another peer (6 ms)
12:34:56 cleanup
12:34:56
✓ cleans up stale connections (607 ms)
12:34:56
✓ properly cleans up on stop (13 ms)
12:34:56 samplePeersBatch
12:34:56
✓ should only return samples as many peers as available (19 ms)
12:34:56
✓ prioritizes peers without active connections (17 ms)
12:34:56
✓ falls back to peers with connections when needed (20 ms)
12:34:56
✓ handles case when all peers have active connections (21 ms)
12:34:56
✓ handles case when fewer peers available than requested (16 ms)
12:34:56
✓ handles case when no peers available (11 ms)
12:34:56
✓ returns exactly the number of peers requested when available (16 ms)
12:34:56
12:34:56
Test Suites: 1 passed, 1 total
12:34:56
Tests: 17 passed, 17 total
12:34:56
Snapshots: 0 total
12:34:56
Time: 1.477 s
12:34:56
Ran all test suites matching /p2p\/src\/services\/reqresp\/connection-sampler\/connection_sampler.test.ts/i
.
12:34:56
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?