Parent Log: http://ci.aztec-labs.com/f58a71454a9abef7 Command: 68e9475192d7aeac: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/f495236d35f9bb0d1086b7ec79256c2c2b7c98b8 Env: REF_NAME=gh-readonly-queue/staging/pr-15201-f0619dd82429a5973f3e1da8d7eb0877264908e3 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Sat Jun 21 13:20:07 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15201_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_staging 13:20:07 +++ id -u 13:20:07 +++ id -g 13:20:07 ++ 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'\''' 13:20:07 + cid=b3aef47f9dfe0736c76f9bba9fb97431d3fd6f9319fca6e44851ca2039831ec0 13:20:07 + set +x 13:20:11 [13:20:11.977] WARN: test Trusted peers not initialized, returning false 13:20:11 [13:20:11.982] WARN: test Private peers not initialized, returning false 13:20:11 [13:20:11.982] WARN: test Trusted peers not initialized, returning false 13:20:11 [13:20:11.983] WARN: test Private peers not initialized, returning false 13:20:12 [13:20:12.054] WARN: test Trusted peers not initialized, returning false 13:20:12 [13:20:12.055] WARN: test Private peers not initialized, returning false 13:20:12 [13:20:12.055] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 13:20:12 [13:20:12.294] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:20:12 [13:20:12.396] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:20:12 [13:20:12.619] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:20:12 [13:20:12.720] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:20:12 [13:20:12.834] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:20:12 [13:20:12.935] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 13:20:13 [13:20:13.083] WARN: test Trusted peers not initialized, returning false 13:20:13 [13:20:13.083] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.084] WARN: test Trusted peers not initialized, returning false 13:20:13 [13:20:13.084] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.084] WARN: test Trusted peers not initialized, returning false 13:20:13 [13:20:13.084] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.198] WARN: test Trusted peers not initialized, returning false 13:20:13 [13:20:13.198] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.198] WARN: test Trusted peers not initialized, returning false 13:20:13 [13:20:13.199] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.199] WARN: test Trusted peers not initialized, returning false 13:20:13 [13:20:13.199] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.200] WARN: test Trusted peers not initialized, returning false 13:20:13 [13:20:13.200] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.200] WARN: test Trusted peers not initialized, returning false 13:20:13 [13:20:13.200] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.308] WARN: test Trusted peers not initialized, returning false 13:20:13 [13:20:13.308] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.528] WARN: test Private peers not initialized, returning false 13:20:13 [13:20:13.636] WARN: test Private peers not initialized, returning false 13:20:14 [13:20:14.365] WARN: test Private peers not initialized, returning false 13:20:14 [13:20:14.366] WARN: test Private peers not initialized, returning false 13:20:15 [13:20:15.005] WARN: test Trusted peers not initialized, returning false 13:20:15 [13:20:15.017] WARN: test Private peers not initialized, returning false 13:20:15 [13:20:15.018] WARN: test Private peers not initialized, returning false 13:20:15 [13:20:15.018] WARN: test Private peers not initialized, returning false 13:20:15 [13:20:15.824] WARN: test Private peers not initialized, returning false 13:20:15 [13:20:15.945] WARN: test Trusted peers not initialized, returning false 13:20:15 [13:20:15.945] WARN: test Private peers not initialized, returning false 13:20:15 PASS src/services/peer-manager/peer_manager.test.ts (6.895 s) 13:20:15 PeerManager 13:20:15 peer management 13:20:15 should return connected peers (46 ms) 13:20:15 should return peers in dial queue (5 ms) 13:20:15 should penalize peers (4 ms) 13:20:15 should handle heartbeat (8 ms) 13:20:15 should send goodbye to peers on shutdown (7 ms) 13:20:15 peer timeout functionality 13:20:15 should attempt to dial a discovered peer (60 ms) 13:20:15 should report peer count metric (104 ms) 13:20:15 should retry failed dials up to MAX_DIAL_ATTEMPTS (349 ms) 13:20:15 should timeout a peer after max dial attempts and ignore it for the timeout period (220 ms) 13:20:15 should cleanup expired timeouts during heartbeat (214 ms) 13:20:15 should include timed out peers in getPeers when includePending is true (14 ms) 13:20:15 should handle multiple peer discoveries and timeouts (121 ms) 13:20:15 should disconnect from unhealthy peers during heartbeat (109 ms) 13:20:15 should disconnect from low scoring peers above the max peer limit during heartbeat (117 ms) 13:20:15 should disconnect from duplicate peers during heartbeat (109 ms) 13:20:15 should properly clean up peers on stop (7 ms) 13:20:15 trusted peers 13:20:15 should not prune trusted peers (103 ms) 13:20:15 should prune untrusted peers and not trusted peers (106 ms) 13:20:15 should not disconnect trusted peers with low scores (107 ms) 13:20:15 should not remove trusted peers from the cache during pruning (628 ms) 13:20:15 should not remove trusted peers from the cache even when all peers are trusted (635 ms) 13:20:15 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 13:20:15 should not disconnect trusted peers when max peer count is reached (115 ms) 13:20:15 private peers 13:20:15 should not prune private peers with low scores (106 ms) 13:20:15 should not remove private peers from the cache during pruning (593 ms) 13:20:15 should return false from isPrivatePeer when private peers are not initialized (3 ms) 13:20:15 should initialize private peers from config (10 ms) 13:20:15 should handle a peer being both trusted and private (103 ms) 13:20:15 goodbye metrics 13:20:15 should record metrics when receiving goodbye messages (3 ms) 13:20:15 should record metrics when sending goodbye messages (4 ms) 13:20:15 13:20:15 Test Suites: 1 passed, 1 total 13:20:15 Tests: 30 passed, 30 total 13:20:15 Snapshots: 0 total 13:20:15 Time: 7.006 s 13:20:15 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 13:20:15 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?