Skip to content

test: sentry-cocoa #8921 cancel-crash fix (do not merge) - #5537

Draft
jamescrosswell wants to merge 3 commits into
mainfrom
test/cocoa-8921-cancel-fix
Draft

test: sentry-cocoa #8921 cancel-crash fix (do not merge)#5537
jamescrosswell wants to merge 3 commits into
mainfrom
test/cocoa-8921-cancel-fix

Conversation

@jamescrosswell

Copy link
Copy Markdown
Collaborator

Do not merge

modules/sentry-cocoa points at an unmerged branchgetsentry/sentry-cocoa#8921. This branch
exists only so CI produces a Sentry.Maui package containing that proposed fix, for the reporter of
#5519 to test against his own reproduction.

Context

#5519 is an EXC_BAD_ACCESS in -[NSURLSessionTask cancel] on iOS when native swizzling is enabled
and a retry policy disposes a 5xx response while the body is still streaming. I reduced it to a
minimal reproduction and filed it upstream as getsentry/sentry-cocoa#8917; #8921 is the proposed fix
(skip the private setCurrentRequest: when the task is already canceling or completed).

We could not verify the fix locally: the reproduction stopped firing on my machine, and the unfixed
control also came back 0/10, so the experiment has no discriminating power. The reporter reproduces
reliably on his own hardware, so the practical route is to hand him a build.

Building it here rather than using a prebuilt sentry-cocoa artefact, since our bindings build passes
its own parameters.

#skip-changelog

Points modules/sentry-cocoa at getsentry/sentry-cocoa#8921 so CI produces a
Sentry.Maui package containing the proposed fix for the NSURLSessionTask cancel
crash, for the reporter of #5519 to verify against his own reproduction.

Not for merge - the submodule points at an unmerged branch.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.71%. Comparing base (f2df15b) to head (fe6d83a).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5537      +/-   ##
==========================================
+ Coverage   74.67%   74.71%   +0.04%     
==========================================
  Files         515      515              
  Lines       18909    18948      +39     
  Branches     3691     3696       +5     
==========================================
+ Hits        14120    14157      +37     
- Misses       3905     3908       +3     
+ Partials      884      883       -1     

☔ View full report in Codecov by Harness.
📢 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.

jamescrosswell and others added 2 commits September 4, 2026 18:23
The #8921 branch sits on newer sentry-cocoa main than 9.26.1, which adds
maxFeatureFlags and the scope create/clone/withCurrent APIs. Bindings taken
verbatim from the failing macOS job's diff; blob hash matches CI's output.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
CI packs Release builds without a suffix, so this branch was producing packages
versioned 6.10.0 - which is already published. A tester could then resolve the
real 6.10.0 from nuget.org (or from their global cache) instead of this build,
with no way to tell which one they were running.

Do not merge.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
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