Parent Log:
http://ci.aztec-labs.com/3e405d275b6ac44c
Command: 213f3b45d6dc5e03: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/9716910bd1b02344790194d074f445aec4636887
Env: REF_NAME=gh-readonly-queue/next/pr-15279-7f9d2b386d786966384cc62d3ea3995ba340c48a CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Wed Jun 25 16:42:18 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15279_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:42:18 +++ id -u
16:42:18 +++ id -g
16:42:18 ++ 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:42:18 + cid=8759803ab401c631d659f51a41194cdca1763d50eb8d23e2e93a278be315e293
16:42:18 + set +x
16:42:20 [16:42:20.414]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:20 [16:42:20.419]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:20 [16:42:20.427]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:20 [16:42:20.428]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:20 [16:42:20.436]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:20 [16:42:20.438]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:20 [16:42:20.447]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:20 [16:42:20.447]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:20 [16:42:20.457]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:20 [16:42:20.458]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:20 [16:42:20.466]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:20 [16:42:20.467]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:20 [16:42:20.473]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:20 [16:42:20.473]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:20 [16:42:20.482]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:20 [16:42:20.483]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.094]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.095]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.102]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.102]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.103]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.103]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.120]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.121]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.139]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.139]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.159]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.160]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.175]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.175]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.190]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.191]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.208]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.209]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21 [16:42:21.219]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
16:42:21 [16:42:21.220]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
16:42:21
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
16:42:21 ConnectionSampler
16:42:21 getPeer
16:42:21
✓ returns a random peer from the list (62 ms)
16:42:21
✓ returns undefined if no peers are available (7 ms)
16:42:21
✓ attempts to find peer with no active connections (9 ms)
16:42:21
✓ should not sample a peer that is being excluded (9 ms)
16:42:21 connection management
16:42:21
✓ correctly tracks active connections (11 ms)
16:42:21
✓ handles multiple connections to same peer (8 ms)
16:42:21
✓ handles errors during connection close (6 ms)
16:42:21
✓ does not accidentally close a stream for another peer (10 ms)
16:42:21 cleanup
16:42:21
✓ cleans up stale connections (609 ms)
16:42:21
✓ properly cleans up on stop (7 ms)
16:42:21 samplePeersBatch
16:42:21
✓ should only return samples as many peers as available (18 ms)
16:42:21
✓ prioritizes peers without active connections (17 ms)
16:42:21
✓ falls back to peers with connections when needed (20 ms)
16:42:21
✓ handles case when all peers have active connections (15 ms)
16:42:21
✓ handles case when fewer peers available than requested (15 ms)
16:42:21
✓ handles case when no peers available (17 ms)
16:42:21
✓ returns exactly the number of peers requested when available (11 ms)
16:42:21
16:42:21
Test Suites: 1 passed, 1 total
16:42:21
Tests: 17 passed, 17 total
16:42:21
Snapshots: 0 total
16:42:21
Time: 1.593 s
16:42:21
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
16:42:21
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?