Parent Log:
http://ci.aztec-labs.com/117fd8a75fa699eb
Command: 4dcaaab13058c9f1: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/1542a83b8e029762e119474de1725d84a1aee3d2
Env: REF_NAME=gh-readonly-queue/next/pr-15095-eb7990c89ac679ce7fdfc2e985670cbf85c04be2 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Tue Jun 17 10:14:59 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15095_amd64_x2-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_fc557f9901045594_next
10:14:59 +++ id -u
10:14:59 +++ id -g
10:14:59 ++ 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'\'''
10:14:59 + cid=7dcee35c1f27c1703528b719169f676991d7e8011f9c0d5bf37bbb24de49f769
10:14:59 + set +x
10:15:01 [10:15:01.381]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:01 [10:15:01.386]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:01 [10:15:01.395]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:01 [10:15:01.395]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:01 [10:15:01.404]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:01 [10:15:01.405]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:01 [10:15:01.411]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:01 [10:15:01.412]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:01 [10:15:01.419]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:01 [10:15:01.420]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:01 [10:15:01.427]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:01 [10:15:01.428]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:01 [10:15:01.433]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:01 [10:15:01.433]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:01 [10:15:01.437]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:01 [10:15:01.438]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.044]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.045]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.052]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.052]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.053]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.053]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.077]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.077]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.103]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.104]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.121]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.122]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.135]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.136]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.146]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.146]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.158]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.158]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02 [10:15:02.173]
INFO:
p2p:reqresp:connection-sampler Stopping connection sampler
10:15:02 [10:15:02.174]
INFO:
p2p:reqresp:connection-sampler Connection sampler stopped
10:15:02
PASS src/services/reqresp/connection-sampler/connection_sampler.test.ts
10:15:02 ConnectionSampler
10:15:02 getPeer
10:15:02
✓ returns a random peer from the list (71 ms)
10:15:02
✓ returns undefined if no peers are available (8 ms)
10:15:02
✓ attempts to find peer with no active connections (10 ms)
10:15:02
✓ should not sample a peer that is being excluded (6 ms)
10:15:02 connection management
10:15:02
✓ correctly tracks active connections (7 ms)
10:15:02
✓ handles multiple connections to same peer (7 ms)
10:15:02
✓ handles errors during connection close (4 ms)
10:15:02
✓ does not accidentally close a stream for another peer (4 ms)
10:15:02 cleanup
10:15:02
✓ cleans up stale connections (607 ms)
10:15:02
✓ properly cleans up on stop (8 ms)
10:15:02 samplePeersBatch
10:15:02
✓ should only return samples as many peers as available (28 ms)
10:15:02
✓ prioritizes peers without active connections (22 ms)
10:15:02
✓ falls back to peers with connections when needed (18 ms)
10:15:02
✓ handles case when all peers have active connections (13 ms)
10:15:02
✓ handles case when fewer peers available than requested (10 ms)
10:15:02
✓ handles case when no peers available (11 ms)
10:15:02
✓ returns exactly the number of peers requested when available (16 ms)
10:15:02
10:15:02
Test Suites: 1 passed, 1 total
10:15:02
Tests: 17 passed, 17 total
10:15:02
Snapshots: 0 total
10:15:02
Time: 1.451 s
10:15:02
Ran all test suites matching p2p/src/services/reqresp/connection-sampler/connection_sampler.test.ts
.
10:15:02
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?