Parent Log: http://ci.aztec-labs.com/51fad2508877a18c Command: 2f76ae4bba915073: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/87c4b689268afecc86ab007c3587e45110daa43d Env: REF_NAME=gh-readonly-queue/next/pr-15220-282da3bd25d49b92970e6fc85f110092e8566299 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Tue Jun 24 16:34:50 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15220_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 16:34:50 +++ id -u 16:34:50 +++ id -g 16:34:50 ++ 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'\''' 16:34:51 + cid=382847e9a473b493bf21e32c37f8b61470cce6ae67405e5758705639f6f896d1 16:34:51 + set +x 16:34:55 [16:34:55.372] WARN: test Trusted peers not initialized, returning false 16:34:55 [16:34:55.376] WARN: test Private peers not initialized, returning false 16:34:55 [16:34:55.377] WARN: test Trusted peers not initialized, returning false 16:34:55 [16:34:55.378] WARN: test Private peers not initialized, returning false 16:34:55 [16:34:55.476] WARN: test Trusted peers not initialized, returning false 16:34:55 [16:34:55.476] WARN: test Private peers not initialized, returning false 16:34:55 [16:34:55.477] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 16:34:55 [16:34:55.724] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:34:55 [16:34:55.826] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:34:56 [16:34:56.052] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:34:56 [16:34:56.158] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:34:56 [16:34:56.279] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:34:56 [16:34:56.381] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:34:56 [16:34:56.524] WARN: test Trusted peers not initialized, returning false 16:34:56 [16:34:56.524] WARN: test Private peers not initialized, returning false 16:34:56 [16:34:56.525] WARN: test Trusted peers not initialized, returning false 16:34:56 [16:34:56.525] WARN: test Private peers not initialized, returning false 16:34:56 [16:34:56.525] WARN: test Trusted peers not initialized, returning false 16:34:56 [16:34:56.525] WARN: test Private peers not initialized, returning false 16:34:56 [16:34:56.640] WARN: test Trusted peers not initialized, returning false 16:34:56 [16:34:56.640] WARN: test Private peers not initialized, returning false 16:34:56 [16:34:56.640] WARN: test Trusted peers not initialized, returning false 16:34:56 [16:34:56.641] WARN: test Private peers not initialized, returning false 16:34:56 [16:34:56.641] WARN: test Trusted peers not initialized, returning false 16:34:56 [16:34:56.641] WARN: test Private peers not initialized, returning false 16:34:56 [16:34:56.641] WARN: test Trusted peers not initialized, returning false 16:34:56 [16:34:56.642] WARN: test Private peers not initialized, returning false 16:34:56 [16:34:56.642] WARN: test Trusted peers not initialized, returning false 16:34:56 [16:34:56.642] WARN: test Private peers not initialized, returning false 16:34:56 [16:34:56.750] WARN: test Trusted peers not initialized, returning false 16:34:56 [16:34:56.751] WARN: test Private peers not initialized, returning false 16:34:56 [16:34:56.970] WARN: test Private peers not initialized, returning false 16:34:57 [16:34:57.077] WARN: test Private peers not initialized, returning false 16:34:57 [16:34:57.859] WARN: test Private peers not initialized, returning false 16:34:57 [16:34:57.860] WARN: test Private peers not initialized, returning false 16:34:58 [16:34:58.497] WARN: test Trusted peers not initialized, returning false 16:34:58 [16:34:58.508] WARN: test Private peers not initialized, returning false 16:34:58 [16:34:58.508] WARN: test Private peers not initialized, returning false 16:34:58 [16:34:58.508] WARN: test Private peers not initialized, returning false 16:34:59 [16:34:59.319] WARN: test Private peers not initialized, returning false 16:34:59 [16:34:59.446] WARN: test Trusted peers not initialized, returning false 16:34:59 [16:34:59.446] WARN: test Private peers not initialized, returning false 16:34:59 PASS src/services/peer-manager/peer_manager.test.ts (7.185 s) 16:34:59 PeerManager 16:34:59 peer management 16:34:59 should return connected peers (59 ms) 16:34:59 should return peers in dial queue (7 ms) 16:34:59 should penalize peers (4 ms) 16:34:59 should handle heartbeat (9 ms) 16:34:59 should send goodbye to peers on shutdown (9 ms) 16:34:59 peer timeout functionality 16:34:59 should attempt to dial a discovered peer (83 ms) 16:34:59 should report peer count metric (108 ms) 16:34:59 should retry failed dials up to MAX_DIAL_ATTEMPTS (347 ms) 16:34:59 should timeout a peer after max dial attempts and ignore it for the timeout period (237 ms) 16:34:59 should cleanup expired timeouts during heartbeat (218 ms) 16:34:59 should include timed out peers in getPeers when includePending is true (9 ms) 16:34:59 should handle multiple peer discoveries and timeouts (124 ms) 16:34:59 should disconnect from unhealthy peers during heartbeat (109 ms) 16:34:59 should disconnect from low scoring peers above the max peer limit during heartbeat (118 ms) 16:34:59 should disconnect from duplicate peers during heartbeat (106 ms) 16:34:59 should properly clean up peers on stop (7 ms) 16:34:59 trusted peers 16:34:59 should not prune trusted peers (104 ms) 16:34:59 should prune untrusted peers and not trusted peers (107 ms) 16:34:59 should not disconnect trusted peers with low scores (106 ms) 16:34:59 should not remove trusted peers from the cache during pruning (682 ms) 16:34:59 should not remove trusted peers from the cache even when all peers are trusted (632 ms) 16:34:59 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 16:34:59 should not disconnect trusted peers when max peer count is reached (113 ms) 16:34:59 private peers 16:34:59 should not prune private peers with low scores (106 ms) 16:34:59 should not remove private peers from the cache during pruning (595 ms) 16:34:59 should return false from isPrivatePeer when private peers are not initialized (5 ms) 16:34:59 should initialize private peers from config (13 ms) 16:34:59 should handle a peer being both trusted and private (106 ms) 16:34:59 goodbye metrics 16:34:59 should record metrics when receiving goodbye messages (3 ms) 16:34:59 should record metrics when sending goodbye messages (4 ms) 16:34:59 16:34:59 Test Suites: 1 passed, 1 total 16:34:59 Tests: 30 passed, 30 total 16:34:59 Snapshots: 0 total 16:34:59 Time: 7.288 s 16:34:59 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 16:34:59 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?