Skip to content

fix: synchronously kill crashpad_handler after device tests#58

Merged
MaxMichel2 merged 2 commits into
mainfrom
fix/device-test-crashpad-stall
Jul 20, 2026
Merged

fix: synchronously kill crashpad_handler after device tests#58
MaxMichel2 merged 2 commits into
mainfrom
fix/device-test-crashpad-stall

Conversation

@MaxMichel2

Copy link
Copy Markdown
Collaborator

Summary

  • Replace the deferred background trap with a synchronous pkill -9 crashpad_handler that runs immediately after Gradle exits
  • The old approach backgrounded a killer with a 30s delay, which raced with the action's cleanup and sometimes lost
  • Also fixes the PR title/commit message conventions in docs/contributing/pull-requests.md (placeholder content was inaccurate)

Root cause

crashpad_handler (Chromium's crash reporter, shipped with WebView) keeps the emulator process alive after tests complete. The android-emulator-runner action's cleanup waits for the emulator to exit — blocking forever.

Test plan

  • Observe the API 29 device-tests job: after Gradle finishes, the step should exit cleanly instead of hanging
  • If the job stalls during boot (emulator never starts), that's the unrelated upstream runner image issue android-emulator-runner#478 — out of scope

🤖 Generated with Claude Code

MaxMichel2 and others added 2 commits July 20, 2026 18:46
Replace the deferred background trap with a synchronous pkill after
Gradle exits, so crashpad_handler is killed immediately instead of
racing with the action's cleanup step.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…ing docs

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MaxMichel2 MaxMichel2 self-assigned this Jul 20, 2026
@MaxMichel2 MaxMichel2 added the bug Something isn't working label Jul 20, 2026
@MaxMichel2 MaxMichel2 added this to the 0.2.0 milestone Jul 20, 2026
@MaxMichel2
MaxMichel2 merged commit 327f5cb into main Jul 20, 2026
12 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