Skip to content

feat: native signal handler strategy on Android#4676

Draft
jpnurmi wants to merge 3 commits intomainfrom
feat/android-signal-handler-strategy
Draft

feat: native signal handler strategy on Android#4676
jpnurmi wants to merge 3 commits intomainfrom
feat/android-signal-handler-strategy

Conversation

@jpnurmi
Copy link
Collaborator

@jpnurmi jpnurmi commented Oct 27, 2025

Opt-in, Android-only solution for:

According to our newly introduced Android integration tests, getsentry/sentry-native#1392 works on android-arm64 and android-x64 in both Release and Debug configurations, but we'd like to validate the fix further in real-world conditions. To that end, we're making it opt-in initially so customers can try it on more devices, platforms, and configurations before considering it as the new default.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 27, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against e126a63

@codecov
Copy link

codecov bot commented Oct 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.36%. Comparing base (863ee6a) to head (e126a63).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4676      +/-   ##
==========================================
+ Coverage   73.85%   76.36%   +2.51%     
==========================================
  Files         483      435      -48     
  Lines       17578    15952    -1626     
  Branches     3464     3189     -275     
==========================================
- Hits        12982    12182     -800     
+ Misses       3742     3018     -724     
+ Partials      854      752     -102     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jpnurmi
Copy link
Collaborator Author

jpnurmi commented Nov 4, 2025

@jamescrosswell This is marked as a draft because it's still waiting for dependencies, but we could already kick off the review process if you have time. :)

Do you have a preferred approach for exposing this as an opt-in API? The current proposal mirrors the sentry-native enum.

#if ANDROID
    options.Native.SignalHandlerStrategy = Sentry.Android.SignalHandlerStrategy.ChainAtStart;
#endif

With only two values, a simple boolean flag could also work for the time being, but I'm unsure if potential Android Tombstone support could change things in the future.

Base automatically changed from version6 to main November 14, 2025 02:30
@jpnurmi jpnurmi force-pushed the feat/android-signal-handler-strategy branch from af57caa to 4486918 Compare November 20, 2025 10:31
@jpnurmi jpnurmi force-pushed the feat/android-signal-handler-strategy branch from 4486918 to 7a489eb Compare January 2, 2026 08:02
@jpnurmi jpnurmi force-pushed the feat/android-signal-handler-strategy branch from 7a489eb to 543b3e3 Compare January 2, 2026 14:57
@jpnurmi
Copy link
Collaborator Author

jpnurmi commented Jan 26, 2026

Update: I'll get back to this after #4750 to make sure this works with .NET 10

@github-actions
Copy link
Contributor

github-actions bot commented Feb 7, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Dependencies ⬆️

Deps

  • chore(deps): update Native SDK to v0.12.5 by github-actions in #4892
  • chore(deps): update Native SDK to v0.12.4 by github-actions in #4875
  • build(deps): bump getsentry/github-workflows/sentry-cli/integration-test from 2.14.1 to 3.2.0 by Flash0ver in #4858
  • chore(deps): update Native SDK to v0.12.3 by github-actions in #4832
  • chore(deps): update Java SDK to v8.29.0 by github-actions in #4817

Test

  • chore(test): update PublicApiGenerator from 11.1.0 to 11.5.4 by Flash0ver in #4866
  • chore(test): update FluentAssertions from 6.12.0 to 7.2.0 by Flash0ver in #4864

Other

  • test(integration): prevent auto-relaunch on Android by jpnurmi in #4833
  • ci(release): Switch from action-prepare-release to Craft by BYK in #4835
  • chore(repo): Add Claude Code settings with basic permissions by philipphofmann in #4850
  • feat: native signal handler strategy on Android by jpnurmi in #4676
  • fix: Apply Enricher to User Feedback by bitsandfoxes in #4883
  • chore: update Roslynator.Analyzers from 4.9.0 to 4.15.0 by Flash0ver in #4878
  • chore: upgrade to C# 14.0 by Flash0ver in #4857
  • fix: Allow Sentry failures when SENTRY_ALLOW_FAILURE is set in the Sentry CLI by DanielMcAssey in #4852
  • chore: bump testing dependencies by Flash0ver in #4865
  • feat: Update error 413 handling by bitsandfoxes in #4863
  • fixed: Thread safety in AssemblyStoreReader when sending events on Android by jamescrosswell in #4814
  • ci: remove trailing slash from workflow references by copilot-swe-agent in #4837
  • feat: Added Main to SentryThread by bitsandfoxes in #4807
  • build: fix Build of Compiler-Extension by Flash0ver in #4804

🤖 This preview updates automatically when you update the PR.

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