Skip to content

chore: capture adb logcat during e2e test retries#7341

Merged
janicduplessis merged 1 commit intodevelopfrom
@janic/e2e-logcat-capture
Apr 14, 2026
Merged

chore: capture adb logcat during e2e test retries#7341
janicduplessis merged 1 commit intodevelopfrom
@janic/e2e-logcat-capture

Conversation

@janicduplessis
Copy link
Copy Markdown
Contributor

@janicduplessis janicduplessis commented Apr 10, 2026

Fixes APP-3626

What changed (plus any additional context for devs)

Extracted from the new arch migration PR #6924.

Adds adb logcat capture to the e2e test runner alongside screen recordings. When an Android e2e test fails and retries, device logs are now captured to logcat.txt in the test artifacts directory. This makes it much easier to debug Android test failures, especially during the new arch migration where native crashes and warnings are common.

The logcat capture starts/stops alongside screen recordings (on retry after first failure) and is also cleaned up in the emergency cleanup handler.

What to test

  • Check logcat logs appear if a test fails

Capture device logs via adb logcat alongside screen recordings when
e2e tests fail and retry. Logs are saved as logcat.txt in the test
artifacts directory for easier debugging.
@linear
Copy link
Copy Markdown

linear Bot commented Apr 10, 2026

@janicduplessis janicduplessis requested a review from olerass April 10, 2026 20:18
@janicduplessis janicduplessis enabled auto-merge (squash) April 10, 2026 20:18
@github-actions
Copy link
Copy Markdown

πŸ§ͺ Flashlight Performance Report (AWS Device Farm)

πŸ”€ Commit: 81a1d98

πŸ“Ž View Artifacts

Metric Current Ξ” vs Baseline
Time to Interactive (TTI) 5453 ms –
Average FPS 56.31 –
Average RAM 397.7 MB –

@github-actions
Copy link
Copy Markdown

Launch in simulator or device for 81a1d98

Copy link
Copy Markdown
Contributor

@olerass olerass left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea πŸ‘

@janicduplessis janicduplessis merged commit fc5e118 into develop Apr 14, 2026
34 of 38 checks passed
@janicduplessis janicduplessis deleted the @janic/e2e-logcat-capture branch April 14, 2026 12:56
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.

2 participants