Parent Log:
http://ci.aztec-labs.com/701a4364c73bba1e
Command: a8cc061dbe484831: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/58696523cc93fda453138a4f2c2dff72b21f0bfa
Env: REF_NAME=gh-readonly-queue/next/pr-15180-a923b0dd4c74291fcefa86c41b3b5dffca7e4178 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Fri Jun 20 13:10:14 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15180_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
13:10:14 +++ id -u
13:10:14 +++ id -g
13:10:14 ++ 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'\'''
13:10:14 + cid=c1f68b4250b3b4f3ea4636726f11adf8a7e4f445787287c5d323be9cf4ed7989
13:10:14 + set +x
13:10:16 [13:10:16.562]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:16 [13:10:16.569]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:16 [13:10:16.581]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:16 [13:10:16.582]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:16 [13:10:16.593]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:16 [13:10:16.595]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:16 [13:10:16.603]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:16 [13:10:16.604]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:16 [13:10:16.613]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:16 [13:10:16.614]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:16 [13:10:16.623]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:16 [13:10:16.623]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:16 [13:10:16.631]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:16 [13:10:16.632]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:16 [13:10:16.643]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:16 [13:10:16.643]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.252]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.252]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.263]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.263]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.264]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.265]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.280]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.280]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.297]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.298]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.317]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.318]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.335]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.336]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.349]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.349]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.362]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.363]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17 [13:10:17.379]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
13:10:17 [13:10:17.379]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
13:10:17
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
13:10:17 ConnectionSampler
13:10:17 getPeer
13:10:17
✓ returns a random peer from the list (66 ms)
13:10:17
✓ returns undefined if no peers are available (11 ms)
13:10:17
✓ attempts to find peer with no active connections (12 ms)
13:10:17
✓ should not sample a peer that is being excluded (8 ms)
13:10:17 connection management
13:10:17
✓ correctly tracks active connections (10 ms)
13:10:17
✓ handles multiple connections to same peer (9 ms)
13:10:17
✓ handles errors during connection close (8 ms)
13:10:17
✓ does not accidentally close a stream for another peer (11 ms)
13:10:17 cleanup
13:10:17
✓ cleans up stale connections (609 ms)
13:10:17
✓ properly cleans up on stop (13 ms)
13:10:17 samplePeersBatch
13:10:17
✓ should only return samples as many peers as available (15 ms)
13:10:17
✓ prioritizes peers without active connections (17 ms)
13:10:17
✓ falls back to peers with connections when needed (20 ms)
13:10:17
✓ handles case when all peers have active connections (18 ms)
13:10:17
✓ handles case when fewer peers available than requested (14 ms)
13:10:17
✓ handles case when no peers available (13 ms)
13:10:17
✓ returns exactly the number of peers requested when available (15 ms)
13:10:17
13:10:17
Test Suites: 1 passed, 1 total
13:10:17
Tests: 17 passed, 17 total
13:10:17
Snapshots: 0 total
13:10:17
Time: 1.493 s
13:10:17
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
13:10:17
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?