Parent Log:
http://ci.aztec-labs.com/24748e6d08b984db
Command: aeeaca4258226ee3: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/1107a5aec5cc4c3884ed30df5e1e4c4417fa4588
Env: REF_NAME=gh-readonly-queue/next/pr-15258-ab2663c779174e49814adda157cc3aba0f136063 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Thu Jun 26 15:46:29 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15258_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
15:46:29 +++ id -u
15:46:29 +++ id -g
15:46:29 ++ 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'\'''
15:46:29 + cid=98d1911e20836b8210f9b4f873011beb9ccbaf13acc18925feca485de21a8a77
15:46:29 + set +x
15:46:31 [15:46:31.297]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.304]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.314]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.314]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.327]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.328]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.337]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.338]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.344]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.345]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.351]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.352]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.360]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.363]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.374]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.375]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.984]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.985]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.994]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.995]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:31 [15:46:31.995]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:31 [15:46:31.996]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:32 [15:46:32.014]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:32 [15:46:32.015]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:32 [15:46:32.032]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:32 [15:46:32.032]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:32 [15:46:32.049]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:32 [15:46:32.050]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:32 [15:46:32.064]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:32 [15:46:32.065]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:32 [15:46:32.086]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:32 [15:46:32.087]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:32 [15:46:32.104]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:32 [15:46:32.104]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:32 [15:46:32.121]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
15:46:32 [15:46:32.122]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
15:46:32
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
15:46:32 ConnectionSampler
15:46:32 getPeer
15:46:32
✓ returns a random peer from the list (67 ms)
15:46:32
✓ returns undefined if no peers are available (9 ms)
15:46:32
✓ attempts to find peer with no active connections (14 ms)
15:46:32
✓ should not sample a peer that is being excluded (9 ms)
15:46:32 connection management
15:46:32
✓ correctly tracks active connections (7 ms)
15:46:32
✓ handles multiple connections to same peer (7 ms)
15:46:32
✓ handles errors during connection close (11 ms)
15:46:32
✓ does not accidentally close a stream for another peer (11 ms)
15:46:32 cleanup
15:46:32
✓ cleans up stale connections (610 ms)
15:46:32
✓ properly cleans up on stop (10 ms)
15:46:32 samplePeersBatch
15:46:32
✓ should only return samples as many peers as available (19 ms)
15:46:32
✓ prioritizes peers without active connections (17 ms)
15:46:32
✓ falls back to peers with connections when needed (17 ms)
15:46:32
✓ handles case when all peers have active connections (15 ms)
15:46:32
✓ handles case when fewer peers available than requested (21 ms)
15:46:32
✓ handles case when no peers available (17 ms)
15:46:32
✓ returns exactly the number of peers requested when available (17 ms)
15:46:32
15:46:32
Test Suites: 1 passed, 1 total
15:46:32
Tests: 17 passed, 17 total
15:46:32
Snapshots: 0 total
15:46:32
Time: 1.553 s
15:46:32
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
15:46:32
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?