Skip to content

test(e2e): record full Android logcat on E2E failure - #473

Open
KisaneNeko wants to merge 1 commit into
callstack:mainfrom
KisaneNeko:fix/android-e2e-full-logcat
Open

KisaneNeko wants to merge 1 commit into
callstack:mainfrom
KisaneNeko:fix/android-e2e-full-logcat

Conversation

@KisaneNeko

Copy link
Copy Markdown
Contributor

Follow-up to #466. The logcat Detox saves was cut off right before the failure and only included the app's own process, so system logs like ANRs never showed up.

Now we also record the full logcat from the runner into e2e-artifacts/logcat-full.txt. Tested with a forced failure on both Expo flavours: the log goes past the failure and includes system logs.

Detox's logcat artifact is filtered to the app pid and written on-device
with `logcat -f`, which is killed before it flushes its 4 KiB buffer. In
CI both Expo flavours lost the last 5-24 s before the failure, and the
filter drops system_server output, so an ANR could never show up.

Run the Detox command through a wrapper that streams the unfiltered
main/system/crash buffers to e2e-artifacts/logcat-full.txt from the host,
so it is uploaded with the other failure artifacts.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@KisaneNeko
KisaneNeko marked this pull request as ready for review September 24, 2026 09:17

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant