Parent Log:
http://ci.aztec-labs.com/3def59c4542ba0a9
Command: 2a84f19e72ab8189: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/69efc9daf98e823f486416900de52fe8a44f25d9
Env: REF_NAME=gh-readonly-queue/next/pr-15187-6e2f55a89973b55c8c3c210b7f3a692b4d3d6473 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 23 16:07:19 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15187_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
16:07:19 +++ id -u
16:07:19 +++ id -g
16:07:19 ++ 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'\'''
16:07:19 + cid=ce11122bc5b81459ca6b99c018d0212a5c6092f13f406d33fb6604e00df8f199
16:07:19 + set +x
16:07:21 [16:07:21.683]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:21 [16:07:21.689]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:21 [16:07:21.698]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:21 [16:07:21.699]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:21 [16:07:21.708]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:21 [16:07:21.710]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:21 [16:07:21.721]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:21 [16:07:21.721]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:21 [16:07:21.730]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:21 [16:07:21.731]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:21 [16:07:21.736]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:21 [16:07:21.737]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:21 [16:07:21.741]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:21 [16:07:21.742]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:21 [16:07:21.751]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:21 [16:07:21.752]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.360]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.361]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.369]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.369]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.370]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.370]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.400]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.404]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.418]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.418]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.437]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.437]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.452]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.453]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.464]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.464]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.484]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.486]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22 [16:07:22.511]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:07:22 [16:07:22.511]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:07:22
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:07:22 ConnectionSampler
16:07:22 getPeer
16:07:22
✓ returns a random peer from the list (68 ms)
16:07:22
✓ returns undefined if no peers are available (9 ms)
16:07:22
✓ attempts to find peer with no active connections (10 ms)
16:07:22
✓ should not sample a peer that is being excluded (11 ms)
16:07:22 connection management
16:07:22
✓ correctly tracks active connections (10 ms)
16:07:22
✓ handles multiple connections to same peer (5 ms)
16:07:22
✓ handles errors during connection close (5 ms)
16:07:22
✓ does not accidentally close a stream for another peer (11 ms)
16:07:22 cleanup
16:07:22
✓ cleans up stale connections (608 ms)
16:07:22
✓ properly cleans up on stop (10 ms)
16:07:22 samplePeersBatch
16:07:22
✓ should only return samples as many peers as available (34 ms)
16:07:22
✓ prioritizes peers without active connections (13 ms)
16:07:22
✓ falls back to peers with connections when needed (18 ms)
16:07:22
✓ handles case when all peers have active connections (15 ms)
16:07:22
✓ handles case when fewer peers available than requested (11 ms)
16:07:22
✓ handles case when no peers available (21 ms)
16:07:22
✓ returns exactly the number of peers requested when available (24 ms)
16:07:22
16:07:22
Test Suites: 1 passed, 1 total
16:07:22
Tests: 17 passed, 17 total
16:07:22
Snapshots: 0 total
16:07:22
Time: 1.592 s
16:07:22
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
16:07:22
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?