Parent Log: http://ci.aztec-labs.com/dd06888a1deddcbe Command: 48483af633053ffe: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/3b44f825dcd3249b2c8a1105905fa3394aa7213d Env: REF_NAME=gh-readonly-queue/next/pr-15041-eeab628a4e44477cb6796c5a461ee0c0bb332d75 CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 17:46:05 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15041_amd64_x2-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 17:46:05 +++ id -u 17:46:05 +++ id -g 17:46:05 ++ 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'\''' 17:46:06 + cid=c1d435a99bf15352284e602f2c35033feeb92ada7b0d4c50526d45223ea68ff3 17:46:06 + set +x 17:46:10 [17:46:10.227] WARN: test Trusted peers not initialized, returning false 17:46:10 [17:46:10.232] WARN: test Private peers not initialized, returning false 17:46:10 [17:46:10.233] WARN: test Trusted peers not initialized, returning false 17:46:10 [17:46:10.233] WARN: test Private peers not initialized, returning false 17:46:10 [17:46:10.310] WARN: test Trusted peers not initialized, returning false 17:46:10 [17:46:10.311] WARN: test Private peers not initialized, returning false 17:46:10 [17:46:10.312] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 17:46:10 [17:46:10.551] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:46:10 [17:46:10.652] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:46:10 [17:46:10.868] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:46:10 [17:46:10.968] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:46:11 [17:46:11.089] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:46:11 [17:46:11.192] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 17:46:11 [17:46:11.338] WARN: test Trusted peers not initialized, returning false 17:46:11 [17:46:11.339] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.339] WARN: test Trusted peers not initialized, returning false 17:46:11 [17:46:11.339] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.339] WARN: test Trusted peers not initialized, returning false 17:46:11 [17:46:11.339] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.456] WARN: test Trusted peers not initialized, returning false 17:46:11 [17:46:11.457] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.457] WARN: test Trusted peers not initialized, returning false 17:46:11 [17:46:11.458] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.458] WARN: test Trusted peers not initialized, returning false 17:46:11 [17:46:11.458] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.459] WARN: test Trusted peers not initialized, returning false 17:46:11 [17:46:11.459] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.459] WARN: test Trusted peers not initialized, returning false 17:46:11 [17:46:11.460] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.565] WARN: test Trusted peers not initialized, returning false 17:46:11 [17:46:11.566] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.787] WARN: test Private peers not initialized, returning false 17:46:11 [17:46:11.899] WARN: test Private peers not initialized, returning false 17:46:12 [17:46:12.719] WARN: test Private peers not initialized, returning false 17:46:12 [17:46:12.720] WARN: test Private peers not initialized, returning false 17:46:13 [17:46:13.370] WARN: test Trusted peers not initialized, returning false 17:46:13 [17:46:13.382] WARN: test Private peers not initialized, returning false 17:46:13 [17:46:13.382] WARN: test Private peers not initialized, returning false 17:46:13 [17:46:13.383] WARN: test Private peers not initialized, returning false 17:46:14 [17:46:14.213] WARN: test Private peers not initialized, returning false 17:46:14 [17:46:14.337] WARN: test Trusted peers not initialized, returning false 17:46:14 [17:46:14.337] WARN: test Private peers not initialized, returning false 17:46:14 PASS src/services/peer-manager/peer_manager.test.ts (7.121 s) 17:46:14 PeerManager 17:46:14 peer management 17:46:14 should return connected peers (57 ms) 17:46:14 should return peers in dial queue (6 ms) 17:46:14 should penalize peers (4 ms) 17:46:14 should handle heartbeat (9 ms) 17:46:14 should send goodbye to peers on shutdown (7 ms) 17:46:14 peer timeout functionality 17:46:14 should attempt to dial a discovered peer (64 ms) 17:46:14 should report peer count metric (109 ms) 17:46:14 should retry failed dials up to MAX_DIAL_ATTEMPTS (338 ms) 17:46:14 should timeout a peer after max dial attempts and ignore it for the timeout period (221 ms) 17:46:14 should cleanup expired timeouts during heartbeat (218 ms) 17:46:14 should include timed out peers in getPeers when includePending is true (10 ms) 17:46:14 should handle multiple peer discoveries and timeouts (124 ms) 17:46:14 should disconnect from unhealthy peers during heartbeat (112 ms) 17:46:14 should disconnect from low scoring peers above the max peer limit during heartbeat (118 ms) 17:46:14 should disconnect from duplicate peers during heartbeat (105 ms) 17:46:14 should properly clean up peers on stop (7 ms) 17:46:14 trusted peers 17:46:14 should not prune trusted peers (104 ms) 17:46:14 should prune untrusted peers and not trusted peers (112 ms) 17:46:14 should not disconnect trusted peers with low scores (116 ms) 17:46:14 should not remove trusted peers from the cache during pruning (711 ms) 17:46:14 should not remove trusted peers from the cache even when all peers are trusted (644 ms) 17:46:14 should return false from isTrustedPeer when trusted peers are not initialized (4 ms) 17:46:14 should not disconnect trusted peers when max peer count is reached (114 ms) 17:46:14 private peers 17:46:14 should not prune private peers with low scores (106 ms) 17:46:14 should not remove private peers from the cache during pruning (618 ms) 17:46:14 should return false from isPrivatePeer when private peers are not initialized (3 ms) 17:46:14 should initialize private peers from config (13 ms) 17:46:14 should handle a peer being both trusted and private (103 ms) 17:46:14 goodbye metrics 17:46:14 should record metrics when receiving goodbye messages (3 ms) 17:46:14 should record metrics when sending goodbye messages (3 ms) 17:46:14 17:46:14 Test Suites: 1 passed, 1 total 17:46:14 Tests: 30 passed, 30 total 17:46:14 Snapshots: 0 total 17:46:14 Time: 7.231 s 17:46:14 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 17:46:14 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?