Parent Log:
http://ci.aztec-labs.com/8dcffbbcc559db48
Command: 85ebe83a9ef9464b: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/24972303091baff6f83c6389d7d1406c932357e9
Env: REF_NAME=gh-readonly-queue/next/pr-15042-a0a8617413ca6f4fba2ad190ce73dab59bd75a45 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 17 14:16:58 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15042_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:16:58 +++ id -u
14:16:58 +++ id -g
14:16:58 ++ 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:16:59 + cid=e921316dee266d1916c8bf54f57b40097e63302e78e42d2780001811e816f0e5
14:16:59 + set +x
14:17:01 [14:17:01.015]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.019]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.027]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.027]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.039]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.040]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.047]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.048]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.054]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.055]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.064]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.064]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.073]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.073]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.081]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.082]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.690]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.690]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.698]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.699]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.700]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.700]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.715]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.716]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.729]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.730]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.743]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.743]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.757]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.758]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.774]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.774]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.789]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.789]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01 [14:17:01.802]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
14:17:01 [14:17:01.802]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
14:17:01
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
14:17:01 ConnectionSampler
14:17:01 getPeer
14:17:01
✓ returns a random peer from the list (64 ms)
14:17:01
✓ returns undefined if no peers are available (7 ms)
14:17:01
✓ attempts to find peer with no active connections (12 ms)
14:17:01
✓ should not sample a peer that is being excluded (7 ms)
14:17:01 connection management
14:17:01
✓ correctly tracks active connections (6 ms)
14:17:01
✓ handles multiple connections to same peer (9 ms)
14:17:01
✓ handles errors during connection close (8 ms)
14:17:01
✓ does not accidentally close a stream for another peer (8 ms)
14:17:01 cleanup
14:17:01
✓ cleans up stale connections (608 ms)
14:17:01
✓ properly cleans up on stop (10 ms)
14:17:01 samplePeersBatch
14:17:01
✓ should only return samples as many peers as available (15 ms)
14:17:01
✓ prioritizes peers without active connections (14 ms)
14:17:01
✓ falls back to peers with connections when needed (12 ms)
14:17:01
✓ handles case when all peers have active connections (15 ms)
14:17:01
✓ handles case when fewer peers available than requested (17 ms)
14:17:01
✓ handles case when no peers available (15 ms)
14:17:01
✓ returns exactly the number of peers requested when available (13 ms)
14:17:01
14:17:01
Test Suites: 1 passed, 1 total
14:17:01
Tests: 17 passed, 17 total
14:17:01
Snapshots: 0 total
14:17:01
Time: 1.536 s
14:17:01
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
14:17:01
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?