Parent Log: http://ci.aztec-labs.com/6accf1747685d10b Command: 0742425f32083b75: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/04abcb151443d51d2f1b002a2412a083a9384a51 Env: REF_NAME=gh-readonly-queue/next/pr-15077-263498dd65e8700218979d7a94dbfd25b2a8a8a8 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 17 20:51:20 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15077_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 20:51:20 +++ id -u 20:51:20 +++ id -g 20:51:20 ++ 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:51:20 + cid=03def87892ae77a157cca714412be474e4794b93c7ef130aff7e037bcfb6b1bc 20:51:20 + set +x 20:51:24 [20:51:24.674] WARN: test Trusted peers not initialized, returning false 20:51:24 [20:51:24.679] WARN: test Private peers not initialized, returning false 20:51:24 [20:51:24.680] WARN: test Trusted peers not initialized, returning false 20:51:24 [20:51:24.680] WARN: test Private peers not initialized, returning false 20:51:24 [20:51:24.746] WARN: test Trusted peers not initialized, returning false 20:51:24 [20:51:24.747] WARN: test Private peers not initialized, returning false 20:51:24 [20:51:24.747] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 20:51:24 [20:51:24.977] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:51:25 [20:51:25.078] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:51:25 [20:51:25.292] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:51:25 [20:51:25.395] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:51:25 [20:51:25.513] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:51:25 [20:51:25.614] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 20:51:25 [20:51:25.757] WARN: test Trusted peers not initialized, returning false 20:51:25 [20:51:25.758] WARN: test Private peers not initialized, returning false 20:51:25 [20:51:25.758] WARN: test Trusted peers not initialized, returning false 20:51:25 [20:51:25.758] WARN: test Private peers not initialized, returning false 20:51:25 [20:51:25.759] WARN: test Trusted peers not initialized, returning false 20:51:25 [20:51:25.759] WARN: test Private peers not initialized, returning false 20:51:25 [20:51:25.872] WARN: test Trusted peers not initialized, returning false 20:51:25 [20:51:25.872] WARN: test Private peers not initialized, returning false 20:51:25 [20:51:25.873] WARN: test Trusted peers not initialized, returning false 20:51:25 [20:51:25.873] WARN: test Private peers not initialized, returning false 20:51:25 [20:51:25.873] WARN: test Trusted peers not initialized, returning false 20:51:25 [20:51:25.873] WARN: test Private peers not initialized, returning false 20:51:25 [20:51:25.874] WARN: test Trusted peers not initialized, returning false 20:51:25 [20:51:25.874] WARN: test Private peers not initialized, returning false 20:51:25 [20:51:25.874] WARN: test Trusted peers not initialized, returning false 20:51:25 [20:51:25.874] WARN: test Private peers not initialized, returning false 20:51:25 [20:51:25.980] WARN: test Trusted peers not initialized, returning false 20:51:25 [20:51:25.981] WARN: test Private peers not initialized, returning false 20:51:26 [20:51:26.200] WARN: test Private peers not initialized, returning false 20:51:26 [20:51:26.307] WARN: test Private peers not initialized, returning false 20:51:27 [20:51:27.089] WARN: test Private peers not initialized, returning false 20:51:27 [20:51:27.090] WARN: test Private peers not initialized, returning false 20:51:27 [20:51:27.723] WARN: test Trusted peers not initialized, returning false 20:51:27 [20:51:27.738] WARN: test Private peers not initialized, returning false 20:51:27 [20:51:27.738] WARN: test Private peers not initialized, returning false 20:51:27 [20:51:27.738] WARN: test Private peers not initialized, returning false 20:51:28 [20:51:28.516] WARN: test Private peers not initialized, returning false 20:51:28 [20:51:28.635] WARN: test Trusted peers not initialized, returning false 20:51:28 [20:51:28.635] WARN: test Private peers not initialized, returning false 20:51:28 PASS src/services/peer-manager/peer_manager.test.ts (6.797 s) 20:51:28 PeerManager 20:51:28 peer management 20:51:28 should return connected peers (43 ms) 20:51:28 should return peers in dial queue (6 ms) 20:51:28 should penalize peers (4 ms) 20:51:28 should handle heartbeat (8 ms) 20:51:28 should send goodbye to peers on shutdown (6 ms) 20:51:28 peer timeout functionality 20:51:28 should attempt to dial a discovered peer (55 ms) 20:51:28 should report peer count metric (105 ms) 20:51:28 should retry failed dials up to MAX_DIAL_ATTEMPTS (331 ms) 20:51:28 should timeout a peer after max dial attempts and ignore it for the timeout period (219 ms) 20:51:28 should cleanup expired timeouts during heartbeat (217 ms) 20:51:28 should include timed out peers in getPeers when includePending is true (13 ms) 20:51:28 should handle multiple peer discoveries and timeouts (119 ms) 20:51:28 should disconnect from unhealthy peers during heartbeat (111 ms) 20:51:28 should disconnect from low scoring peers above the max peer limit during heartbeat (114 ms) 20:51:28 should disconnect from duplicate peers during heartbeat (106 ms) 20:51:28 should properly clean up peers on stop (6 ms) 20:51:28 trusted peers 20:51:28 should not prune trusted peers (104 ms) 20:51:28 should prune untrusted peers and not trusted peers (107 ms) 20:51:28 should not disconnect trusted peers with low scores (109 ms) 20:51:28 should not remove trusted peers from the cache during pruning (678 ms) 20:51:28 should not remove trusted peers from the cache even when all peers are trusted (627 ms) 20:51:28 should return false from isTrustedPeer when trusted peers are not initialized (5 ms) 20:51:28 should not disconnect trusted peers when max peer count is reached (116 ms) 20:51:28 private peers 20:51:28 should not prune private peers with low scores (104 ms) 20:51:28 should not remove private peers from the cache during pruning (568 ms) 20:51:28 should return false from isPrivatePeer when private peers are not initialized (2 ms) 20:51:28 should initialize private peers from config (8 ms) 20:51:28 should handle a peer being both trusted and private (103 ms) 20:51:28 goodbye metrics 20:51:28 should record metrics when receiving goodbye messages (3 ms) 20:51:28 should record metrics when sending goodbye messages (2 ms) 20:51:28 20:51:28 Test Suites: 1 passed, 1 total 20:51:28 Tests: 30 passed, 30 total 20:51:28 Snapshots: 0 total 20:51:28 Time: 6.908 s 20:51:28 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 20:51:28 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?