Parent Log:
http://ci.aztec-labs.com/7d50fe3fd123434b
Command: 9e675ed54321cc5a: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/96a426245731b3f48fcb6dd5e2a683c858706602
Env: REF_NAME=gh-readonly-queue/next/pr-15083-5867520ed258adecfee692b3694d693b2c7964ca CURRENT_VERSION=0.87.6 CI_FULL=1
Date: Mon Jun 16 21:53:40 UTC 2025
System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15083_amd64_x1-full
Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s
History:
http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next
21:53:40 +++ id -u
21:53:40 +++ id -g
21:53:40 ++ 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'\'''
21:53:41 + cid=cc78fa7a5a57a7a1dfbc44103c79c64b9f15e618c83212b1cdd84fbfd402da86
21:53:41 + set +x
21:53:45 [21:53:45.347]
WARN:
test Trusted peers not initialized, returning false
21:53:45 [21:53:45.352]
WARN:
test Private peers not initialized, returning false
21:53:45 [21:53:45.353]
WARN:
test Trusted peers not initialized, returning false
21:53:45 [21:53:45.353]
WARN:
test Private peers not initialized, returning false
21:53:45 [21:53:45.446]
WARN:
test Trusted peers not initialized, returning false
21:53:45 [21:53:45.447]
WARN:
test Private peers not initialized, returning false
21:53:45 [21:53:45.447]
INFO:
test Connected to 1 peers
{"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0}
21:53:45 [21:53:45.687]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
21:53:45 [21:53:45.789]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
21:53:46 [21:53:46.002]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
21:53:46 [21:53:46.104]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
21:53:46 [21:53:46.220]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
21:53:46 [21:53:46.321]
INFO:
test Connected to 0 peers
{"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0}
21:53:46 [21:53:46.467]
WARN:
test Trusted peers not initialized, returning false
21:53:46 [21:53:46.468]
WARN:
test Private peers not initialized, returning false
21:53:46 [21:53:46.468]
WARN:
test Trusted peers not initialized, returning false
21:53:46 [21:53:46.468]
WARN:
test Private peers not initialized, returning false
21:53:46 [21:53:46.468]
WARN:
test Trusted peers not initialized, returning false
21:53:46 [21:53:46.469]
WARN:
test Private peers not initialized, returning false
21:53:46 [21:53:46.586]
WARN:
test Trusted peers not initialized, returning false
21:53:46 [21:53:46.586]
WARN:
test Private peers not initialized, returning false
21:53:46 [21:53:46.587]
WARN:
test Trusted peers not initialized, returning false
21:53:46 [21:53:46.587]
WARN:
test Private peers not initialized, returning false
21:53:46 [21:53:46.587]
WARN:
test Trusted peers not initialized, returning false
21:53:46 [21:53:46.588]
WARN:
test Private peers not initialized, returning false
21:53:46 [21:53:46.588]
WARN:
test Trusted peers not initialized, returning false
21:53:46 [21:53:46.588]
WARN:
test Private peers not initialized, returning false
21:53:46 [21:53:46.589]
WARN:
test Trusted peers not initialized, returning false
21:53:46 [21:53:46.589]
WARN:
test Private peers not initialized, returning false
21:53:46 [21:53:46.694]
WARN:
test Trusted peers not initialized, returning false
21:53:46 [21:53:46.694]
WARN:
test Private peers not initialized, returning false
21:53:46 [21:53:46.912]
WARN:
test Private peers not initialized, returning false
21:53:47 [21:53:47.020]
WARN:
test Private peers not initialized, returning false
21:53:47 [21:53:47.668]
WARN:
test Private peers not initialized, returning false
21:53:47 [21:53:47.668]
WARN:
test Private peers not initialized, returning false
21:53:48 [21:53:48.251]
WARN:
test Trusted peers not initialized, returning false
21:53:48 [21:53:48.264]
WARN:
test Private peers not initialized, returning false
21:53:48 [21:53:48.265]
WARN:
test Private peers not initialized, returning false
21:53:48 [21:53:48.266]
WARN:
test Private peers not initialized, returning false
21:53:49 [21:53:49.034]
WARN:
test Private peers not initialized, returning false
21:53:49 [21:53:49.153]
WARN:
test Trusted peers not initialized, returning false
21:53:49 [21:53:49.157]
WARN:
test Private peers not initialized, returning false
21:53:49
PASS src/services/peer-manager/peer_manager.test.ts (
6.815 s)
21:53:49 PeerManager
21:53:49 peer management
21:53:49
✓ should return connected peers (49 ms)
21:53:49
✓ should return peers in dial queue (6 ms)
21:53:49
✓ should penalize peers (4 ms)
21:53:49
✓ should handle heartbeat (10 ms)
21:53:49
✓ should send goodbye to peers on shutdown (9 ms)
21:53:49 peer timeout functionality
21:53:49
✓ should attempt to dial a discovered peer (78 ms)
21:53:49
✓ should report peer count metric (107 ms)
21:53:49
✓ should retry failed dials up to MAX_DIAL_ATTEMPTS (341 ms)
21:53:49
✓ should timeout a peer after max dial attempts and ignore it for the timeout period (218 ms)
21:53:49
✓ should cleanup expired timeouts during heartbeat (216 ms)
21:53:49
✓ should include timed out peers in getPeers when includePending is true (14 ms)
21:53:49
✓ should handle multiple peer discoveries and timeouts (120 ms)
21:53:49
✓ should disconnect from unhealthy peers during heartbeat (111 ms)
21:53:49
✓ should disconnect from low scoring peers above the max peer limit during heartbeat (119 ms)
21:53:49
✓ should disconnect from duplicate peers during heartbeat (104 ms)
21:53:49
✓ should properly clean up peers on stop (7 ms)
21:53:49 trusted peers
21:53:49
✓ should not prune trusted peers (103 ms)
21:53:49
✓ should prune untrusted peers and not trusted peers (106 ms)
21:53:49
✓ should not disconnect trusted peers with low scores (107 ms)
21:53:49
✓ should not remove trusted peers from the cache during pruning (547 ms)
21:53:49
✓ should not remove trusted peers from the cache even when all peers are trusted (580 ms)
21:53:49
✓ should return false from isTrustedPeer when trusted peers are not initialized (2 ms)
21:53:49
✓ should not disconnect trusted peers when max peer count is reached (118 ms)
21:53:49 private peers
21:53:49
✓ should not prune private peers with low scores (105 ms)
21:53:49
✓ should not remove private peers from the cache during pruning (556 ms)
21:53:49
✓ should return false from isPrivatePeer when private peers are not initialized (3 ms)
21:53:49
✓ should initialize private peers from config (8 ms)
21:53:49
✓ should handle a peer being both trusted and private (103 ms)
21:53:49 goodbye metrics
21:53:49
✓ should record metrics when receiving goodbye messages (3 ms)
21:53:49
✓ should record metrics when sending goodbye messages (13 ms)
21:53:49
21:53:49
Test Suites: 1 passed, 1 total
21:53:49
Tests: 30 passed, 30 total
21:53:49
Snapshots: 0 total
21:53:49
Time: 6.926 s
21:53:49
Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts
.
21:53:49
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?