Parent Log: http://ci.aztec-labs.com/cb0087ed15f77415 Command: 0f4f65dca0a2798e: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/67bf12030291ce3da2cf39ff5fbfa799eae98dc5 Env: REF_NAME=gh-readonly-queue/next/pr-14963-42440bd429a3b283b3a344db0be4652d818bd261 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 20:01:47 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14963_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 20:01:47 +++ id -u 20:01:47 +++ id -g 20:01:47 ++ 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'\''' 20:01:47 + cid=010ce6bda0d5aecf4f96ebcb65d91b30c87b94249b7de222a8718b4eeb4d108e 20:01:47 + set +x 20:01:51 [20:01:51.713] WARN: test Trusted peers not initialized, returning false 20:01:51 [20:01:51.719] WARN: test Private peers not initialized, returning false 20:01:51 [20:01:51.720] WARN: test Trusted peers not initialized, returning false 20:01:51 [20:01:51.721] WARN: test Private peers not initialized, returning false 20:01:51 [20:01:51.820] WARN: test Trusted peers not initialized, returning false 20:01:51 [20:01:51.821] WARN: test Private peers not initialized, returning false 20:01:51 [20:01:51.822] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 20:01:52 [20:01:52.059] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:01:52 [20:01:52.161] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:01:52 [20:01:52.379] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:01:52 [20:01:52.480] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:01:52 [20:01:52.603] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:01:52 [20:01:52.705] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:01:52 [20:01:52.858] WARN: test Trusted peers not initialized, returning false 20:01:52 [20:01:52.858] WARN: test Private peers not initialized, returning false 20:01:52 [20:01:52.859] WARN: test Trusted peers not initialized, returning false 20:01:52 [20:01:52.859] WARN: test Private peers not initialized, returning false 20:01:52 [20:01:52.859] WARN: test Trusted peers not initialized, returning false 20:01:52 [20:01:52.859] WARN: test Private peers not initialized, returning false 20:01:52 [20:01:52.969] WARN: test Trusted peers not initialized, returning false 20:01:52 [20:01:52.969] WARN: test Private peers not initialized, returning false 20:01:52 [20:01:52.969] WARN: test Trusted peers not initialized, returning false 20:01:52 [20:01:52.969] WARN: test Private peers not initialized, returning false 20:01:52 [20:01:52.970] WARN: test Trusted peers not initialized, returning false 20:01:52 [20:01:52.970] WARN: test Private peers not initialized, returning false 20:01:52 [20:01:52.970] WARN: test Trusted peers not initialized, returning false 20:01:52 [20:01:52.970] WARN: test Private peers not initialized, returning false 20:01:52 [20:01:52.971] WARN: test Trusted peers not initialized, returning false 20:01:52 [20:01:52.971] WARN: test Private peers not initialized, returning false 20:01:53 [20:01:53.077] WARN: test Trusted peers not initialized, returning false 20:01:53 [20:01:53.078] WARN: test Private peers not initialized, returning false 20:01:53 [20:01:53.298] WARN: test Private peers not initialized, returning false 20:01:53 [20:01:53.406] WARN: test Private peers not initialized, returning false 20:01:54 [20:01:54.157] WARN: test Private peers not initialized, returning false 20:01:54 [20:01:54.157] WARN: test Private peers not initialized, returning false 20:01:54 [20:01:54.859] WARN: test Trusted peers not initialized, returning false 20:01:54 [20:01:54.869] WARN: test Private peers not initialized, returning false 20:01:54 [20:01:54.870] WARN: test Private peers not initialized, returning false 20:01:54 [20:01:54.870] WARN: test Private peers not initialized, returning false 20:01:55 [20:01:55.640] WARN: test Private peers not initialized, returning false 20:01:55 [20:01:55.760] WARN: test Trusted peers not initialized, returning false 20:01:55 [20:01:55.760] WARN: test Private peers not initialized, returning false 20:01:55 PASS src/services/peer-manager/peer_manager.test.ts (7.184 s) 20:01:55 PeerManager 20:01:55 peer management 20:01:55 should return connected peers (54 ms) 20:01:55 should return peers in dial queue (6 ms) 20:01:55 should penalize peers (4 ms) 20:01:55 should handle heartbeat (11 ms) 20:01:55 should send goodbye to peers on shutdown (9 ms) 20:01:55 peer timeout functionality 20:01:55 should attempt to dial a discovered peer (84 ms) 20:01:55 should report peer count metric (110 ms) 20:01:55 should retry failed dials up to MAX_DIAL_ATTEMPTS (340 ms) 20:01:55 should timeout a peer after max dial attempts and ignore it for the timeout period (222 ms) 20:01:55 should cleanup expired timeouts during heartbeat (223 ms) 20:01:55 should include timed out peers in getPeers when includePending is true (16 ms) 20:01:55 should handle multiple peer discoveries and timeouts (121 ms) 20:01:55 should disconnect from unhealthy peers during heartbeat (109 ms) 20:01:55 should disconnect from low scoring peers above the max peer limit during heartbeat (112 ms) 20:01:55 should disconnect from duplicate peers during heartbeat (106 ms) 20:01:55 should properly clean up peers on stop (6 ms) 20:01:55 trusted peers 20:01:55 should not prune trusted peers (103 ms) 20:01:55 should prune untrusted peers and not trusted peers (110 ms) 20:01:55 should not disconnect trusted peers with low scores (108 ms) 20:01:55 should not remove trusted peers from the cache during pruning (649 ms) 20:01:55 should not remove trusted peers from the cache even when all peers are trusted (698 ms) 20:01:55 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 20:01:55 should not disconnect trusted peers when max peer count is reached (117 ms) 20:01:55 private peers 20:01:55 should not prune private peers with low scores (106 ms) 20:01:55 should not remove private peers from the cache during pruning (555 ms) 20:01:55 should return false from isPrivatePeer when private peers are not initialized (3 ms) 20:01:55 should initialize private peers from config (10 ms) 20:01:55 should handle a peer being both trusted and private (103 ms) 20:01:55 goodbye metrics 20:01:55 should record metrics when receiving goodbye messages (4 ms) 20:01:55 should record metrics when sending goodbye messages (3 ms) 20:01:55 20:01:55 Test Suites: 1 passed, 1 total 20:01:55 Tests: 30 passed, 30 total 20:01:55 Snapshots: 0 total 20:01:55 Time: 7.293 s 20:01:55 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 20:01:55 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?