Parent Log: http://ci.aztec-labs.com/b60bf0257f00fe8c Command: 29957fbe93665d48: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/a9414cff28bd9ebfe35ca67f0ec0117d08f57e55 Env: REF_NAME=gh-readonly-queue/next/pr-15216-4608046e462faf9ff3fbee265ba34dbecb5d0b31 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 23 15:07:22 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15216_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 15:07:22 +++ id -u 15:07:22 +++ id -g 15:07:22 ++ 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'\''' 15:07:22 + cid=938f1f6750da8236c2a0bf90e86d927242c53a70a52caac0bcef3dcbe269b34b 15:07:22 + set +x 15:07:27 [15:07:27.028] WARN: test Trusted peers not initialized, returning false 15:07:27 [15:07:27.034] WARN: test Private peers not initialized, returning false 15:07:27 [15:07:27.035] WARN: test Trusted peers not initialized, returning false 15:07:27 [15:07:27.035] WARN: test Private peers not initialized, returning false 15:07:27 [15:07:27.131] WARN: test Trusted peers not initialized, returning false 15:07:27 [15:07:27.133] WARN: test Private peers not initialized, returning false 15:07:27 [15:07:27.135] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 15:07:27 [15:07:27.388] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:07:27 [15:07:27.490] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:07:27 [15:07:27.704] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:07:27 [15:07:27.806] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:07:27 [15:07:27.921] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:07:28 [15:07:28.022] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:07:28 [15:07:28.176] WARN: test Trusted peers not initialized, returning false 15:07:28 [15:07:28.177] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.177] WARN: test Trusted peers not initialized, returning false 15:07:28 [15:07:28.178] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.178] WARN: test Trusted peers not initialized, returning false 15:07:28 [15:07:28.178] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.287] WARN: test Trusted peers not initialized, returning false 15:07:28 [15:07:28.287] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.287] WARN: test Trusted peers not initialized, returning false 15:07:28 [15:07:28.287] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.288] WARN: test Trusted peers not initialized, returning false 15:07:28 [15:07:28.288] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.288] WARN: test Trusted peers not initialized, returning false 15:07:28 [15:07:28.288] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.288] WARN: test Trusted peers not initialized, returning false 15:07:28 [15:07:28.288] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.394] WARN: test Trusted peers not initialized, returning false 15:07:28 [15:07:28.395] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.609] WARN: test Private peers not initialized, returning false 15:07:28 [15:07:28.716] WARN: test Private peers not initialized, returning false 15:07:29 [15:07:29.445] WARN: test Private peers not initialized, returning false 15:07:29 [15:07:29.446] WARN: test Private peers not initialized, returning false 15:07:30 [15:07:30.136] WARN: test Trusted peers not initialized, returning false 15:07:30 [15:07:30.147] WARN: test Private peers not initialized, returning false 15:07:30 [15:07:30.147] WARN: test Private peers not initialized, returning false 15:07:30 [15:07:30.148] WARN: test Private peers not initialized, returning false 15:07:30 [15:07:30.891] WARN: test Private peers not initialized, returning false 15:07:31 [15:07:31.007] WARN: test Trusted peers not initialized, returning false 15:07:31 [15:07:31.008] WARN: test Private peers not initialized, returning false 15:07:31 PASS src/services/peer-manager/peer_manager.test.ts (7.046 s) 15:07:31 PeerManager 15:07:31 peer management 15:07:31 should return connected peers (44 ms) 15:07:31 should return peers in dial queue (7 ms) 15:07:31 should penalize peers (6 ms) 15:07:31 should handle heartbeat (12 ms) 15:07:31 should send goodbye to peers on shutdown (10 ms) 15:07:31 peer timeout functionality 15:07:31 should attempt to dial a discovered peer (76 ms) 15:07:31 should report peer count metric (119 ms) 15:07:31 should retry failed dials up to MAX_DIAL_ATTEMPTS (348 ms) 15:07:31 should timeout a peer after max dial attempts and ignore it for the timeout period (220 ms) 15:07:31 should cleanup expired timeouts during heartbeat (216 ms) 15:07:31 should include timed out peers in getPeers when includePending is true (18 ms) 15:07:31 should handle multiple peer discoveries and timeouts (122 ms) 15:07:31 should disconnect from unhealthy peers during heartbeat (110 ms) 15:07:31 should disconnect from low scoring peers above the max peer limit during heartbeat (110 ms) 15:07:31 should disconnect from duplicate peers during heartbeat (105 ms) 15:07:31 should properly clean up peers on stop (5 ms) 15:07:31 trusted peers 15:07:31 should not prune trusted peers (102 ms) 15:07:31 should prune untrusted peers and not trusted peers (107 ms) 15:07:31 should not disconnect trusted peers with low scores (107 ms) 15:07:31 should not remove trusted peers from the cache during pruning (628 ms) 15:07:31 should not remove trusted peers from the cache even when all peers are trusted (683 ms) 15:07:31 should return false from isTrustedPeer when trusted peers are not initialized (4 ms) 15:07:31 should not disconnect trusted peers when max peer count is reached (114 ms) 15:07:31 private peers 15:07:31 should not prune private peers with low scores (107 ms) 15:07:31 should not remove private peers from the cache during pruning (530 ms) 15:07:31 should return false from isPrivatePeer when private peers are not initialized (2 ms) 15:07:31 should initialize private peers from config (7 ms) 15:07:31 should handle a peer being both trusted and private (102 ms) 15:07:31 goodbye metrics 15:07:31 should record metrics when receiving goodbye messages (4 ms) 15:07:31 should record metrics when sending goodbye messages (3 ms) 15:07:31 15:07:31 Test Suites: 1 passed, 1 total 15:07:31 Tests: 30 passed, 30 total 15:07:31 Snapshots: 0 total 15:07:31 Time: 7.139 s 15:07:31 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 15:07:31 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?