Parent Log: http://ci.aztec-labs.com/e75f6976c94a80cc Command: 4f771e618b80a60c: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/991b313d676f7cf820bb62a33e57cf5a4c8cf9cf Env: REF_NAME=gh-readonly-queue/next/pr-15075-af42fafbeb7d6a4440329d9e9e5b1df459fa2e2e CURRENT_VERSION=0.87.6 CI_FULL=1 Date: Mon Jun 16 15:56:10 UTC 2025 System: ARCH=amd64 CPUS=128 MEM=493Gi HOSTNAME=pr-15075_amd64_x4-full Resources: CPU_LIST=0-127 CPUS=2 MEM=8g TIMEOUT=600s History: http://ci.aztec-labs.com/list/history_75f9628ae95d7a8b_next 15:56:10 +++ id -u 15:56:10 +++ id -g 15:56:10 ++ 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'\''' 15:56:11 + cid=05f9720fc9093bbcd5a2e8a595422af439cf1974b38635782046b390c98001c9 15:56:11 + set +x 15:56:15 [15:56:15.295] WARN: test Trusted peers not initialized, returning false 15:56:15 [15:56:15.301] WARN: test Private peers not initialized, returning false 15:56:15 [15:56:15.302] WARN: test Trusted peers not initialized, returning false 15:56:15 [15:56:15.302] WARN: test Private peers not initialized, returning false 15:56:15 [15:56:15.378] WARN: test Trusted peers not initialized, returning false 15:56:15 [15:56:15.379] WARN: test Private peers not initialized, returning false 15:56:15 [15:56:15.379] INFO: test Connected to 1 peers {"discoveredConnections":1,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":0,"medianScore":0} 15:56:15 [15:56:15.618] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:56:15 [15:56:15.719] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:56:15 [15:56:15.938] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:56:16 [15:56:16.040] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:56:16 [15:56:16.163] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:56:16 [15:56:16.264] INFO: test Connected to 0 peers {"discoveredConnections":0,"protectedConnections":0,"maxPeerCount":3,"cachedPeers":1,"medianScore":0} 15:56:16 [15:56:16.405] WARN: test Trusted peers not initialized, returning false 15:56:16 [15:56:16.405] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.406] WARN: test Trusted peers not initialized, returning false 15:56:16 [15:56:16.406] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.406] WARN: test Trusted peers not initialized, returning false 15:56:16 [15:56:16.406] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.519] WARN: test Trusted peers not initialized, returning false 15:56:16 [15:56:16.519] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.520] WARN: test Trusted peers not initialized, returning false 15:56:16 [15:56:16.520] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.520] WARN: test Trusted peers not initialized, returning false 15:56:16 [15:56:16.521] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.521] WARN: test Trusted peers not initialized, returning false 15:56:16 [15:56:16.521] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.522] WARN: test Trusted peers not initialized, returning false 15:56:16 [15:56:16.522] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.629] WARN: test Trusted peers not initialized, returning false 15:56:16 [15:56:16.629] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.851] WARN: test Private peers not initialized, returning false 15:56:16 [15:56:16.959] WARN: test Private peers not initialized, returning false 15:56:17 [15:56:17.723] WARN: test Private peers not initialized, returning false 15:56:17 [15:56:17.723] WARN: test Private peers not initialized, returning false 15:56:18 [15:56:18.346] WARN: test Trusted peers not initialized, returning false 15:56:18 [15:56:18.353] WARN: test Private peers not initialized, returning false 15:56:18 [15:56:18.353] WARN: test Private peers not initialized, returning false 15:56:18 [15:56:18.353] WARN: test Private peers not initialized, returning false 15:56:19 [15:56:19.206] WARN: test Private peers not initialized, returning false 15:56:19 [15:56:19.326] WARN: test Trusted peers not initialized, returning false 15:56:19 [15:56:19.327] WARN: test Private peers not initialized, returning false 15:56:19 PASS src/services/peer-manager/peer_manager.test.ts (6.955 s) 15:56:19 PeerManager 15:56:19 peer management 15:56:19 should return connected peers (45 ms) 15:56:19 should return peers in dial queue (7 ms) 15:56:19 should penalize peers (5 ms) 15:56:19 should handle heartbeat (11 ms) 15:56:19 should send goodbye to peers on shutdown (9 ms) 15:56:19 peer timeout functionality 15:56:19 should attempt to dial a discovered peer (61 ms) 15:56:19 should report peer count metric (111 ms) 15:56:19 should retry failed dials up to MAX_DIAL_ATTEMPTS (338 ms) 15:56:19 should timeout a peer after max dial attempts and ignore it for the timeout period (225 ms) 15:56:19 should cleanup expired timeouts during heartbeat (219 ms) 15:56:19 should include timed out peers in getPeers when includePending is true (9 ms) 15:56:19 should handle multiple peer discoveries and timeouts (117 ms) 15:56:19 should disconnect from unhealthy peers during heartbeat (112 ms) 15:56:19 should disconnect from low scoring peers above the max peer limit during heartbeat (113 ms) 15:56:19 should disconnect from duplicate peers during heartbeat (107 ms) 15:56:19 should properly clean up peers on stop (7 ms) 15:56:19 trusted peers 15:56:19 should not prune trusted peers (104 ms) 15:56:19 should prune untrusted peers and not trusted peers (107 ms) 15:56:19 should not disconnect trusted peers with low scores (108 ms) 15:56:19 should not remove trusted peers from the cache during pruning (663 ms) 15:56:19 should not remove trusted peers from the cache even when all peers are trusted (620 ms) 15:56:19 should return false from isTrustedPeer when trusted peers are not initialized (2 ms) 15:56:19 should not disconnect trusted peers when max peer count is reached (109 ms) 15:56:19 private peers 15:56:19 should not prune private peers with low scores (105 ms) 15:56:19 should not remove private peers from the cache during pruning (642 ms) 15:56:19 should return false from isPrivatePeer when private peers are not initialized (3 ms) 15:56:19 should initialize private peers from config (8 ms) 15:56:19 should handle a peer being both trusted and private (103 ms) 15:56:19 goodbye metrics 15:56:19 should record metrics when receiving goodbye messages (4 ms) 15:56:19 should record metrics when sending goodbye messages (4 ms) 15:56:19 15:56:19 Test Suites: 1 passed, 1 total 15:56:19 Tests: 30 passed, 30 total 15:56:19 Snapshots: 0 total 15:56:19 Time: 7.089 s 15:56:19 Ran all test suites matching p2p/src/services/peer-manager/peer_manager.test.ts. 15:56:19 Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async operations that kept running after all tests finished?