FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix intermittent Raygun test crash caused by unobserved task exceptions by glennawatson · Pull Request #1510 · reactiveui/splat · GitHub

Fix intermittent Raygun test crash caused by unobserved task exceptions - #1510

Merged
glennawatson merged 5 commits into
mainfrom
fix/raygun-unobserved-task-exceptions
Feb 15, 2026
Merged

Fix intermittent Raygun test crash caused by unobserved task exceptions#1510
glennawatson merged 5 commits into
mainfrom
fix/raygun-unobserved-task-exceptions

Conversation

glennawatson commented Feb 15, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Summary

  • Fixed an issue where RaygunFeatureUsageTrackingSession could cause intermittent process crashes (exit code 7) during test runner shutdown
  • Background send tasks that fail (e.g. due to network errors or invalid API keys) are now properly observed instead of being silently discarded
  • Added comprehensive XML documentation to all members in the Raygun project and test project

What changed

RaygunClient.SendInBackground returns a Task that was previously discarded with _ =. If that task faulted, the exception went unobserved and could surface during garbage collection or process cleanup, crashing the host process.

Background send tasks are now wrapped with a synchronous fault-only ContinueWith continuation that marks exceptions as observed immediately on the completing thread, with no thread pool dependency.

Impact

This is a non-breaking internal change. No public API changes. Fire-and-forget sends continue to work exactly as before -- the only difference is that failures no longer risk crashing the host process.

…st crashes

Fire-and-forget tasks from RaygunClient.SendInBackground were being
discarded, causing unobserved task exceptions that could surface during
process cleanup and crash the test runner.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull request overview

Fixes an intermittent test-runner crash on macOS by ensuring Raygun “fire-and-forget” background send tasks don’t leave faulted Tasks unobserved during shutdown/GC.

Changes:

  • Replaced discarded SendInBackground(...) calls with a helper to observe completion.
  • Added an internal helper intended to await and suppress background send exceptions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…tion

Replace async void with a synchronous fault-only continuation so
exceptions are marked as observed immediately on the completing thread,
without relying on thread pool work items during shutdown.

Also add XML documentation to Raygun test project.
… comments

Add XML documentation to private fields and internal constructor.
Fix malformed summary on public constructor. Clarify ambiguous inline
comment about the Raygun forum thread with proper context.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

glennawatson changed the title Fix intermittent Raygun test crash on macOS Fix intermittent Raygun test crash caused by unobserved task exceptions Feb 15, 2026

codecov Bot commented Feb 15, 2026
edited
Loading

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@f7656f6). Learn more about missing BASE report.
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../Splat.Raygun/RaygunFeatureUsageTrackingSession.cs 71.42% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1510   +/-   ##
=======================================
  Coverage        ?   79.58%           
=======================================
  Files           ?      116           
  Lines           ?     7170           
  Branches        ?     1132           
=======================================
  Hits            ?     5706           
  Misses          ?     1159           
  Partials        ?      305           

☔ 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.

glennawatson enabled auto-merge (squash) February 15, 2026 03:53
glennawatson merged commit b3c95f8 into main Feb 15, 2026
4 checks passed
glennawatson deleted the fix/raygun-unobserved-task-exceptions branch February 15, 2026 04:02

github-actions Bot commented Mar 2, 2026

Copy link
Copy Markdown

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions Bot locked as resolved and limited conversation to collaborators Mar 2, 2026
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL