Parent Log: http://ci.aztec-labs.com/98af491b5c8c3c36 Command: d13c5cad0b739ddd: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/b80949775e5c27908a6055ad24592f7d98bdc45a Env: REF_NAME=gh-readonly-queue/next/pr-14816-fa159c5d52a45358479f951a547fed37f141a6ed CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Sat Jun 14 10:46:42 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-14816_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 10:46:42 +++ id -u 10:46:42 +++ id -g 10:46:42 ++ 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'\''' 10:46:42 + cid=8b5b5ff14e398aef0ab2428fae65c69d2c864ccc97a59fccbed3742c1a4c2dcd 10:46:42 + set +x 10:46:45 [10:46:45.345] WARN: test Trusted peers not initialized, returning false 10:46:45 [10:46:45.349] WARN: test Private peers not initialized, returning false 10:46:45 [10:46:45.350] WARN: test Trusted peers not initialized, returning false 10:46:45 [10:46:45.351] WARN: test Private peers not initialized, returning false 10:46:45 [10:46:45.424] WARN: test Trusted peers not initialized, returning false 10:46:45 [10:46:45.425] WARN: test Private peers not initialized, returning false 10:46:45 [10:46:45.425] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 10:46:45 [10:46:45.650] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:46:45 [10:46:45.751] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:46:45 [10:46:45.963] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:46:46 [10:46:46.064] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:46:46 [10:46:46.177] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:46:46 [10:46:46.278] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:46:46 [10:46:46.408] WARN: test Trusted peers not initialized, returning false 10:46:46 [10:46:46.408] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.408] WARN: test Trusted peers not initialized, returning false 10:46:46 [10:46:46.409] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.409] WARN: test Trusted peers not initialized, returning false 10:46:46 [10:46:46.409] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.516] WARN: test Trusted peers not initialized, returning false 10:46:46 [10:46:46.517] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.517] WARN: test Trusted peers not initialized, returning false 10:46:46 [10:46:46.517] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.517] WARN: test Trusted peers not initialized, returning false 10:46:46 [10:46:46.518] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.518] WARN: test Trusted peers not initialized, returning false 10:46:46 [10:46:46.518] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.518] WARN: test Trusted peers not initialized, returning false 10:46:46 [10:46:46.518] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.622] WARN: test Trusted peers not initialized, returning false 10:46:46 [10:46:46.623] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.832] WARN: test Private peers not initialized, returning false 10:46:46 [10:46:46.937] WARN: test Private peers not initialized, returning false 10:46:47 [10:46:47.460] WARN: test Private peers not initialized, returning false 10:46:47 [10:46:47.460] WARN: test Private peers not initialized, returning false 10:46:47 [10:46:47.907] WARN: test Trusted peers not initialized, returning false 10:46:47 [10:46:47.914] WARN: test Private peers not initialized, returning false 10:46:47 [10:46:47.914] WARN: test Private peers not initialized, returning false 10:46:47 [10:46:47.915] WARN: test Private peers not initialized, returning false 10:46:48 [10:46:48.520] WARN: test Private peers not initialized, returning false 10:46:48 [10:46:48.634] WARN: test Trusted peers not initialized, returning false 10:46:48 [10:46:48.635] WARN: test Private peers not initialized, returning false 10:46:48 PASS src/services/peer-manager/peer_manager.test.ts (5.078 s) 10:46:48 PeerManager 10:46:48 peer management 10:46:48 should return connected peers (37 ms) 10:46:48 should return peers in dial queue (4 ms) 10:46:48 should penalize peers (3 ms) 10:46:48 should handle heartbeat (9 ms) 10:46:48 should send goodbye to peers on shutdown (9 ms) 10:46:48 peer timeout functionality 10:46:48 should attempt to dial a discovered peer (58 ms) 10:46:48 should report peer count metric (104 ms) 10:46:48 should retry failed dials up to MAX_DIAL_ATTEMPTS (326 ms) 10:46:48 should timeout a peer after max dial attempts and ignore it for the timeout period (215 ms) 10:46:48 should cleanup expired timeouts during heartbeat (211 ms) 10:46:48 should include timed out peers in getPeers when includePending is true (8 ms) 10:46:48 should handle multiple peer discoveries and timeouts (113 ms) 10:46:48 should disconnect from unhealthy peers during heartbeat (106 ms) 10:46:48 should disconnect from low scoring peers above the max peer limit during heartbeat (110 ms) 10:46:48 should disconnect from duplicate peers during heartbeat (103 ms) 10:46:48 should properly clean up peers on stop (3 ms) 10:46:48 trusted peers 10:46:48 should not prune trusted peers (102 ms) 10:46:48 should prune untrusted peers and not trusted peers (104 ms) 10:46:48 should not disconnect trusted peers with low scores (103 ms) 10:46:48 should not remove trusted peers from the cache during pruning (424 ms) 10:46:48 should not remove trusted peers from the cache even when all peers are trusted (445 ms) 10:46:48 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 10:46:48 should not disconnect trusted peers when max peer count is reached (108 ms) 10:46:48 private peers 10:46:48 should not prune private peers with low scores (104 ms) 10:46:48 should not remove private peers from the cache during pruning (398 ms) 10:46:48 should return false from isPrivatePeer when private peers are not initialized (2 ms) 10:46:48 should initialize private peers from config (7 ms) 10:46:48 should handle a peer being both trusted and private (102 ms) 10:46:48 goodbye metrics 10:46:48 should record metrics when receiving goodbye messages (2 ms) 10:46:48 should record metrics when sending goodbye messages (3 ms) 10:46:48 10:46:48 Test Suites: 1 passed, 1 total 10:46:48 Tests: 30 passed, 30 total 10:46:48 Snapshots: 0 total 10:46:48 Time: 5.148 s 10:46:48 Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i. 10:46:48 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?