Parent Log: http://ci.aztec-labs.com/9b7174caf3ef97da Command: 816a8a0e28c14627: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/7d223783d91db15002a09abc1b52d1455eb3e3da Env: REF_NAME=gh-readonly-queue/next/pr-14161-97080f178c0a3e244c64b3c17bf255bed63fc3cf CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 10:40:21 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-14161_amd64_x3-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 10:40:21 +++ id -u 10:40:21 +++ id -g 10:40:21 ++ 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'\''' 10:40:21 + cid=bc9bb8a6445a9824cc93f60f724ab3451b24be0ee37af0f5e1c7d5c838e25125 10:40:21 + set +x 10:40:25 [10:40:25.624] WARN: test Trusted peers not initialized, returning false 10:40:25 [10:40:25.629] WARN: test Private peers not initialized, returning false 10:40:25 [10:40:25.630] WARN: test Trusted peers not initialized, returning false 10:40:25 [10:40:25.631] WARN: test Private peers not initialized, returning false 10:40:25 [10:40:25.719] WARN: test Trusted peers not initialized, returning false 10:40:25 [10:40:25.720] WARN: test Private peers not initialized, returning false 10:40:25 [10:40:25.720] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 10:40:25 [10:40:25.950] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:40:26 [10:40:26.052] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:40:26 [10:40:26.285] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:40:26 [10:40:26.386] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:40:26 [10:40:26.508] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:40:26 [10:40:26.609] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 10:40:26 [10:40:26.757] WARN: test Trusted peers not initialized, returning false 10:40:26 [10:40:26.757] WARN: test Private peers not initialized, returning false 10:40:26 [10:40:26.758] WARN: test Trusted peers not initialized, returning false 10:40:26 [10:40:26.758] WARN: test Private peers not initialized, returning false 10:40:26 [10:40:26.758] WARN: test Trusted peers not initialized, returning false 10:40:26 [10:40:26.759] WARN: test Private peers not initialized, returning false 10:40:26 [10:40:26.883] WARN: test Trusted peers not initialized, returning false 10:40:26 [10:40:26.883] WARN: test Private peers not initialized, returning false 10:40:26 [10:40:26.884] WARN: test Trusted peers not initialized, returning false 10:40:26 [10:40:26.884] WARN: test Private peers not initialized, returning false 10:40:26 [10:40:26.885] WARN: test Trusted peers not initialized, returning false 10:40:26 [10:40:26.886] WARN: test Private peers not initialized, returning false 10:40:26 [10:40:26.886] WARN: test Trusted peers not initialized, returning false 10:40:26 [10:40:26.887] WARN: test Private peers not initialized, returning false 10:40:26 [10:40:26.887] WARN: test Trusted peers not initialized, returning false 10:40:26 [10:40:26.888] WARN: test Private peers not initialized, returning false 10:40:26 [10:40:26.995] WARN: test Trusted peers not initialized, returning false 10:40:26 [10:40:26.996] WARN: test Private peers not initialized, returning false 10:40:27 [10:40:27.209] WARN: test Private peers not initialized, returning false 10:40:27 [10:40:27.317] WARN: test Private peers not initialized, returning false 10:40:27 [10:40:27.918] WARN: test Private peers not initialized, returning false 10:40:27 [10:40:27.919] WARN: test Private peers not initialized, returning false 10:40:28 [10:40:28.597] WARN: test Trusted peers not initialized, returning false 10:40:28 [10:40:28.608] WARN: test Private peers not initialized, returning false 10:40:28 [10:40:28.608] WARN: test Private peers not initialized, returning false 10:40:28 [10:40:28.609] WARN: test Private peers not initialized, returning false 10:40:29 [10:40:29.344] WARN: test Private peers not initialized, returning false 10:40:29 [10:40:29.464] WARN: test Trusted peers not initialized, returning false 10:40:29 [10:40:29.464] WARN: test Private peers not initialized, returning false 10:40:29 PASS src/services/peer-manager/peer_manager.test.ts (6.45 s) 10:40:29 PeerManager 10:40:29 peer management 10:40:29 should return connected peers (55 ms) 10:40:29 should return peers in dial queue (4 ms) 10:40:29 should penalize peers (2 ms) 10:40:29 should handle heartbeat (9 ms) 10:40:29 should send goodbye to peers on shutdown (8 ms) 10:40:29 peer timeout functionality 10:40:29 should attempt to dial a discovered peer (74 ms) 10:40:29 should report peer count metric (106 ms) 10:40:29 should retry failed dials up to MAX_DIAL_ATTEMPTS (334 ms) 10:40:29 should timeout a peer after max dial attempts and ignore it for the timeout period (239 ms) 10:40:29 should cleanup expired timeouts during heartbeat (217 ms) 10:40:29 should include timed out peers in getPeers when includePending is true (12 ms) 10:40:29 should handle multiple peer discoveries and timeouts (122 ms) 10:40:29 should disconnect from unhealthy peers during heartbeat (116 ms) 10:40:29 should disconnect from low scoring peers above the max peer limit during heartbeat (124 ms) 10:40:29 should disconnect from duplicate peers during heartbeat (106 ms) 10:40:29 should properly clean up peers on stop (4 ms) 10:40:29 trusted peers 10:40:29 should not prune trusted peers (103 ms) 10:40:29 should prune untrusted peers and not trusted peers (107 ms) 10:40:29 should not disconnect trusted peers with low scores (108 ms) 10:40:29 should not remove trusted peers from the cache during pruning (499 ms) 10:40:29 should not remove trusted peers from the cache even when all peers are trusted (674 ms) 10:40:29 should return false from isTrustedPeer when trusted peers are not initialized (3 ms) 10:40:29 should not disconnect trusted peers when max peer count is reached (113 ms) 10:40:29 private peers 10:40:29 should not prune private peers with low scores (105 ms) 10:40:29 should not remove private peers from the cache during pruning (525 ms) 10:40:29 should return false from isPrivatePeer when private peers are not initialized (2 ms) 10:40:29 should initialize private peers from config (10 ms) 10:40:29 should handle a peer being both trusted and private (103 ms) 10:40:29 goodbye metrics 10:40:29 should record metrics when receiving goodbye messages (3 ms) 10:40:29 should record metrics when sending goodbye messages (3 ms) 10:40:29 10:40:29 Test Suites: 1 passed, 1 total 10:40:29 Tests: 30 passed, 30 total 10:40:29 Snapshots: 0 total 10:40:29 Time: 6.55 s 10:40:29 Ran all test suites matching /p2p\/src\/services\/peer-manager\/peer_manager.test.ts/i. 10:40:29 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?