Parent Log: http://ci.aztec-labs.com/56b1dc937ab080fe Command: fb52012d377692f9: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/1e338a3fb2e2077f1feaee8b86c42644ff8a5352 Env: REF_NAME=gh-readonly-queue/next/pr-15075-fa4d5ef48c8de52059b5658bbd42e4514386f7db CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 16:41:50 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15075_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:41:50 +++ id -u 16:41:50 +++ id -g 16:41: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:41:51 + cid=b8ee9081f57795c53afa1f2072e0bbcc2cac0787ce2b1e9f8ff461232897893b 16:41:51 + set +x 16:41:54 [16:41:54.966] WARN: test Trusted peers not initialized, returning false 16:41:54 [16:41:54.972] WARN: test Private peers not initialized, returning false 16:41:54 [16:41:54.972] WARN: test Trusted peers not initialized, returning false 16:41:54 [16:41:54.973] WARN: test Private peers not initialized, returning false 16:41:55 [16:41:55.048] WARN: test Trusted peers not initialized, returning false 16:41:55 [16:41:55.049] WARN: test Private peers not initialized, returning false 16:41:55 [16:41:55.050] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 16:41:55 [16:41:55.281] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:41:55 [16:41:55.383] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:41:55 [16:41:55.599] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:41:55 [16:41:55.701] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:41:55 [16:41:55.821] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:41:55 [16:41:55.924] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 16:41:56 [16:41:56.071] WARN: test Trusted peers not initialized, returning false 16:41:56 [16:41:56.071] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.071] WARN: test Trusted peers not initialized, returning false 16:41:56 [16:41:56.072] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.072] WARN: test Trusted peers not initialized, returning false 16:41:56 [16:41:56.072] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.187] WARN: test Trusted peers not initialized, returning false 16:41:56 [16:41:56.187] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.188] WARN: test Trusted peers not initialized, returning false 16:41:56 [16:41:56.188] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.188] WARN: test Trusted peers not initialized, returning false 16:41:56 [16:41:56.188] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.188] WARN: test Trusted peers not initialized, returning false 16:41:56 [16:41:56.189] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.189] WARN: test Trusted peers not initialized, returning false 16:41:56 [16:41:56.189] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.296] WARN: test Trusted peers not initialized, returning false 16:41:56 [16:41:56.297] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.521] WARN: test Private peers not initialized, returning false 16:41:56 [16:41:56.634] WARN: test Private peers not initialized, returning false 16:41:57 [16:41:57.443] WARN: test Private peers not initialized, returning false 16:41:57 [16:41:57.444] WARN: test Private peers not initialized, returning false 16:41:58 [16:41:58.082] WARN: test Trusted peers not initialized, returning false 16:41:58 [16:41:58.092] WARN: test Private peers not initialized, returning false 16:41:58 [16:41:58.092] WARN: test Private peers not initialized, returning false 16:41:58 [16:41:58.093] WARN: test Private peers not initialized, returning false 16:41:58 [16:41:58.907] WARN: test Private peers not initialized, returning false 16:41:59 [16:41:59.032] WARN: test Trusted peers not initialized, returning false 16:41:59 [16:41:59.032] WARN: test Private peers not initialized, returning false 16:41:59 PASS src/services/peer-manager/peer_manager.test.ts (6.783 s) 16:41:59 PeerManager 16:41:59 peer management 16:41:59 should return connected peers (45 ms) 16:41:59 should return peers in dial queue (5 ms) 16:41:59 should penalize peers (3 ms) 16:41:59 should handle heartbeat (9 ms) 16:41:59 should send goodbye to peers on shutdown (6 ms) 16:41:59 peer timeout functionality 16:41:59 should attempt to dial a discovered peer (64 ms) 16:41:59 should report peer count metric (107 ms) 16:41:59 should retry failed dials up to MAX_DIAL_ATTEMPTS (331 ms) 16:41:59 should timeout a peer after max dial attempts and ignore it for the timeout period (224 ms) 16:41:59 should cleanup expired timeouts during heartbeat (220 ms) 16:41:59 should include timed out peers in getPeers when includePending is true (14 ms) 16:41:59 should handle multiple peer discoveries and timeouts (119 ms) 16:41:59 should disconnect from unhealthy peers during heartbeat (111 ms) 16:41:59 should disconnect from low scoring peers above the max peer limit during heartbeat (117 ms) 16:41:59 should disconnect from duplicate peers during heartbeat (107 ms) 16:41:59 should properly clean up peers on stop (7 ms) 16:41:59 trusted peers 16:41:59 should not prune trusted peers (106 ms) 16:41:59 should prune untrusted peers and not trusted peers (113 ms) 16:41:59 should not disconnect trusted peers with low scores (110 ms) 16:41:59 should not remove trusted peers from the cache during pruning (709 ms) 16:41:59 should not remove trusted peers from the cache even when all peers are trusted (634 ms) 16:41:59 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 16:41:59 should not disconnect trusted peers when max peer count is reached (111 ms) 16:41:59 private peers 16:41:59 should not prune private peers with low scores (105 ms) 16:41:59 should not remove private peers from the cache during pruning (604 ms) 16:41:59 should return false from isPrivatePeer when private peers are not initialized (3 ms) 16:41:59 should initialize private peers from config (13 ms) 16:41:59 should handle a peer being both trusted and private (103 ms) 16:41:59 goodbye metrics 16:41:59 should record metrics when receiving goodbye messages (4 ms) 16:41:59 should record metrics when sending goodbye messages (4 ms) 16:41:59 16:41:59 Test Suites: 1 passed, 1 total 16:41:59 Tests: 30 passed, 30 total 16:41:59 Snapshots: 0 total 16:41:59 Time: 6.885 s 16:41:59 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 16:41:59 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?