Parent Log: http://ci.aztec-labs.com/00d5d0cbbd477ac8 Command: dd02bf67482af96b: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/12b762635a976e343151861f393574b7b5ce7d52 Env: REF_NAME=gh-readonly-queue/next/pr-15319-e340440b20c8e6058b811ce607aaf8447cf11c15 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Thu Jun 26 19:01:54 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15319_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 19:01:54 +++ id -u 19:01:54 +++ id -g 19:01:54 ++ 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'\''' 19:01:55 + cid=2fd08594cefe8647b2fab8dce0c85a25430f8600265612866d695341a78f995f 19:01:55 + set +x 19:01:59 [19:01:59.502] WARN: test Trusted peers not initialized, returning false 19:01:59 [19:01:59.508] WARN: test Private peers not initialized, returning false 19:01:59 [19:01:59.509] WARN: test Trusted peers not initialized, returning false 19:01:59 [19:01:59.510] WARN: test Private peers not initialized, returning false 19:01:59 [19:01:59.606] WARN: test Trusted peers not initialized, returning false 19:01:59 [19:01:59.608] WARN: test Private peers not initialized, returning false 19:01:59 [19:01:59.608] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 19:01:59 [19:01:59.857] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:01:59 [19:01:59.965] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:02:00 [19:02:00.183] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:02:00 [19:02:00.285] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:02:00 [19:02:00.401] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:02:00 [19:02:00.503] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 19:02:00 [19:02:00.668] WARN: test Trusted peers not initialized, returning false 19:02:00 [19:02:00.669] WARN: test Private peers not initialized, returning false 19:02:00 [19:02:00.669] WARN: test Trusted peers not initialized, returning false 19:02:00 [19:02:00.669] WARN: test Private peers not initialized, returning false 19:02:00 [19:02:00.669] WARN: test Trusted peers not initialized, returning false 19:02:00 [19:02:00.670] WARN: test Private peers not initialized, returning false 19:02:00 [19:02:00.786] WARN: test Trusted peers not initialized, returning false 19:02:00 [19:02:00.787] WARN: test Private peers not initialized, returning false 19:02:00 [19:02:00.787] WARN: test Trusted peers not initialized, returning false 19:02:00 [19:02:00.787] WARN: test Private peers not initialized, returning false 19:02:00 [19:02:00.787] WARN: test Trusted peers not initialized, returning false 19:02:00 [19:02:00.788] WARN: test Private peers not initialized, returning false 19:02:00 [19:02:00.788] WARN: test Trusted peers not initialized, returning false 19:02:00 [19:02:00.788] WARN: test Private peers not initialized, returning false 19:02:00 [19:02:00.788] WARN: test Trusted peers not initialized, returning false 19:02:00 [19:02:00.789] WARN: test Private peers not initialized, returning false 19:02:00 [19:02:00.896] WARN: test Trusted peers not initialized, returning false 19:02:00 [19:02:00.896] WARN: test Private peers not initialized, returning false 19:02:01 [19:02:01.116] WARN: test Private peers not initialized, returning false 19:02:01 [19:02:01.223] WARN: test Private peers not initialized, returning false 19:02:01 [19:02:01.981] WARN: test Private peers not initialized, returning false 19:02:01 [19:02:01.982] WARN: test Private peers not initialized, returning false 19:02:02 [19:02:02.691] WARN: test Trusted peers not initialized, returning false 19:02:02 [19:02:02.698] WARN: test Private peers not initialized, returning false 19:02:02 [19:02:02.698] WARN: test Private peers not initialized, returning false 19:02:02 [19:02:02.698] WARN: test Private peers not initialized, returning false 19:02:03 [19:02:03.559] WARN: test Private peers not initialized, returning false 19:02:03 [19:02:03.687] WARN: test Trusted peers not initialized, returning false 19:02:03 [19:02:03.687] WARN: test Private peers not initialized, returning false 19:02:03 PASS src/services/peer-manager/peer_manager.test.ts (7.479 s) 19:02:03 PeerManager 19:02:03 peer management 19:02:03 should return connected peers (59 ms) 19:02:03 should return peers in dial queue (4 ms) 19:02:03 should penalize peers (2 ms) 19:02:03 should handle heartbeat (10 ms) 19:02:03 should send goodbye to peers on shutdown (9 ms) 19:02:03 peer timeout functionality 19:02:03 should attempt to dial a discovered peer (82 ms) 19:02:03 should report peer count metric (109 ms) 19:02:03 should retry failed dials up to MAX_DIAL_ATTEMPTS (357 ms) 19:02:03 should timeout a peer after max dial attempts and ignore it for the timeout period (222 ms) 19:02:03 should cleanup expired timeouts during heartbeat (217 ms) 19:02:03 should include timed out peers in getPeers when includePending is true (15 ms) 19:02:03 should handle multiple peer discoveries and timeouts (135 ms) 19:02:03 should disconnect from unhealthy peers during heartbeat (112 ms) 19:02:03 should disconnect from low scoring peers above the max peer limit during heartbeat (118 ms) 19:02:03 should disconnect from duplicate peers during heartbeat (107 ms) 19:02:03 should properly clean up peers on stop (7 ms) 19:02:03 trusted peers 19:02:03 should not prune trusted peers (104 ms) 19:02:03 should prune untrusted peers and not trusted peers (108 ms) 19:02:03 should not disconnect trusted peers with low scores (106 ms) 19:02:03 should not remove trusted peers from the cache during pruning (657 ms) 19:02:03 should not remove trusted peers from the cache even when all peers are trusted (706 ms) 19:02:03 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 19:02:03 should not disconnect trusted peers when max peer count is reached (109 ms) 19:02:03 private peers 19:02:03 should not prune private peers with low scores (105 ms) 19:02:03 should not remove private peers from the cache during pruning (645 ms) 19:02:03 should return false from isPrivatePeer when private peers are not initialized (7 ms) 19:02:03 should initialize private peers from config (13 ms) 19:02:03 should handle a peer being both trusted and private (103 ms) 19:02:03 goodbye metrics 19:02:03 should record metrics when receiving goodbye messages (6 ms) 19:02:03 should record metrics when sending goodbye messages (4 ms) 19:02:03 19:02:03 Test Suites: 1 passed, 1 total 19:02:03 Tests: 30 passed, 30 total 19:02:03 Snapshots: 0 total 19:02:03 Time: 7.575 s 19:02:03 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 19:02:03 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?