Parent Log: http://ci.aztec-labs.com/e457b7f02c60e94f Command: 4f32fa69539b8ea0: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/ad85cda24c2f9b5b4b17d4921f8597b71949bb6c Env: REF_NAME=gh-readonly-queue/next/pr-15223-87c4b689268afecc86ab007c3587e45110daa43d CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 19:26:02 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15223_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 19:26:02 +++ id -u 19:26:02 +++ id -g 19:26:02 ++ 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'\''' 19:26:03 + cid=4c7a6547fcdd1fc399751fba394004b74f15490c679311025bcbb212bd6af8bf 19:26:03 + set +x 19:26:07 [19:26:07.256] WARN: test Trusted peers not initialized, returning false 19:26:07 [19:26:07.261] WARN: test Private peers not initialized, returning false 19:26:07 [19:26:07.262] WARN: test Trusted peers not initialized, returning false 19:26:07 [19:26:07.263] WARN: test Private peers not initialized, returning false 19:26:07 [19:26:07.346] WARN: test Trusted peers not initialized, returning false 19:26:07 [19:26:07.347] WARN: test Private peers not initialized, returning false 19:26:07 [19:26:07.348] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 19:26:07 [19:26:07.590] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:26:07 [19:26:07.693] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:26:07 [19:26:07.912] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:26:08 [19:26:08.015] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:26:08 [19:26:08.138] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:26:08 [19:26:08.241] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:26:08 [19:26:08.384] WARN: test Trusted peers not initialized, returning false 19:26:08 [19:26:08.385] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.385] WARN: test Trusted peers not initialized, returning false 19:26:08 [19:26:08.385] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.386] WARN: test Trusted peers not initialized, returning false 19:26:08 [19:26:08.386] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.498] WARN: test Trusted peers not initialized, returning false 19:26:08 [19:26:08.498] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.498] WARN: test Trusted peers not initialized, returning false 19:26:08 [19:26:08.498] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.499] WARN: test Trusted peers not initialized, returning false 19:26:08 [19:26:08.499] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.499] WARN: test Trusted peers not initialized, returning false 19:26:08 [19:26:08.500] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.500] WARN: test Trusted peers not initialized, returning false 19:26:08 [19:26:08.500] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.618] WARN: test Trusted peers not initialized, returning false 19:26:08 [19:26:08.618] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.836] WARN: test Private peers not initialized, returning false 19:26:08 [19:26:08.942] WARN: test Private peers not initialized, returning false 19:26:09 [19:26:09.684] WARN: test Private peers not initialized, returning false 19:26:09 [19:26:09.685] WARN: test Private peers not initialized, returning false 19:26:10 [19:26:10.349] WARN: test Trusted peers not initialized, returning false 19:26:10 [19:26:10.360] WARN: test Private peers not initialized, returning false 19:26:10 [19:26:10.361] WARN: test Private peers not initialized, returning false 19:26:10 [19:26:10.361] WARN: test Private peers not initialized, returning false 19:26:11 [19:26:11.195] WARN: test Private peers not initialized, returning false 19:26:11 [19:26:11.317] WARN: test Trusted peers not initialized, returning false 19:26:11 [19:26:11.317] WARN: test Private peers not initialized, returning false 19:26:11 PASS src/services/peer-manager/peer_manager.test.ts (7.079 s) 19:26:11 PeerManager 19:26:11 peer management 19:26:11 should return connected peers (49 ms) 19:26:11 should return peers in dial queue (6 ms) 19:26:11 should penalize peers (4 ms) 19:26:11 should handle heartbeat (10 ms) 19:26:11 should send goodbye to peers on shutdown (8 ms) 19:26:11 peer timeout functionality 19:26:11 should attempt to dial a discovered peer (71 ms) 19:26:11 should report peer count metric (109 ms) 19:26:11 should retry failed dials up to MAX_DIAL_ATTEMPTS (344 ms) 19:26:11 should timeout a peer after max dial attempts and ignore it for the timeout period (228 ms) 19:26:11 should cleanup expired timeouts during heartbeat (220 ms) 19:26:11 should include timed out peers in getPeers when includePending is true (12 ms) 19:26:11 should handle multiple peer discoveries and timeouts (118 ms) 19:26:11 should disconnect from unhealthy peers during heartbeat (112 ms) 19:26:11 should disconnect from low scoring peers above the max peer limit during heartbeat (118 ms) 19:26:11 should disconnect from duplicate peers during heartbeat (113 ms) 19:26:11 should properly clean up peers on stop (6 ms) 19:26:11 trusted peers 19:26:11 should not prune trusted peers (103 ms) 19:26:11 should prune untrusted peers and not trusted peers (107 ms) 19:26:11 should not disconnect trusted peers with low scores (104 ms) 19:26:11 should not remove trusted peers from the cache during pruning (643 ms) 19:26:11 should not remove trusted peers from the cache even when all peers are trusted (659 ms) 19:26:11 should return false from isTrustedPeer when trusted peers are not initialized (4 ms) 19:26:11 should not disconnect trusted peers when max peer count is reached (113 ms) 19:26:11 private peers 19:26:11 should not prune private peers with low scores (105 ms) 19:26:11 should not remove private peers from the cache during pruning (624 ms) 19:26:11 should return false from isPrivatePeer when private peers are not initialized (2 ms) 19:26:11 should initialize private peers from config (10 ms) 19:26:11 should handle a peer being both trusted and private (103 ms) 19:26:11 goodbye metrics 19:26:11 should record metrics when receiving goodbye messages (4 ms) 19:26:11 should record metrics when sending goodbye messages (4 ms) 19:26:11 19:26:11 Test Suites: 1 passed, 1 total 19:26:11 Tests: 30 passed, 30 total 19:26:11 Snapshots: 0 total 19:26:11 Time: 7.178 s 19:26:11 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 19:26:11 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?