test(e2e): record full Android logcat on E2E failure - #473
Open
KisaneNeko wants to merge 1 commit into
Open
KisaneNeko wants to merge 1 commit into
KisaneNeko wants to merge 1 commit into
Conversation
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
marked this pull request as ready for review
September 24, 2026 09:17
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.