Parent Log: http://ci.aztec-labs.com/943200330be9ae5b Command: 61f8e44af0fc4001: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/e56baa7f24bac54baf9e2f22f6f33ae6fa8b8c0f Env: REF_NAME=gh-readonly-queue/next/pr-14891-76ca48a2187e3506bb464eae574e49476c2876ca CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Fri Jun 13 19:22:24 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14891_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 19:22:24 +++ id -u 19:22:24 +++ id -g 19:22:24 ++ 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:22:25 + cid=4adaf0e934eaa60616fd225105cb4340ad903080ac791185f5bc1bfce7d5e18c 19:22:25 + set +x 19:22:28 [19:22:28.913] WARN: test Trusted peers not initialized, returning false 19:22:28 [19:22:28.919] WARN: test Private peers not initialized, returning false 19:22:28 [19:22:28.920] WARN: test Trusted peers not initialized, returning false 19:22:28 [19:22:28.920] WARN: test Private peers not initialized, returning false 19:22:29 [19:22:29.010] WARN: test Trusted peers not initialized, returning false 19:22:29 [19:22:29.011] WARN: test Private peers not initialized, returning false 19:22:29 [19:22:29.011] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 19:22:29 [19:22:29.248] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:22:29 [19:22:29.351] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:22:29 [19:22:29.581] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:22:29 [19:22:29.683] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:22:29 [19:22:29.802] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:22:29 [19:22:29.903] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:22:30 [19:22:30.034] WARN: test Trusted peers not initialized, returning false 19:22:30 [19:22:30.035] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.035] WARN: test Trusted peers not initialized, returning false 19:22:30 [19:22:30.035] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.035] WARN: test Trusted peers not initialized, returning false 19:22:30 [19:22:30.035] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.150] WARN: test Trusted peers not initialized, returning false 19:22:30 [19:22:30.150] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.151] WARN: test Trusted peers not initialized, returning false 19:22:30 [19:22:30.151] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.152] WARN: test Trusted peers not initialized, returning false 19:22:30 [19:22:30.153] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.153] WARN: test Trusted peers not initialized, returning false 19:22:30 [19:22:30.153] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.154] WARN: test Trusted peers not initialized, returning false 19:22:30 [19:22:30.154] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.277] WARN: test Trusted peers not initialized, returning false 19:22:30 [19:22:30.278] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.492] WARN: test Private peers not initialized, returning false 19:22:30 [19:22:30.599] WARN: test Private peers not initialized, returning false 19:22:31 [19:22:31.340] WARN: test Private peers not initialized, returning false 19:22:31 [19:22:31.342] WARN: test Private peers not initialized, returning false 19:22:32 [19:22:32.023] WARN: test Trusted peers not initialized, returning false 19:22:32 [19:22:32.032] WARN: test Private peers not initialized, returning false 19:22:32 [19:22:32.033] WARN: test Private peers not initialized, returning false 19:22:32 [19:22:32.033] WARN: test Private peers not initialized, returning false 19:22:32 [19:22:32.769] WARN: test Private peers not initialized, returning false 19:22:32 [19:22:32.890] WARN: test Trusted peers not initialized, returning false 19:22:32 [19:22:32.891] WARN: test Private peers not initialized, returning false 19:22:32 PASS src/services/peer-manager/peer_manager.test.ts (6.635 s) 19:22:32 PeerManager 19:22:32 peer management 19:22:32 should return connected peers (58 ms) 19:22:32 should return peers in dial queue (6 ms) 19:22:32 should penalize peers (4 ms) 19:22:32 should handle heartbeat (11 ms) 19:22:32 should send goodbye to peers on shutdown (8 ms) 19:22:32 peer timeout functionality 19:22:32 should attempt to dial a discovered peer (76 ms) 19:22:32 should report peer count metric (107 ms) 19:22:32 should retry failed dials up to MAX_DIAL_ATTEMPTS (343 ms) 19:22:32 should timeout a peer after max dial attempts and ignore it for the timeout period (232 ms) 19:22:32 should cleanup expired timeouts during heartbeat (216 ms) 19:22:32 should include timed out peers in getPeers when includePending is true (9 ms) 19:22:32 should handle multiple peer discoveries and timeouts (114 ms) 19:22:32 should disconnect from unhealthy peers during heartbeat (109 ms) 19:22:32 should disconnect from low scoring peers above the max peer limit during heartbeat (127 ms) 19:22:32 should disconnect from duplicate peers during heartbeat (111 ms) 19:22:32 should properly clean up peers on stop (4 ms) 19:22:32 trusted peers 19:22:32 should not prune trusted peers (103 ms) 19:22:32 should prune untrusted peers and not trusted peers (107 ms) 19:22:32 should not disconnect trusted peers with low scores (106 ms) 19:22:32 should not remove trusted peers from the cache during pruning (642 ms) 19:22:32 should not remove trusted peers from the cache even when all peers are trusted (676 ms) 19:22:32 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 19:22:32 should not disconnect trusted peers when max peer count is reached (111 ms) 19:22:32 private peers 19:22:32 should not prune private peers with low scores (103 ms) 19:22:32 should not remove private peers from the cache during pruning (526 ms) 19:22:32 should return false from isPrivatePeer when private peers are not initialized (4 ms) 19:22:32 should initialize private peers from config (10 ms) 19:22:32 should handle a peer being both trusted and private (104 ms) 19:22:32 goodbye metrics 19:22:32 should record metrics when receiving goodbye messages (4 ms) 19:22:32 should record metrics when sending goodbye messages (4 ms) 19:22:32 19:22:32 Test Suites: 1 passed, 1 total 19:22:32 Tests: 30 passed, 30 total 19:22:32 Snapshots: 0 total 19:22:32 Time: 6.726 s 19:22:32 Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i. 19:22:32 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?