Parent Log: http://ci.aztec-labs.com/179a28111d15e5ae Command: 382b132597c2ea2f: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/99e234fe4473771b32124e0402885610a6a3f98a Env: REF_NAME=gh-readonly-queue/next/pr-15233-1c9ca312bfdace816082212846900a49694e1e50 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 08:59:57 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15233_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 08:59:57 +++ id -u 08:59:57 +++ id -g 08:59:57 ++ 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'\''' 08:59:58 + cid=abbb47081082a5746f8eec4a0cfa822b61a50ac855a644dadf236a2aeb23572e 08:59:58 + set +x 09:00:02 [09:00:02.085] WARN: test Trusted peers not initialized, returning false 09:00:02 [09:00:02.092] WARN: test Private peers not initialized, returning false 09:00:02 [09:00:02.093] WARN: test Trusted peers not initialized, returning false 09:00:02 [09:00:02.094] WARN: test Private peers not initialized, returning false 09:00:02 [09:00:02.180] WARN: test Trusted peers not initialized, returning false 09:00:02 [09:00:02.180] WARN: test Private peers not initialized, returning false 09:00:02 [09:00:02.181] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 09:00:02 [09:00:02.419] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:00:02 [09:00:02.521] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:00:02 [09:00:02.737] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:00:02 [09:00:02.839] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:00:02 [09:00:02.970] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:00:03 [09:00:03.072] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:00:03 [09:00:03.209] WARN: test Trusted peers not initialized, returning false 09:00:03 [09:00:03.210] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.210] WARN: test Trusted peers not initialized, returning false 09:00:03 [09:00:03.210] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.211] WARN: test Trusted peers not initialized, returning false 09:00:03 [09:00:03.211] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.324] WARN: test Trusted peers not initialized, returning false 09:00:03 [09:00:03.324] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.324] WARN: test Trusted peers not initialized, returning false 09:00:03 [09:00:03.325] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.325] WARN: test Trusted peers not initialized, returning false 09:00:03 [09:00:03.325] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.325] WARN: test Trusted peers not initialized, returning false 09:00:03 [09:00:03.326] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.326] WARN: test Trusted peers not initialized, returning false 09:00:03 [09:00:03.326] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.433] WARN: test Trusted peers not initialized, returning false 09:00:03 [09:00:03.434] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.655] WARN: test Private peers not initialized, returning false 09:00:03 [09:00:03.765] WARN: test Private peers not initialized, returning false 09:00:04 [09:00:04.544] WARN: test Private peers not initialized, returning false 09:00:04 [09:00:04.544] WARN: test Private peers not initialized, returning false 09:00:05 [09:00:05.182] WARN: test Trusted peers not initialized, returning false 09:00:05 [09:00:05.191] WARN: test Private peers not initialized, returning false 09:00:05 [09:00:05.192] WARN: test Private peers not initialized, returning false 09:00:05 [09:00:05.192] WARN: test Private peers not initialized, returning false 09:00:05 [09:00:05.925] WARN: test Private peers not initialized, returning false 09:00:06 [09:00:06.059] WARN: test Trusted peers not initialized, returning false 09:00:06 [09:00:06.060] WARN: test Private peers not initialized, returning false 09:00:06 PASS src/services/peer-manager/peer_manager.test.ts (7.053 s) 09:00:06 PeerManager 09:00:06 peer management 09:00:06 should return connected peers (62 ms) 09:00:06 should return peers in dial queue (9 ms) 09:00:06 should penalize peers (5 ms) 09:00:06 should handle heartbeat (12 ms) 09:00:06 should send goodbye to peers on shutdown (7 ms) 09:00:06 peer timeout functionality 09:00:06 should attempt to dial a discovered peer (75 ms) 09:00:06 should report peer count metric (105 ms) 09:00:06 should retry failed dials up to MAX_DIAL_ATTEMPTS (340 ms) 09:00:06 should timeout a peer after max dial attempts and ignore it for the timeout period (223 ms) 09:00:06 should cleanup expired timeouts during heartbeat (229 ms) 09:00:06 should include timed out peers in getPeers when includePending is true (10 ms) 09:00:06 should handle multiple peer discoveries and timeouts (115 ms) 09:00:06 should disconnect from unhealthy peers during heartbeat (109 ms) 09:00:06 should disconnect from low scoring peers above the max peer limit during heartbeat (116 ms) 09:00:06 should disconnect from duplicate peers during heartbeat (106 ms) 09:00:06 should properly clean up peers on stop (8 ms) 09:00:06 trusted peers 09:00:06 should not prune trusted peers (103 ms) 09:00:06 should prune untrusted peers and not trusted peers (110 ms) 09:00:06 should not disconnect trusted peers with low scores (109 ms) 09:00:06 should not remove trusted peers from the cache during pruning (678 ms) 09:00:06 should not remove trusted peers from the cache even when all peers are trusted (633 ms) 09:00:06 should return false from isTrustedPeer when trusted peers are not initialized (5 ms) 09:00:06 should not disconnect trusted peers when max peer count is reached (110 ms) 09:00:06 private peers 09:00:06 should not prune private peers with low scores (106 ms) 09:00:06 should not remove private peers from the cache during pruning (524 ms) 09:00:06 should return false from isPrivatePeer when private peers are not initialized (2 ms) 09:00:06 should initialize private peers from config (10 ms) 09:00:06 should handle a peer being both trusted and private (104 ms) 09:00:06 goodbye metrics 09:00:06 should record metrics when receiving goodbye messages (11 ms) 09:00:06 should record metrics when sending goodbye messages (14 ms) 09:00:06 09:00:06 Test Suites: 1 passed, 1 total 09:00:06 Tests: 30 passed, 30 total 09:00:06 Snapshots: 0 total 09:00:06 Time: 7.163 s 09:00:06 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 09:00:06 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?