Parent Log: http://ci.aztec-labs.com/e80db4f962749b47 Command: bd36d210f0eb503c: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/314d7622c6bacc8333ae49fe9583967cab78349b Env: REF_NAME=gh-readonly-queue/next/pr-15000-c51485c507bcf668c6e55129eb2c1794af4a0732 CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Fri Jun 13 11:36:32 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15000_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 11:36:32 +++ id -u 11:36:32 +++ id -g 11:36:32 ++ 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'\''' 11:36:32 + cid=e208cf2456434466a9df151b785c0d318527bd69d5dc3bbaddfee1993cb0fb74 11:36:32 + set +x 11:36:35 [11:36:34.999] WARN: test Trusted peers not initialized, returning false 11:36:35 [11:36:35.003] WARN: test Private peers not initialized, returning false 11:36:35 [11:36:35.004] WARN: test Trusted peers not initialized, returning false 11:36:35 [11:36:35.005] WARN: test Private peers not initialized, returning false 11:36:35 [11:36:35.064] WARN: test Trusted peers not initialized, returning false 11:36:35 [11:36:35.065] WARN: test Private peers not initialized, returning false 11:36:35 [11:36:35.065] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 11:36:35 [11:36:35.289] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:36:35 [11:36:35.390] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:36:35 [11:36:35.603] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:36:35 [11:36:35.703] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:36:35 [11:36:35.815] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:36:35 [11:36:35.916] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 11:36:36 [11:36:36.045] WARN: test Trusted peers not initialized, returning false 11:36:36 [11:36:36.046] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.046] WARN: test Trusted peers not initialized, returning false 11:36:36 [11:36:36.046] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.046] WARN: test Trusted peers not initialized, returning false 11:36:36 [11:36:36.046] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.155] WARN: test Trusted peers not initialized, returning false 11:36:36 [11:36:36.155] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.155] WARN: test Trusted peers not initialized, returning false 11:36:36 [11:36:36.156] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.156] WARN: test Trusted peers not initialized, returning false 11:36:36 [11:36:36.156] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.156] WARN: test Trusted peers not initialized, returning false 11:36:36 [11:36:36.156] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.156] WARN: test Trusted peers not initialized, returning false 11:36:36 [11:36:36.157] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.260] WARN: test Trusted peers not initialized, returning false 11:36:36 [11:36:36.261] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.471] WARN: test Private peers not initialized, returning false 11:36:36 [11:36:36.575] WARN: test Private peers not initialized, returning false 11:36:37 [11:36:37.095] WARN: test Private peers not initialized, returning false 11:36:37 [11:36:37.095] WARN: test Private peers not initialized, returning false 11:36:37 [11:36:37.540] WARN: test Trusted peers not initialized, returning false 11:36:37 [11:36:37.548] WARN: test Private peers not initialized, returning false 11:36:37 [11:36:37.548] WARN: test Private peers not initialized, returning false 11:36:37 [11:36:37.548] WARN: test Private peers not initialized, returning false 11:36:38 [11:36:38.156] WARN: test Private peers not initialized, returning false 11:36:38 [11:36:38.271] WARN: test Trusted peers not initialized, returning false 11:36:38 [11:36:38.271] WARN: test Private peers not initialized, returning false 11:36:38 PASS src/services/peer-manager/peer_manager.test.ts 11:36:38 PeerManager 11:36:38 peer management 11:36:38 should return connected peers (34 ms) 11:36:38 should return peers in dial queue (4 ms) 11:36:38 should penalize peers (5 ms) 11:36:38 should handle heartbeat (8 ms) 11:36:38 should send goodbye to peers on shutdown (6 ms) 11:36:38 peer timeout functionality 11:36:38 should attempt to dial a discovered peer (50 ms) 11:36:38 should report peer count metric (105 ms) 11:36:38 should retry failed dials up to MAX_DIAL_ATTEMPTS (326 ms) 11:36:38 should timeout a peer after max dial attempts and ignore it for the timeout period (215 ms) 11:36:38 should cleanup expired timeouts during heartbeat (211 ms) 11:36:38 should include timed out peers in getPeers when includePending is true (8 ms) 11:36:38 should handle multiple peer discoveries and timeouts (113 ms) 11:36:38 should disconnect from unhealthy peers during heartbeat (107 ms) 11:36:38 should disconnect from low scoring peers above the max peer limit during heartbeat (110 ms) 11:36:38 should disconnect from duplicate peers during heartbeat (103 ms) 11:36:38 should properly clean up peers on stop (4 ms) 11:36:38 trusted peers 11:36:38 should not prune trusted peers (102 ms) 11:36:38 should prune untrusted peers and not trusted peers (103 ms) 11:36:38 should not disconnect trusted peers with low scores (104 ms) 11:36:38 should not remove trusted peers from the cache during pruning (420 ms) 11:36:38 should not remove trusted peers from the cache even when all peers are trusted (443 ms) 11:36:38 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 11:36:38 should not disconnect trusted peers when max peer count is reached (108 ms) 11:36:38 private peers 11:36:38 should not prune private peers with low scores (104 ms) 11:36:38 should not remove private peers from the cache during pruning (401 ms) 11:36:38 should return false from isPrivatePeer when private peers are not initialized (2 ms) 11:36:38 should initialize private peers from config (7 ms) 11:36:38 should handle a peer being both trusted and private (102 ms) 11:36:38 goodbye metrics 11:36:38 should record metrics when receiving goodbye messages (2 ms) 11:36:38 should record metrics when sending goodbye messages (3 ms) 11:36:38 11:36:38 Test Suites: 1 passed, 1 total 11:36:38 Tests: 30 passed, 30 total 11:36:38 Snapshots: 0 total 11:36:38 Time: 4.991 s 11:36:38 Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i. 11:36:38 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?