Parent Log: http://ci.aztec-labs.com/68098685a1fbea35 Command: b3bf99625f6f0a17: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/d71b7a63300e898a3d40f7da703f7cde545afb41 Env: REF_NAME=gh-readonly-queue/next/pr-15138-d5a262aabc20f5384a720a0d831e2ec28badc7f9 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Wed Jun 18 18:05:35 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15138_amd64_x1-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 18:05:35 +++ id -u 18:05:35 +++ id -g 18:05:35 ++ 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'\''' 18:05:35 + cid=4a01d05708fb4ef7eaedd539ccef2a57ee52fcff499adf94981f5c1cc2fcd65f 18:05:35 + set +x 18:05:39 [18:05:39.355] WARN: test Trusted peers not initialized, returning false 18:05:39 [18:05:39.362] WARN: test Private peers not initialized, returning false 18:05:39 [18:05:39.362] WARN: test Trusted peers not initialized, returning false 18:05:39 [18:05:39.363] WARN: test Private peers not initialized, returning false 18:05:39 [18:05:39.459] WARN: test Trusted peers not initialized, returning false 18:05:39 [18:05:39.460] WARN: test Private peers not initialized, returning false 18:05:39 [18:05:39.460] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 18:05:39 [18:05:39.701] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:05:39 [18:05:39.803] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:05:40 [18:05:40.022] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:05:40 [18:05:40.124] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:05:40 [18:05:40.246] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:05:40 [18:05:40.348] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 18:05:40 [18:05:40.498] WARN: test Trusted peers not initialized, returning false 18:05:40 [18:05:40.498] WARN: test Private peers not initialized, returning false 18:05:40 [18:05:40.499] WARN: test Trusted peers not initialized, returning false 18:05:40 [18:05:40.499] WARN: test Private peers not initialized, returning false 18:05:40 [18:05:40.499] WARN: test Trusted peers not initialized, returning false 18:05:40 [18:05:40.499] WARN: test Private peers not initialized, returning false 18:05:40 [18:05:40.610] WARN: test Trusted peers not initialized, returning false 18:05:40 [18:05:40.610] WARN: test Private peers not initialized, returning false 18:05:40 [18:05:40.610] WARN: test Trusted peers not initialized, returning false 18:05:40 [18:05:40.611] WARN: test Private peers not initialized, returning false 18:05:40 [18:05:40.611] WARN: test Trusted peers not initialized, returning false 18:05:40 [18:05:40.611] WARN: test Private peers not initialized, returning false 18:05:40 [18:05:40.611] WARN: test Trusted peers not initialized, returning false 18:05:40 [18:05:40.611] WARN: test Private peers not initialized, returning false 18:05:40 [18:05:40.612] WARN: test Trusted peers not initialized, returning false 18:05:40 [18:05:40.612] WARN: test Private peers not initialized, returning false 18:05:40 [18:05:40.720] WARN: test Trusted peers not initialized, returning false 18:05:40 [18:05:40.720] WARN: test Private peers not initialized, returning false 18:05:40 [18:05:40.935] WARN: test Private peers not initialized, returning false 18:05:41 [18:05:41.043] WARN: test Private peers not initialized, returning false 18:05:41 [18:05:41.853] WARN: test Private peers not initialized, returning false 18:05:41 [18:05:41.854] WARN: test Private peers not initialized, returning false 18:05:42 [18:05:42.532] WARN: test Trusted peers not initialized, returning false 18:05:42 [18:05:42.541] WARN: test Private peers not initialized, returning false 18:05:42 [18:05:42.541] WARN: test Private peers not initialized, returning false 18:05:42 [18:05:42.541] WARN: test Private peers not initialized, returning false 18:05:43 [18:05:43.332] WARN: test Private peers not initialized, returning false 18:05:43 [18:05:43.452] WARN: test Trusted peers not initialized, returning false 18:05:43 [18:05:43.452] WARN: test Private peers not initialized, returning false 18:05:43 PASS src/services/peer-manager/peer_manager.test.ts (6.913 s) 18:05:43 PeerManager 18:05:43 peer management 18:05:43 should return connected peers (50 ms) 18:05:43 should return peers in dial queue (6 ms) 18:05:43 should penalize peers (5 ms) 18:05:43 should handle heartbeat (12 ms) 18:05:43 should send goodbye to peers on shutdown (9 ms) 18:05:43 peer timeout functionality 18:05:43 should attempt to dial a discovered peer (81 ms) 18:05:43 should report peer count metric (106 ms) 18:05:43 should retry failed dials up to MAX_DIAL_ATTEMPTS (344 ms) 18:05:43 should timeout a peer after max dial attempts and ignore it for the timeout period (226 ms) 18:05:43 should cleanup expired timeouts during heartbeat (220 ms) 18:05:43 should include timed out peers in getPeers when includePending is true (14 ms) 18:05:43 should handle multiple peer discoveries and timeouts (121 ms) 18:05:43 should disconnect from unhealthy peers during heartbeat (112 ms) 18:05:43 should disconnect from low scoring peers above the max peer limit during heartbeat (114 ms) 18:05:43 should disconnect from duplicate peers during heartbeat (106 ms) 18:05:43 should properly clean up peers on stop (5 ms) 18:05:43 trusted peers 18:05:43 should not prune trusted peers (103 ms) 18:05:43 should prune untrusted peers and not trusted peers (107 ms) 18:05:43 should not disconnect trusted peers with low scores (108 ms) 18:05:43 should not remove trusted peers from the cache during pruning (709 ms) 18:05:43 should not remove trusted peers from the cache even when all peers are trusted (675 ms) 18:05:43 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 18:05:43 should not disconnect trusted peers when max peer count is reached (110 ms) 18:05:43 private peers 18:05:43 should not prune private peers with low scores (105 ms) 18:05:43 should not remove private peers from the cache during pruning (580 ms) 18:05:43 should return false from isPrivatePeer when private peers are not initialized (3 ms) 18:05:43 should initialize private peers from config (8 ms) 18:05:43 should handle a peer being both trusted and private (103 ms) 18:05:43 goodbye metrics 18:05:43 should record metrics when receiving goodbye messages (4 ms) 18:05:43 should record metrics when sending goodbye messages (4 ms) 18:05:43 18:05:43 Test Suites: 1 passed, 1 total 18:05:43 Tests: 30 passed, 30 total 18:05:43 Snapshots: 0 total 18:05:43 Time: 7.033 s 18:05:43 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 18:05:43 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?