From dd2d45542a82fb5216f083db0307b8b7364723e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Sun, 6 Sep 2026 13:28:26 +0200 Subject: [PATCH] test(android-e2e): read the logcat tail for rotation evidence The first CI failure with the evidence hook (PR #2356, run 34029660070) lost its logcat section: dumping the emulator's whole 2MB buffer took longer than the 5s per-probe bound on the loaded host. The probe now reads the last 4000 lines, which holds the rotation decisions of the last minutes and returns well inside the bound. --- test/integration/android-emulator-e2e/live-harness.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/integration/android-emulator-e2e/live-harness.ts b/test/integration/android-emulator-e2e/live-harness.ts index 93ad8cad96..3f944c9637 100644 --- a/test/integration/android-emulator-e2e/live-harness.ts +++ b/test/integration/android-emulator-e2e/live-harness.ts @@ -42,6 +42,8 @@ export function createContext(): LiveContext { const execFileAsync = promisify(execFile); const ROTATION_PROBE_TIMEOUT_MS = 5_000; +/** Lines read back from logcat; the rotation decisions of the last few minutes fit comfortably. */ +const ROTATION_LOG_TAIL = 4_000; const ROTATION_LOG_LINES = 60; const ROTATION_LOG_LINE_LENGTH = 240; @@ -56,7 +58,9 @@ async function readAndroidRotationEvidence(context: LiveContext): Promise