Skip to content

fix(android): scope logcat crash detection to app process only#62

Merged
abueide merged 1 commit intomainfrom
fix/android-e2e-log-filtering
May 2, 2026
Merged

fix(android): scope logcat crash detection to app process only#62
abueide merged 1 commit intomainfrom
fix/android-e2e-log-filtering

Conversation

@abueide
Copy link
Copy Markdown
Contributor

@abueide abueide commented May 1, 2026

Summary

Same fix as #59 (iOS), but for Android. Scopes logcat crash pattern scanning to the app's PID so system app crashes don't cause false E2E failures.

Changes

  • Extract app-specific logs via adb logcat --pid using ANDROID_APP_ID before scanning for crash patterns
  • Falls back to grep -F package name filtering if PID lookup fails (app already exited)
  • Full logcat still saved for offline analysis
  • Applied to all 3 Android E2E test suites: test-suite.yaml, test-suite-android-e2e.yaml, test-suite-all-e2e.yaml

Why

The verify-app-running steps were scanning full device logcat for FATAL EXCEPTION|AndroidRuntime.*FATAL. Any system app crash on the emulator would trigger a false failure — the same class of bug that hit the iOS suites in #59 with Apple News.


🤖 Generated with Claude Code

The verify-app-running steps were dumping full device logcat then
scanning for FATAL EXCEPTION patterns across all processes. This could
cause false failures if a system app crashed on the emulator. Now
extracts app-specific logs via adb logcat --pid before scanning.

Fixes: test-suite.yaml, test-suite-android-e2e.yaml, test-suite-all-e2e.yaml

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@abueide abueide added the bug Something isn't working label May 1, 2026
@abueide abueide marked this pull request as ready for review May 2, 2026 00:10
@abueide abueide merged commit 049be1c into main May 2, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant