Parent Log: http://ci.aztec-labs.com/52a2d2cb830e3282 Command: 49f5129a0dc39cfa: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/4c695be4bff40a4a2ca2118c7e14c83a104e93aa Env: REF_NAME=gh-readonly-queue/next/pr-15120-bbf33e6534f745d2f5a11c2f359583e881120fc4 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Wed Jun 18 17:22:33 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15120_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 17:22:33 +++ id -u 17:22:33 +++ id -g 17:22:33 ++ 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'\''' 17:22:33 + cid=8253dfaefceeecc39eee0ae87fa1ce24111bed3300b0802dccf8a00449917a4a 17:22:33 + set +x 17:22:38 [17:22:38.206] WARN: test Trusted peers not initialized, returning false 17:22:38 [17:22:38.214] WARN: test Private peers not initialized, returning false 17:22:38 [17:22:38.215] WARN: test Trusted peers not initialized, returning false 17:22:38 [17:22:38.215] WARN: test Private peers not initialized, returning false 17:22:38 [17:22:38.289] WARN: test Trusted peers not initialized, returning false 17:22:38 [17:22:38.290] WARN: test Private peers not initialized, returning false 17:22:38 [17:22:38.291] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 17:22:38 [17:22:38.519] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:22:38 [17:22:38.622] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:22:38 [17:22:38.839] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:22:38 [17:22:38.940] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:22:39 [17:22:39.060] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:22:39 [17:22:39.162] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:22:39 [17:22:39.318] WARN: test Trusted peers not initialized, returning false 17:22:39 [17:22:39.319] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.319] WARN: test Trusted peers not initialized, returning false 17:22:39 [17:22:39.319] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.320] WARN: test Trusted peers not initialized, returning false 17:22:39 [17:22:39.320] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.433] WARN: test Trusted peers not initialized, returning false 17:22:39 [17:22:39.434] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.434] WARN: test Trusted peers not initialized, returning false 17:22:39 [17:22:39.434] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.434] WARN: test Trusted peers not initialized, returning false 17:22:39 [17:22:39.435] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.435] WARN: test Trusted peers not initialized, returning false 17:22:39 [17:22:39.435] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.435] WARN: test Trusted peers not initialized, returning false 17:22:39 [17:22:39.435] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.542] WARN: test Trusted peers not initialized, returning false 17:22:39 [17:22:39.542] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.763] WARN: test Private peers not initialized, returning false 17:22:39 [17:22:39.870] WARN: test Private peers not initialized, returning false 17:22:40 [17:22:40.696] WARN: test Private peers not initialized, returning false 17:22:40 [17:22:40.697] WARN: test Private peers not initialized, returning false 17:22:41 [17:22:41.341] WARN: test Trusted peers not initialized, returning false 17:22:41 [17:22:41.349] WARN: test Private peers not initialized, returning false 17:22:41 [17:22:41.349] WARN: test Private peers not initialized, returning false 17:22:41 [17:22:41.350] WARN: test Private peers not initialized, returning false 17:22:42 [17:22:42.184] WARN: test Private peers not initialized, returning false 17:22:42 [17:22:42.305] WARN: test Trusted peers not initialized, returning false 17:22:42 [17:22:42.306] WARN: test Private peers not initialized, returning false 17:22:42 PASS src/services/peer-manager/peer_manager.test.ts (7.202 s) 17:22:42 PeerManager 17:22:42 peer management 17:22:42 should return connected peers (54 ms) 17:22:42 should return peers in dial queue (7 ms) 17:22:42 should penalize peers (5 ms) 17:22:42 should handle heartbeat (13 ms) 17:22:42 should send goodbye to peers on shutdown (7 ms) 17:22:42 peer timeout functionality 17:22:42 should attempt to dial a discovered peer (60 ms) 17:22:42 should report peer count metric (107 ms) 17:22:42 should retry failed dials up to MAX_DIAL_ATTEMPTS (334 ms) 17:22:42 should timeout a peer after max dial attempts and ignore it for the timeout period (221 ms) 17:22:42 should cleanup expired timeouts during heartbeat (216 ms) 17:22:42 should include timed out peers in getPeers when includePending is true (24 ms) 17:22:42 should handle multiple peer discoveries and timeouts (120 ms) 17:22:42 should disconnect from unhealthy peers during heartbeat (111 ms) 17:22:42 should disconnect from low scoring peers above the max peer limit during heartbeat (115 ms) 17:22:42 should disconnect from duplicate peers during heartbeat (107 ms) 17:22:42 should properly clean up peers on stop (7 ms) 17:22:42 trusted peers 17:22:42 should not prune trusted peers (104 ms) 17:22:42 should prune untrusted peers and not trusted peers (108 ms) 17:22:42 should not disconnect trusted peers with low scores (107 ms) 17:22:42 should not remove trusted peers from the cache during pruning (726 ms) 17:22:42 should not remove trusted peers from the cache even when all peers are trusted (640 ms) 17:22:42 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 17:22:42 should not disconnect trusted peers when max peer count is reached (110 ms) 17:22:42 private peers 17:22:42 should not prune private peers with low scores (107 ms) 17:22:42 should not remove private peers from the cache during pruning (620 ms) 17:22:42 should return false from isPrivatePeer when private peers are not initialized (3 ms) 17:22:42 should initialize private peers from config (9 ms) 17:22:42 should handle a peer being both trusted and private (106 ms) 17:22:42 goodbye metrics 17:22:42 should record metrics when receiving goodbye messages (3 ms) 17:22:42 should record metrics when sending goodbye messages (2 ms) 17:22:42 17:22:42 Test Suites: 1 passed, 1 total 17:22:42 Tests: 30 passed, 30 total 17:22:42 Snapshots: 0 total 17:22:42 Time: 7.318 s 17:22:42 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 17:22:42 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?