Parent Log: http://ci.aztec-labs.com/297cf2df5caaa01a Command: 55dd7a9740af4ad3: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/47bd93499e6606131b6ececa3536632cf5e84409 Env: REF_NAME=gh-readonly-queue/next/pr-15080-215be54ba7d05741f58f591612a9e5454104b24d CURRENT_VERSION=0.87.6 CI_FULL=0 Date: Wed Jun 18 09:40:28 UTC 2025 System: ARCH=arm64 CPUS=64 MEM=247Gi HOSTNAME=pr-15080_arm64_a1-fast Resources: CPU_LIST=0-63 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 09:40:28 +++ id -u 09:40:28 +++ id -g 09:40:28 ++ docker run -d --name p2p_src_services_peer-manager_peer_manager.test.ts --net=none --cpuset-cpus=0-63 --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'\''' 09:40:28 + cid=5d8ad1af04e94fec23f11267b62d584aa168e26aafdeefe38445992e92e25607 09:40:28 + set +x 09:40:30 [09:40:30.958] WARN: test Trusted peers not initialized, returning false 09:40:30 [09:40:30.963] WARN: test Private peers not initialized, returning false 09:40:30 [09:40:30.963] WARN: test Trusted peers not initialized, returning false 09:40:30 [09:40:30.964] WARN: test Private peers not initialized, returning false 09:40:31 [09:40:31.025] WARN: test Trusted peers not initialized, returning false 09:40:31 [09:40:31.026] WARN: test Private peers not initialized, returning false 09:40:31 [09:40:31.027] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 09:40:31 [09:40:31.253] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:40:31 [09:40:31.355] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:40:31 [09:40:31.567] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:40:31 [09:40:31.667] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:40:31 [09:40:31.780] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:40:31 [09:40:31.881] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 09:40:32 [09:40:32.011] WARN: test Trusted peers not initialized, returning false 09:40:32 [09:40:32.011] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.011] WARN: test Trusted peers not initialized, returning false 09:40:32 [09:40:32.011] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.012] WARN: test Trusted peers not initialized, returning false 09:40:32 [09:40:32.012] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.119] WARN: test Trusted peers not initialized, returning false 09:40:32 [09:40:32.120] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.120] WARN: test Trusted peers not initialized, returning false 09:40:32 [09:40:32.120] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.120] WARN: test Trusted peers not initialized, returning false 09:40:32 [09:40:32.121] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.121] WARN: test Trusted peers not initialized, returning false 09:40:32 [09:40:32.121] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.121] WARN: test Trusted peers not initialized, returning false 09:40:32 [09:40:32.121] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.226] WARN: test Trusted peers not initialized, returning false 09:40:32 [09:40:32.226] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.436] WARN: test Private peers not initialized, returning false 09:40:32 [09:40:32.541] WARN: test Private peers not initialized, returning false 09:40:33 [09:40:33.081] WARN: test Private peers not initialized, returning false 09:40:33 [09:40:33.082] WARN: test Private peers not initialized, returning false 09:40:33 [09:40:33.546] WARN: test Trusted peers not initialized, returning false 09:40:33 [09:40:33.553] WARN: test Private peers not initialized, returning false 09:40:33 [09:40:33.553] WARN: test Private peers not initialized, returning false 09:40:33 [09:40:33.553] WARN: test Private peers not initialized, returning false 09:40:34 [09:40:34.178] WARN: test Private peers not initialized, returning false 09:40:34 [09:40:34.293] WARN: test Trusted peers not initialized, returning false 09:40:34 [09:40:34.293] WARN: test Private peers not initialized, returning false 09:40:34 PASS src/services/peer-manager/peer_manager.test.ts (5.23 s) 09:40:34 PeerManager 09:40:34 peer management 09:40:34 should return connected peers (34 ms) 09:40:34 should return peers in dial queue (4 ms) 09:40:34 should penalize peers (3 ms) 09:40:34 should handle heartbeat (8 ms) 09:40:34 should send goodbye to peers on shutdown (6 ms) 09:40:34 peer timeout functionality 09:40:34 should attempt to dial a discovered peer (51 ms) 09:40:34 should report peer count metric (106 ms) 09:40:34 should retry failed dials up to MAX_DIAL_ATTEMPTS (328 ms) 09:40:34 should timeout a peer after max dial attempts and ignore it for the timeout period (215 ms) 09:40:34 should cleanup expired timeouts during heartbeat (211 ms) 09:40:34 should include timed out peers in getPeers when includePending is true (9 ms) 09:40:34 should handle multiple peer discoveries and timeouts (113 ms) 09:40:34 should disconnect from unhealthy peers during heartbeat (107 ms) 09:40:34 should disconnect from low scoring peers above the max peer limit during heartbeat (110 ms) 09:40:34 should disconnect from duplicate peers during heartbeat (103 ms) 09:40:34 should properly clean up peers on stop (4 ms) 09:40:34 trusted peers 09:40:34 should not prune trusted peers (102 ms) 09:40:34 should prune untrusted peers and not trusted peers (105 ms) 09:40:34 should not disconnect trusted peers with low scores (104 ms) 09:40:34 should not remove trusted peers from the cache during pruning (439 ms) 09:40:34 should not remove trusted peers from the cache even when all peers are trusted (461 ms) 09:40:34 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 09:40:34 should not disconnect trusted peers when max peer count is reached (108 ms) 09:40:34 private peers 09:40:34 should not prune private peers with low scores (104 ms) 09:40:34 should not remove private peers from the cache during pruning (416 ms) 09:40:34 should return false from isPrivatePeer when private peers are not initialized (2 ms) 09:40:34 should initialize private peers from config (7 ms) 09:40:34 should handle a peer being both trusted and private (102 ms) 09:40:34 goodbye metrics 09:40:34 should record metrics when receiving goodbye messages (2 ms) 09:40:34 should record metrics when sending goodbye messages (3 ms) 09:40:34 09:40:34 Test Suites: 1 passed, 1 total 09:40:34 Tests: 30 passed, 30 total 09:40:34 Snapshots: 0 total 09:40:34 Time: 5.302 s 09:40:34 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 09:40:34 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?