Parent Log:
http://ci.aztec-labs.com/f7f41d385a4341ce
Command: 411627cf9c043d00:ISOLATE=1:NAME=p2p/src/services/peer-manager/peer_manager.test.ts yarn-project/scripts/run_test.sh p2p/src/services/peer-manager/peer_manager.test.ts
Commit:
https://github.com/AztecProtocol/aztec-packages/commit/721a41c449eb0c4538a26180f6061f326128cf78
Env: REF_NAME=gh-readonly-queue/next/pr-14963-60e60f99f2634ad75a76b6e103858ff9ccd041d5 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 18:41:35 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14963_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next
18:41:35 +++ id -u
18:41:35 +++ id -g
18:41:35 ++ docker run -d --name p2p_src_services_peer-manager_peer_manager.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/peer-manager/peer_manager.test.ts'\'''
18:41:35 + cid=f87f5ea94d7261562c503c2655379fd536fd660c1c4d1e7ba449b8de1f761d01
18:41:35 + set +x
18:41:39 [18:41:39.974]
WARN:
test Trusted peers not initialized, returning false
18:41:39 [18:41:39.979]
WARN:
test Private peers not initialized, returning false
18:41:39 [18:41:39.980]
WARN:
test Trusted peers not initialized, returning false
18:41:39 [18:41:39.980]
WARN:
test Private peers not initialized, returning false
18:41:40 [18:41:40.058]
WARN:
test Trusted peers not initialized, returning false
18:41:40 [18:41:40.059]
WARN:
test Private peers not initialized, returning false
18:41:40 [18:41:40.059]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
18:41:40 [18:41:40.290]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
18:41:40 [18:41:40.391]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
18:41:40 [18:41:40.607]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
18:41:40 [18:41:40.709]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
18:41:40 [18:41:40.829]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
18:41:40 [18:41:40.930]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
18:41:41 [18:41:41.073]
WARN:
test Trusted peers not initialized, returning false
18:41:41 [18:41:41.074]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.074]
WARN:
test Trusted peers not initialized, returning false
18:41:41 [18:41:41.074]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.074]
WARN:
test Trusted peers not initialized, returning false
18:41:41 [18:41:41.075]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.185]
WARN:
test Trusted peers not initialized, returning false
18:41:41 [18:41:41.185]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.186]
WARN:
test Trusted peers not initialized, returning false
18:41:41 [18:41:41.186]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.186]
WARN:
test Trusted peers not initialized, returning false
18:41:41 [18:41:41.186]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.187]
WARN:
test Trusted peers not initialized, returning false
18:41:41 [18:41:41.187]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.187]
WARN:
test Trusted peers not initialized, returning false
18:41:41 [18:41:41.187]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.292]
WARN:
test Trusted peers not initialized, returning false
18:41:41 [18:41:41.293]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.516]
WARN:
test Private peers not initialized, returning false
18:41:41 [18:41:41.627]
WARN:
test Private peers not initialized, returning false
18:41:42 [18:41:42.361]
WARN:
test Private peers not initialized, returning false
18:41:42 [18:41:42.361]
WARN:
test Private peers not initialized, returning false
18:41:42 [18:41:42.974]
WARN:
test Trusted peers not initialized, returning false
18:41:42 [18:41:42.982]
WARN:
test Private peers not initialized, returning false
18:41:42 [18:41:42.982]
WARN:
test Private peers not initialized, returning false
18:41:42 [18:41:42.982]
WARN:
test Private peers not initialized, returning false
18:41:43 [18:41:43.822]
WARN:
test Private peers not initialized, returning false
18:41:43 [18:41:43.941]
WARN:
test Trusted peers not initialized, returning false
18:41:43 [18:41:43.941]
WARN:
test Private peers not initialized, returning false
18:41:43
PASS src/services/peer-manager/peer_manager.test.ts (
6.963 s)
18:41:43 PeerManager
18:41:43 peer management
18:41:43
✓ should return connected peers (44 ms)
18:41:43
✓ should return peers in dial queue (5 ms)
18:41:43
✓ should penalize peers (3 ms)
18:41:43
✓ should handle heartbeat (9 ms)
18:41:43
✓ should send goodbye to peers on shutdown (6 ms)
18:41:43 peer timeout functionality
18:41:43
✓ should attempt to dial a discovered peer (69 ms)
18:41:43
✓ should report peer count metric (106 ms)
18:41:43
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (333 ms)
18:41:43
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (223 ms)
18:41:43
✓ should cleanup expired timeouts during heartbeat (216 ms)
18:41:43
✓ should include timed out peers in getPeers when includePending is true (10 ms)
18:41:43
✓ should handle multiple peer discoveries and timeouts (123 ms)
18:41:43
✓ should disconnect from unhealthy peers during heartbeat (109 ms)
18:41:43
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (113 ms)
18:41:43
✓ should disconnect from duplicate peers during heartbeat (104 ms)
18:41:43
✓ should properly clean up peers on stop (9 ms)
18:41:43 trusted peers
18:41:43
✓ should not prune trusted peers (103 ms)
18:41:43
✓ should prune untrusted peers and not trusted peers (113 ms)
18:41:43
✓ should not disconnect trusted peers with low scores (108 ms)
18:41:43
✓ should not remove trusted peers from the cache during pruning (632 ms)
18:41:43
✓ should not remove trusted peers from the cache even when all peers are trusted (607 ms)
18:41:43
✓ should return false from isTrustedPeer when trusted peers are not initialized (4 ms)
18:41:43
✓ should not disconnect trusted peers when max peer count is reached (110 ms)
18:41:43 private peers
18:41:43
✓ should not prune private peers with low scores (105 ms)
18:41:43
✓ should not remove private peers from the cache during pruning (630 ms)
18:41:43
✓ should return false from isPrivatePeer when private peers are not initialized (2 ms)
18:41:43
✓ should initialize private peers from config (8 ms)
18:41:43
✓ should handle a peer being both trusted and private (102 ms)
18:41:43 goodbye metrics
18:41:43
✓ should record metrics when receiving goodbye messages (3 ms)
18:41:43
✓ should record metrics when sending goodbye messages (5 ms)
18:41:43
18:41:43
Test Suites: 1 passed, 1 total
18:41:43
Tests: 30 passed, 30 total
18:41:43
Snapshots: 0 total
18:41:43
Time: 7.067 s
18:41:43
Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts
.
18:41:43
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?