Parent Log:
http://ci.aztec-labs.com/a86e01d3b8d093a5
Command: 73379369dc8552ae: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/73e6175e802437ee93b26885b6aff2fc12640523
Env: REF_NAME=gh-readonly-queue/next/pr-15163-4608046e462faf9ff3fbee265ba34dbecb5d0b31 CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 23 14:14:16 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15163_amd64_x4-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next
14:14:16 +++ id -u
14:14:16 +++ id -g
14:14:16 ++ 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'\'''
14:14:17 + cid=74425a24333dfff5c1aea612a26f44c1b2704b4c5d14fff931977c96b8c41716
14:14:17 + set +x
14:14:21 [14:14:21.035]
WARN:
test Trusted peers not initialized, returning false
14:14:21 [14:14:21.041]
WARN:
test Private peers not initialized, returning false
14:14:21 [14:14:21.042]
WARN:
test Trusted peers not initialized, returning false
14:14:21 [14:14:21.043]
WARN:
test Private peers not initialized, returning false
14:14:21 [14:14:21.154]
WARN:
test Trusted peers not initialized, returning false
14:14:21 [14:14:21.155]
WARN:
test Private peers not initialized, returning false
14:14:21 [14:14:21.156]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
14:14:21 [14:14:21.402]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:14:21 [14:14:21.505]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:14:21 [14:14:21.720]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:14:21 [14:14:21.822]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:14:21 [14:14:21.944]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:14:22 [14:14:22.047]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
14:14:22 [14:14:22.191]
WARN:
test Trusted peers not initialized, returning false
14:14:22 [14:14:22.191]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.192]
WARN:
test Trusted peers not initialized, returning false
14:14:22 [14:14:22.192]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.192]
WARN:
test Trusted peers not initialized, returning false
14:14:22 [14:14:22.192]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.302]
WARN:
test Trusted peers not initialized, returning false
14:14:22 [14:14:22.302]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.302]
WARN:
test Trusted peers not initialized, returning false
14:14:22 [14:14:22.303]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.303]
WARN:
test Trusted peers not initialized, returning false
14:14:22 [14:14:22.303]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.303]
WARN:
test Trusted peers not initialized, returning false
14:14:22 [14:14:22.303]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.303]
WARN:
test Trusted peers not initialized, returning false
14:14:22 [14:14:22.304]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.410]
WARN:
test Trusted peers not initialized, returning false
14:14:22 [14:14:22.411]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.631]
WARN:
test Private peers not initialized, returning false
14:14:22 [14:14:22.738]
WARN:
test Private peers not initialized, returning false
14:14:23 [14:14:23.463]
WARN:
test Private peers not initialized, returning false
14:14:23 [14:14:23.464]
WARN:
test Private peers not initialized, returning false
14:14:24 [14:14:24.108]
WARN:
test Trusted peers not initialized, returning false
14:14:24 [14:14:24.116]
WARN:
test Private peers not initialized, returning false
14:14:24 [14:14:24.116]
WARN:
test Private peers not initialized, returning false
14:14:24 [14:14:24.116]
WARN:
test Private peers not initialized, returning false
14:14:24 [14:14:24.893]
WARN:
test Private peers not initialized, returning false
14:14:25 [14:14:25.014]
WARN:
test Trusted peers not initialized, returning false
14:14:25 [14:14:25.014]
WARN:
test Private peers not initialized, returning false
14:14:25
PASS src/services/peer-manager/peer_manager.test.ts (
6.887 s)
14:14:25 PeerManager
14:14:25 peer management
14:14:25
✓ should return connected peers (75 ms)
14:14:25
✓ should return peers in dial queue (6 ms)
14:14:25
✓ should penalize peers (4 ms)
14:14:25
✓ should handle heartbeat (14 ms)
14:14:25
✓ should send goodbye to peers on shutdown (16 ms)
14:14:25 peer timeout functionality
14:14:25
✓ should attempt to dial a discovered peer (85 ms)
14:14:25
✓ should report peer count metric (111 ms)
14:14:25
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (348 ms)
14:14:25
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (223 ms)
14:14:25
✓ should cleanup expired timeouts during heartbeat (218 ms)
14:14:25
✓ should include timed out peers in getPeers when includePending is true (12 ms)
14:14:25
✓ should handle multiple peer discoveries and timeouts (117 ms)
14:14:25
✓ should disconnect from unhealthy peers during heartbeat (113 ms)
14:14:25
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (112 ms)
14:14:25
✓ should disconnect from duplicate peers during heartbeat (105 ms)
14:14:25
✓ should properly clean up peers on stop (6 ms)
14:14:25 trusted peers
14:14:25
✓ should not prune trusted peers (104 ms)
14:14:25
✓ should prune untrusted peers and not trusted peers (108 ms)
14:14:25
✓ should not disconnect trusted peers with low scores (108 ms)
14:14:25
✓ should not remove trusted peers from the cache during pruning (625 ms)
14:14:25
✓ should not remove trusted peers from the cache even when all peers are trusted (639 ms)
14:14:25
✓ should return false from isTrustedPeer when trusted peers are not initialized (3 ms)
14:14:25
✓ should not disconnect trusted peers when max peer count is reached (111 ms)
14:14:25 private peers
14:14:25
✓ should not prune private peers with low scores (104 ms)
14:14:25
✓ should not remove private peers from the cache during pruning (567 ms)
14:14:25
✓ should return false from isPrivatePeer when private peers are not initialized (3 ms)
14:14:25
✓ should initialize private peers from config (8 ms)
14:14:25
✓ should handle a peer being both trusted and private (105 ms)
14:14:25 goodbye metrics
14:14:25
✓ should record metrics when receiving goodbye messages (3 ms)
14:14:25
✓ should record metrics when sending goodbye messages (4 ms)
14:14:25
14:14:25
Test Suites: 1 passed, 1 total
14:14:25
Tests: 30 passed, 30 total
14:14:25
Snapshots: 0 total
14:14:25
Time: 6.977 s
14:14:25
Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts
.
14:14:25
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?