Parent Log: http://ci.aztec-labs.com/5487e2f7c310d09c Command: 96b28dd4df3ddef6: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/2469b5f1633350f6be15733c04242af1cdc98227 Env: REF_NAME=gh-readonly-queue/next/pr-15042-ee3655e025191bc85c5b3d3122eeedb44e38ffb2 CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Mon Jun 16 19:46:24 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15042_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:46:24 +++ id -u 19:46:24 +++ id -g 19:46:24 ++ 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:46:24 + cid=8bdff40919cfd88faad7140404f8f757972169eef5563dc7dd2eaea0d45faf0b 19:46:24 + set +x 19:46:27 [19:46:27.049] WARN: test Trusted peers not initialized, returning false 19:46:27 [19:46:27.053] WARN: test Private peers not initialized, returning false 19:46:27 [19:46:27.054] WARN: test Trusted peers not initialized, returning false 19:46:27 [19:46:27.054] WARN: test Private peers not initialized, returning false 19:46:27 [19:46:27.116] WARN: test Trusted peers not initialized, returning false 19:46:27 [19:46:27.117] WARN: test Private peers not initialized, returning false 19:46:27 [19:46:27.118] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 19:46:27 [19:46:27.344] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:46:27 [19:46:27.444] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:46:27 [19:46:27.657] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:46:27 [19:46:27.757] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:46:27 [19:46:27.870] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:46:27 [19:46:27.971] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:46:28 [19:46:28.102] WARN: test Trusted peers not initialized, returning false 19:46:28 [19:46:28.102] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.102] WARN: test Trusted peers not initialized, returning false 19:46:28 [19:46:28.102] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.102] WARN: test Trusted peers not initialized, returning false 19:46:28 [19:46:28.103] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.212] WARN: test Trusted peers not initialized, returning false 19:46:28 [19:46:28.212] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.212] WARN: test Trusted peers not initialized, returning false 19:46:28 [19:46:28.212] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.212] WARN: test Trusted peers not initialized, returning false 19:46:28 [19:46:28.213] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.213] WARN: test Trusted peers not initialized, returning false 19:46:28 [19:46:28.213] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.213] WARN: test Trusted peers not initialized, returning false 19:46:28 [19:46:28.214] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.318] WARN: test Trusted peers not initialized, returning false 19:46:28 [19:46:28.318] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.529] WARN: test Private peers not initialized, returning false 19:46:28 [19:46:28.633] WARN: test Private peers not initialized, returning false 19:46:29 [19:46:29.176] WARN: test Private peers not initialized, returning false 19:46:29 [19:46:29.176] WARN: test Private peers not initialized, returning false 19:46:29 [19:46:29.641] WARN: test Trusted peers not initialized, returning false 19:46:29 [19:46:29.648] WARN: test Private peers not initialized, returning false 19:46:29 [19:46:29.649] WARN: test Private peers not initialized, returning false 19:46:29 [19:46:29.649] WARN: test Private peers not initialized, returning false 19:46:30 [19:46:30.278] WARN: test Private peers not initialized, returning false 19:46:30 [19:46:30.392] WARN: test Trusted peers not initialized, returning false 19:46:30 [19:46:30.393] WARN: test Private peers not initialized, returning false 19:46:30 PASS src/services/peer-manager/peer_manager.test.ts (5.314 s) 19:46:30 PeerManager 19:46:30 peer management 19:46:30 should return connected peers (35 ms) 19:46:30 should return peers in dial queue (4 ms) 19:46:30 should penalize peers (3 ms) 19:46:30 should handle heartbeat (7 ms) 19:46:30 should send goodbye to peers on shutdown (6 ms) 19:46:30 peer timeout functionality 19:46:30 should attempt to dial a discovered peer (52 ms) 19:46:30 should report peer count metric (105 ms) 19:46:30 should retry failed dials up to MAX_DIAL_ATTEMPTS (328 ms) 19:46:30 should timeout a peer after max dial attempts and ignore it for the timeout period (216 ms) 19:46:30 should cleanup expired timeouts during heartbeat (211 ms) 19:46:30 should include timed out peers in getPeers when includePending is true (8 ms) 19:46:30 should handle multiple peer discoveries and timeouts (113 ms) 19:46:30 should disconnect from unhealthy peers during heartbeat (108 ms) 19:46:30 should disconnect from low scoring peers above the max peer limit during heartbeat (110 ms) 19:46:30 should disconnect from duplicate peers during heartbeat (102 ms) 19:46:30 should properly clean up peers on stop (4 ms) 19:46:30 trusted peers 19:46:30 should not prune trusted peers (103 ms) 19:46:30 should prune untrusted peers and not trusted peers (103 ms) 19:46:30 should not disconnect trusted peers with low scores (104 ms) 19:46:30 should not remove trusted peers from the cache during pruning (443 ms) 19:46:30 should not remove trusted peers from the cache even when all peers are trusted (462 ms) 19:46:30 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 19:46:30 should not disconnect trusted peers when max peer count is reached (108 ms) 19:46:30 private peers 19:46:30 should not prune private peers with low scores (104 ms) 19:46:30 should not remove private peers from the cache during pruning (422 ms) 19:46:30 should return false from isPrivatePeer when private peers are not initialized (2 ms) 19:46:30 should initialize private peers from config (8 ms) 19:46:30 should handle a peer being both trusted and private (101 ms) 19:46:30 goodbye metrics 19:46:30 should record metrics when receiving goodbye messages (2 ms) 19:46:30 should record metrics when sending goodbye messages (2 ms) 19:46:30 19:46:30 Test Suites: 1 passed, 1 total 19:46:30 Tests: 30 passed, 30 total 19:46:30 Snapshots: 0 total 19:46:30 Time: 5.4 s 19:46:30 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 19:46:30 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?