Parent Log:
http://ci.aztec-labs.com/28d0f502ea393c6c
Command: d4b21b2021ea73d7: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/4e3f550332c81006b8d3cdbeb646f4c567473f9d
Env: REF_NAME=gh-readonly-queue/next/pr-15148-2f9d2861e2863437732f136f554fc8275c1bb1e7 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Thu Jun 19 18:19:51 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15148_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
18:19:51 +++ id -u
18:19:51 +++ id -g
18:19:51 ++ 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'\'''
18:19:52 + cid=f619b59b6457687ab736bf688fb0f0518d0bbce9e64f074b50328e8632e89fe6
18:19:52 + set +x
18:19:53 [18:19:53.995]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.000]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.011]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.011]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.019]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.020]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.026]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.027]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.034]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.035]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.041]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.041]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.046]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.046]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.053]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.053]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.660]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.661]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.666]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.667]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.667]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.668]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.679]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.680]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.692]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.693]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.705]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.706]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.717]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.718]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.734]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.735]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.753]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.755]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54 [18:19:54.775]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
18:19:54 [18:19:54.776]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
18:19:54
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
18:19:54 ConnectionSampler
18:19:54 getPeer
18:19:54
✓ returns a random peer from the list (68 ms)
18:19:54
✓ returns undefined if no peers are available (10 ms)
18:19:54
✓ attempts to find peer with no active connections (8 ms)
18:19:54
✓ should not sample a peer that is being excluded (6 ms)
18:19:54 connection management
18:19:54
✓ correctly tracks active connections (7 ms)
18:19:54
✓ handles multiple connections to same peer (5 ms)
18:19:54
✓ handles errors during connection close (4 ms)
18:19:54
✓ does not accidentally close a stream for another peer (7 ms)
18:19:54 cleanup
18:19:54
✓ cleans up stale connections (607 ms)
18:19:54
✓ properly cleans up on stop (6 ms)
18:19:54 samplePeersBatch
18:19:54
✓ should only return samples as many peers as available (12 ms)
18:19:54
✓ prioritizes peers without active connections (13 ms)
18:19:54
✓ falls back to peers with connections when needed (13 ms)
18:19:54
✓ handles case when all peers have active connections (12 ms)
18:19:54
✓ handles case when fewer peers available than requested (17 ms)
18:19:54
✓ handles case when no peers available (20 ms)
18:19:54
✓ returns exactly the number of peers requested when available (20 ms)
18:19:54
18:19:54
Test Suites: 1 passed, 1 total
18:19:54
Tests: 17 passed, 17 total
18:19:54
Snapshots: 0 total
18:19:54
Time: 1.508 s
18:19:54
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
18:19:54
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?