Parent Log: http://ci.aztec-labs.com/2e2beca9be3205ea 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_x4-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:41 + cid=75224665e2b42094ce9ef62921e35f8621a481510c7ed011e961f25580a778b4 14:18:41 + set +x 14:18:46 [14:18:46.134] WARN: test Trusted peers not initialized, returning false 14:18:46 [14:18:46.140] WARN: test Private peers not initialized, returning false 14:18:46 [14:18:46.141] WARN: test Trusted peers not initialized, returning false 14:18:46 [14:18:46.141] WARN: test Private peers not initialized, returning false 14:18:46 [14:18:46.266] WARN: test Trusted peers not initialized, returning false 14:18:46 [14:18:46.267] WARN: test Private peers not initialized, returning false 14:18:46 [14:18:46.268] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 14:18:46 [14:18:46.507] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:46 [14:18:46.609] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:46 [14:18:46.824] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:46 [14:18:46.925] 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.143] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 14:18:47 [14:18:47.291] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.292] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.292] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.292] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.292] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.292] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.406] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.406] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.407] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.407] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.407] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.407] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.408] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.408] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.408] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.408] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.514] WARN: test Trusted peers not initialized, returning false 14:18:47 [14:18:47.515] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.731] WARN: test Private peers not initialized, returning false 14:18:47 [14:18:47.839] WARN: test Private peers not initialized, returning false 14:18:48 [14:18:48.599] WARN: test Private peers not initialized, returning false 14:18:48 [14:18:48.599] WARN: test Private peers not initialized, returning false 14:18:49 [14:18:49.343] WARN: test Trusted peers not initialized, returning false 14:18:49 [14:18:49.353] WARN: test Private peers not initialized, returning false 14:18:49 [14:18:49.354] WARN: test Private peers not initialized, returning false 14:18:49 [14:18:49.354] WARN: test Private peers not initialized, returning false 14:18:50 [14:18:50.110] WARN: test Private peers not initialized, returning false 14:18:50 [14:18:50.231] WARN: test Trusted peers not initialized, returning false 14:18:50 [14:18:50.231] WARN: test Private peers not initialized, returning false 14:18:50 PASS src/services/peer-manager/peer_manager.test.ts (7.29 s) 14:18:50 PeerManager 14:18:50 peer management 14:18:50 should return connected peers (71 ms) 14:18:50 should return peers in dial queue (7 ms) 14:18:50 should penalize peers (4 ms) 14:18:50 should handle heartbeat (12 ms) 14:18:50 should send goodbye to peers on shutdown (16 ms) 14:18:50 peer timeout functionality 14:18:50 should attempt to dial a discovered peer (97 ms) 14:18:50 should report peer count metric (112 ms) 14:18:50 should retry failed dials up to MAX_DIAL_ATTEMPTS (339 ms) 14:18:50 should timeout a peer after max dial attempts and ignore it for the timeout period (219 ms) 14:18:50 should cleanup expired timeouts during heartbeat (217 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 (124 ms) 14:18:50 should disconnect from unhealthy peers during heartbeat (109 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 (105 ms) 14:18:50 should properly clean up peers on stop (5 ms) 14:18:50 trusted peers 14:18:50 should not prune trusted peers (103 ms) 14:18:50 should prune untrusted peers and not trusted peers (106 ms) 14:18:50 should not disconnect trusted peers with low scores (106 ms) 14:18:50 should not remove trusted peers from the cache during pruning (659 ms) 14:18:50 should not remove trusted peers from the cache even when all peers are trusted (740 ms) 14:18:50 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 14:18:50 should not disconnect trusted peers when max peer count is reached (113 ms) 14:18:50 private peers 14:18:50 should not prune private peers with low scores (106 ms) 14:18:50 should not remove private peers from the cache during pruning (543 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 (10 ms) 14:18:50 should handle a peer being both trusted and private (103 ms) 14:18:50 goodbye metrics 14:18:50 should record metrics when receiving goodbye messages (3 ms) 14:18:50 should record metrics when sending goodbye messages (4 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.391 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?