Parent Log: http://ci.aztec-labs.com/ab56293d4d011784 Command: 5b134306478d06bb: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/e1613ca4b54a0ae509638dc4114780dd3cb0bc9b Env: REF_NAME=gh-readonly-queue/next/pr-15239-282da3bd25d49b92970e6fc85f110092e8566299 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 15:18:17 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15239_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 15:18:17 +++ id -u 15:18:17 +++ id -g 15:18:17 ++ 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:18:18 + cid=2b17ed40a8adac5ff154c0258dae802a4f13e0873c0692d8b561d1bed5486a43 15:18:18 + set +x 15:18:22 [15:18:22.174] WARN: test Trusted peers not initialized, returning false 15:18:22 [15:18:22.180] WARN: test Private peers not initialized, returning false 15:18:22 [15:18:22.181] WARN: test Trusted peers not initialized, returning false 15:18:22 [15:18:22.181] WARN: test Private peers not initialized, returning false 15:18:22 [15:18:22.268] WARN: test Trusted peers not initialized, returning false 15:18:22 [15:18:22.269] WARN: test Private peers not initialized, returning false 15:18:22 [15:18:22.270] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 15:18:22 [15:18:22.508] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:18:22 [15:18:22.609] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:18:22 [15:18:22.846] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:18:22 [15:18:22.948] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:18:23 [15:18:23.073] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:18:23 [15:18:23.175] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:18:23 [15:18:23.321] WARN: test Trusted peers not initialized, returning false 15:18:23 [15:18:23.323] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.324] WARN: test Trusted peers not initialized, returning false 15:18:23 [15:18:23.324] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.324] WARN: test Trusted peers not initialized, returning false 15:18:23 [15:18:23.325] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.440] WARN: test Trusted peers not initialized, returning false 15:18:23 [15:18:23.441] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.441] WARN: test Trusted peers not initialized, returning false 15:18:23 [15:18:23.441] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.441] WARN: test Trusted peers not initialized, returning false 15:18:23 [15:18:23.442] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.442] WARN: test Trusted peers not initialized, returning false 15:18:23 [15:18:23.442] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.442] WARN: test Trusted peers not initialized, returning false 15:18:23 [15:18:23.443] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.550] WARN: test Trusted peers not initialized, returning false 15:18:23 [15:18:23.551] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.765] WARN: test Private peers not initialized, returning false 15:18:23 [15:18:23.873] WARN: test Private peers not initialized, returning false 15:18:24 [15:18:24.551] WARN: test Private peers not initialized, returning false 15:18:24 [15:18:24.552] WARN: test Private peers not initialized, returning false 15:18:25 [15:18:25.286] WARN: test Trusted peers not initialized, returning false 15:18:25 [15:18:25.295] WARN: test Private peers not initialized, returning false 15:18:25 [15:18:25.295] WARN: test Private peers not initialized, returning false 15:18:25 [15:18:25.296] WARN: test Private peers not initialized, returning false 15:18:26 [15:18:26.034] WARN: test Private peers not initialized, returning false 15:18:26 [15:18:26.153] WARN: test Trusted peers not initialized, returning false 15:18:26 [15:18:26.153] WARN: test Private peers not initialized, returning false 15:18:26 PASS src/services/peer-manager/peer_manager.test.ts (7.006 s) 15:18:26 PeerManager 15:18:26 peer management 15:18:26 should return connected peers (59 ms) 15:18:26 should return peers in dial queue (6 ms) 15:18:26 should penalize peers (4 ms) 15:18:26 should handle heartbeat (11 ms) 15:18:26 should send goodbye to peers on shutdown (9 ms) 15:18:26 peer timeout functionality 15:18:26 should attempt to dial a discovered peer (73 ms) 15:18:26 should report peer count metric (108 ms) 15:18:26 should retry failed dials up to MAX_DIAL_ATTEMPTS (344 ms) 15:18:26 should timeout a peer after max dial attempts and ignore it for the timeout period (237 ms) 15:18:26 should cleanup expired timeouts during heartbeat (218 ms) 15:18:26 should include timed out peers in getPeers when includePending is true (13 ms) 15:18:26 should handle multiple peer discoveries and timeouts (119 ms) 15:18:26 should disconnect from unhealthy peers during heartbeat (117 ms) 15:18:26 should disconnect from low scoring peers above the max peer limit during heartbeat (117 ms) 15:18:26 should disconnect from duplicate peers during heartbeat (106 ms) 15:18:26 should properly clean up peers on stop (4 ms) 15:18:26 trusted peers 15:18:26 should not prune trusted peers (102 ms) 15:18:26 should prune untrusted peers and not trusted peers (107 ms) 15:18:26 should not disconnect trusted peers with low scores (106 ms) 15:18:26 should not remove trusted peers from the cache during pruning (579 ms) 15:18:26 should not remove trusted peers from the cache even when all peers are trusted (731 ms) 15:18:26 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 15:18:26 should not disconnect trusted peers when max peer count is reached (111 ms) 15:18:26 private peers 15:18:26 should not prune private peers with low scores (105 ms) 15:18:26 should not remove private peers from the cache during pruning (529 ms) 15:18:26 should return false from isPrivatePeer when private peers are not initialized (2 ms) 15:18:26 should initialize private peers from config (9 ms) 15:18:26 should handle a peer being both trusted and private (102 ms) 15:18:26 goodbye metrics 15:18:26 should record metrics when receiving goodbye messages (3 ms) 15:18:26 should record metrics when sending goodbye messages (3 ms) 15:18:26 15:18:26 Test Suites: 1 passed, 1 total 15:18:26 Tests: 30 passed, 30 total 15:18:26 Snapshots: 0 total 15:18:26 Time: 7.113 s 15:18:26 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 15:18:26 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?