Skip to content

Safer setProcessStateSummary in ExitInfo plugin#2197

Merged
lemnik merged 1 commit intonextfrom
PLAT-14342/safe-setProcessStateSummary
Jun 11, 2025
Merged

Safer setProcessStateSummary in ExitInfo plugin#2197
lemnik merged 1 commit intonextfrom
PLAT-14342/safe-setProcessStateSummary

Conversation

@lemnik
Copy link
Copy Markdown
Contributor

@lemnik lemnik commented Jun 5, 2025

Goal

Avoid timeouts and crashes stemming from rate limiting or slow IPC calls when using setProcessStateSummary in the ExitInfo Plugin.

Changes

The SessionCallback now uses the BackgroundTaskService to enqueue the call to setProcessStateSummary and further swallows any exceptions raised by the call.

Testing

Relied on existing tests.

@lemnik lemnik requested a review from tomlongridge June 5, 2025 09:00
@lemnik lemnik requested a review from YYChen01988 as a code owner June 5, 2025 09:00
…a worker thread and swallow any exceptions
@lemnik lemnik force-pushed the PLAT-14342/safe-setProcessStateSummary branch from 49f2b36 to 9260f09 Compare June 5, 2025 09:02
@bugsnagbot
Copy link
Copy Markdown
Collaborator

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1832.14 1634.56
arm64_v8a 639.23 438.53
armeabi_v7a 577.8 377.1
x86 717.04 516.34
x86_64 684.28 483.58

Generated by 🚫 Danger

@lemnik lemnik changed the title Safer setProcessStateSummary in ExitINfo plugin Safer setProcessStateSummary in ExitInfo plugin Jun 9, 2025
Copy link
Copy Markdown
Contributor

@YYChen01988 YYChen01988 left a comment

Choose a reason for hiding this comment

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

LGTM

@lemnik lemnik merged commit fa94e0e into next Jun 11, 2025
35 checks passed
@lemnik lemnik deleted the PLAT-14342/safe-setProcessStateSummary branch June 11, 2025 09:59
This was referenced Jul 2, 2025
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.

3 participants