Parent Log:
http://ci.aztec-labs.com/5dedeee27fb005f9
Command: 1f475c5d66a44412: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/e56baa7f24bac54baf9e2f22f6f33ae6fa8b8c0f
Env: REF_NAME=gh-readonly-queue/next/pr-14891-76ca48a2187e3506bb464eae574e49476c2876ca CURRENT_VERSION=0.87.6 CI_FULL=0
Date: Fri Jun 13 19:22:10 UTC 2025
System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-14891_arm64_a1-fast
Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next
19:22:10 +++ id -u
19:22:10 +++ id -g
19:22:10 ++ docker run -d --name p2p_src_services_peer-manager_peer_manager.test.ts --net=none --cpuset-cpus=0-63 --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'\'''
19:22:11 + cid=03a76b714d8db72392f888fce0afbbe02226cec008d43a40dc6fb4d83c717be1
19:22:11 + set +x
19:22:13 [19:22:13.585]
WARN:
test Trusted peers not initialized, returning false
19:22:13 [19:22:13.589]
WARN:
test Private peers not initialized, returning false
19:22:13 [19:22:13.590]
WARN:
test Trusted peers not initialized, returning false
19:22:13 [19:22:13.591]
WARN:
test Private peers not initialized, returning false
19:22:13 [19:22:13.652]
WARN:
test Trusted peers not initialized, returning false
19:22:13 [19:22:13.652]
WARN:
test Private peers not initialized, returning false
19:22:13 [19:22:13.653]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
19:22:13 [19:22:13.878]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
19:22:13 [19:22:13.979]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
19:22:14 [19:22:14.190]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
19:22:14 [19:22:14.291]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
19:22:14 [19:22:14.403]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
19:22:14 [19:22:14.504]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
19:22:14 [19:22:14.633]
WARN:
test Trusted peers not initialized, returning false
19:22:14 [19:22:14.633]
WARN:
test Private peers not initialized, returning false
19:22:14 [19:22:14.633]
WARN:
test Trusted peers not initialized, returning false
19:22:14 [19:22:14.633]
WARN:
test Private peers not initialized, returning false
19:22:14 [19:22:14.634]
WARN:
test Trusted peers not initialized, returning false
19:22:14 [19:22:14.634]
WARN:
test Private peers not initialized, returning false
19:22:14 [19:22:14.742]
WARN:
test Trusted peers not initialized, returning false
19:22:14 [19:22:14.743]
WARN:
test Private peers not initialized, returning false
19:22:14 [19:22:14.743]
WARN:
test Trusted peers not initialized, returning false
19:22:14 [19:22:14.743]
WARN:
test Private peers not initialized, returning false
19:22:14 [19:22:14.743]
WARN:
test Trusted peers not initialized, returning false
19:22:14 [19:22:14.744]
WARN:
test Private peers not initialized, returning false
19:22:14 [19:22:14.744]
WARN:
test Trusted peers not initialized, returning false
19:22:14 [19:22:14.744]
WARN:
test Private peers not initialized, returning false
19:22:14 [19:22:14.744]
WARN:
test Trusted peers not initialized, returning false
19:22:14 [19:22:14.744]
WARN:
test Private peers not initialized, returning false
19:22:14 [19:22:14.848]
WARN:
test Trusted peers not initialized, returning false
19:22:14 [19:22:14.849]
WARN:
test Private peers not initialized, returning false
19:22:15 [19:22:15.059]
WARN:
test Private peers not initialized, returning false
19:22:15 [19:22:15.163]
WARN:
test Private peers not initialized, returning false
19:22:15 [19:22:15.685]
WARN:
test Private peers not initialized, returning false
19:22:15 [19:22:15.685]
WARN:
test Private peers not initialized, returning false
19:22:16 [19:22:16.127]
WARN:
test Trusted peers not initialized, returning false
19:22:16 [19:22:16.133]
WARN:
test Private peers not initialized, returning false
19:22:16 [19:22:16.134]
WARN:
test Private peers not initialized, returning false
19:22:16 [19:22:16.134]
WARN:
test Private peers not initialized, returning false
19:22:16 [19:22:16.741]
WARN:
test Private peers not initialized, returning false
19:22:16 [19:22:16.856]
WARN:
test Trusted peers not initialized, returning false
19:22:16 [19:22:16.856]
WARN:
test Private peers not initialized, returning false
19:22:16
PASS src/services/peer-manager/peer_manager.test.ts
19:22:16 PeerManager
19:22:16 peer management
19:22:16
✓ should return connected peers (34 ms)
19:22:16
✓ should return peers in dial queue (4 ms)
19:22:16
✓ should penalize peers (3 ms)
19:22:16
✓ should handle heartbeat (8 ms)
19:22:16
✓ should send goodbye to peers on shutdown (6 ms)
19:22:16 peer timeout functionality
19:22:16
✓ should attempt to dial a discovered peer (51 ms)
19:22:16
✓ should report peer count metric (104 ms)
19:22:16
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (328 ms)
19:22:16
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (214 ms)
19:22:16
✓ should cleanup expired timeouts during heartbeat (211 ms)
19:22:16
✓ should include timed out peers in getPeers when includePending is true (8 ms)
19:22:16
✓ should handle multiple peer discoveries and timeouts (112 ms)
19:22:16
✓ should disconnect from unhealthy peers during heartbeat (108 ms)
19:22:16
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (110 ms)
19:22:16
✓ should disconnect from duplicate peers during heartbeat (103 ms)
19:22:16
✓ should properly clean up peers on stop (3 ms)
19:22:16 trusted peers
19:22:16
✓ should not prune trusted peers (103 ms)
19:22:16
✓ should prune untrusted peers and not trusted peers (104 ms)
19:22:16
✓ should not disconnect trusted peers with low scores (104 ms)
19:22:16
✓ should not remove trusted peers from the cache during pruning (422 ms)
19:22:16
✓ should not remove trusted peers from the cache even when all peers are trusted (439 ms)
19:22:16
✓ should return false from isTrustedPeer when trusted peers are not initialized (2 ms)
19:22:16
✓ should not disconnect trusted peers when max peer count is reached (108 ms)
19:22:16 private peers
19:22:16
✓ should not prune private peers with low scores (103 ms)
19:22:16
✓ should not remove private peers from the cache during pruning (400 ms)
19:22:16
✓ should return false from isPrivatePeer when private peers are not initialized (2 ms)
19:22:16
✓ should initialize private peers from config (8 ms)
19:22:16
✓ should handle a peer being both trusted and private (102 ms)
19:22:16 goodbye metrics
19:22:16
✓ should record metrics when receiving goodbye messages (2 ms)
19:22:16
✓ should record metrics when sending goodbye messages (3 ms)
19:22:16
19:22:16
Test Suites: 1 passed, 1 total
19:22:16
Tests: 30 passed, 30 total
19:22:16
Snapshots: 0 total
19:22:16
Time: 5.062 s
19:22:16
Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i
.
19:22:16
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?