Parent Log: http://ci.aztec-labs.com/2feadc10a0482910 Command: 7036b634d1ccdbba: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/b6c045c8e9bbe748f5441bd1e65a9beeb9c62e73 Env: REF_NAME=gh-readonly-queue/next/pr-15067-24972303091baff6f83c6389d7d1406c932357e9 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 14:18:41 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15067_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 14:18:41 +++ id -u 14:18:41 +++ id -g 14:18:41 ++ 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:18:42 + cid=5d03207a4c1474010869c50927c2a220c7dd09f3137b2b7291a7d14bb47dbf3a 14:18:42 + set +x 14:18:46 [14:18:46.379] WARN: test Trusted peers not initialized, returning false 14:18:46 [14:18:46.385] WARN: test Private peers not initialized, returning false 14:18:46 [14:18:46.386] WARN: test Trusted peers not initialized, returning false 14:18:46 [14:18:46.386] WARN: test Private peers not initialized, returning false 14:18:46 [14:18:46.482] WARN: test Trusted peers not initialized, returning false 14:18:46 [14:18:46.483] WARN: test Private peers not initialized, returning false 14:18:46 [14:18:46.483] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 14:18:46 [14:18:46.720] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:46 [14:18:46.822] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:47 [14:18:47.039] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:47 [14:18:47.141] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:47 [14:18:47.255] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:47 [14:18:47.358] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:47 [14:18:47.501] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.501] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.501] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.502] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.502] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.502] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.613] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.613] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.614] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.614] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.614] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.614] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.615] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.615] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.615] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.615] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.722] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.723] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.942] WARN: test Private peers not initialized, returning false 14:18:48 [14:18:48.050] WARN: test Private peers not initialized, returning false 14:18:48 [14:18:48.866] WARN: test Private peers not initialized, returning false 14:18:48 [14:18:48.867] WARN: test Private peers not initialized, returning false 14:18:49 [14:18:49.476] WARN: test Trusted peers not initialized, returning false 14:18:49 [14:18:49.483] WARN: test Private peers not initialized, returning false 14:18:49 [14:18:49.483] WARN: test Private peers not initialized, returning false 14:18:49 [14:18:49.484] WARN: test Private peers not initialized, returning false 14:18:50 [14:18:50.251] WARN: test Private peers not initialized, returning false 14:18:50 [14:18:50.383] WARN: test Trusted peers not initialized, returning false 14:18:50 [14:18:50.383] WARN: test Private peers not initialized, returning false 14:18:50 PASS src/services/peer-manager/peer_manager.test.ts (7.018 s) 14:18:50 PeerManager 14:18:50 peer management 14:18:50 should return connected peers (40 ms) 14:18:50 should return peers in dial queue (7 ms) 14:18:50 should penalize peers (5 ms) 14:18:50 should handle heartbeat (11 ms) 14:18:50 should send goodbye to peers on shutdown (7 ms) 14:18:50 peer timeout functionality 14:18:50 should attempt to dial a discovered peer (82 ms) 14:18:50 should report peer count metric (108 ms) 14:18:50 should retry failed dials up to MAX_DIAL_ATTEMPTS (338 ms) 14:18:50 should timeout a peer after max dial attempts and ignore it for the timeout period (220 ms) 14:18:50 should cleanup expired timeouts during heartbeat (216 ms) 14:18:50 should include timed out peers in getPeers when includePending is true (13 ms) 14:18:50 should handle multiple peer discoveries and timeouts (119 ms) 14:18:50 should disconnect from unhealthy peers during heartbeat (108 ms) 14:18:50 should disconnect from low scoring peers above the max peer limit during heartbeat (114 ms) 14:18:50 should disconnect from duplicate peers during heartbeat (107 ms) 14:18:50 should properly clean up peers on stop (6 ms) 14:18:50 trusted peers 14:18:50 should not prune trusted peers (104 ms) 14:18:50 should prune untrusted peers and not trusted peers (108 ms) 14:18:50 should not disconnect trusted peers with low scores (108 ms) 14:18:50 should not remove trusted peers from the cache during pruning (714 ms) 14:18:50 should not remove trusted peers from the cache even when all peers are trusted (606 ms) 14:18:50 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 14:18:50 should not disconnect trusted peers when max peer count is reached (109 ms) 14:18:50 private peers 14:18:50 should not prune private peers with low scores (104 ms) 14:18:50 should not remove private peers from the cache during pruning (557 ms) 14:18:50 should return false from isPrivatePeer when private peers are not initialized (3 ms) 14:18:50 should initialize private peers from config (18 ms) 14:18:50 should handle a peer being both trusted and private (104 ms) 14:18:50 goodbye metrics 14:18:50 should record metrics when receiving goodbye messages (6 ms) 14:18:50 should record metrics when sending goodbye messages (3 ms) 14:18:50 14:18:50 Test Suites: 1 passed, 1 total 14:18:50 Tests: 30 passed, 30 total 14:18:50 Snapshots: 0 total 14:18:50 Time: 7.127 s 14:18:50 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 14:18:50 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?