Repository navigation
Conversation
Use atomic Clang, C++, and Swift profiling updates for Sentry-owned package test targets. Preserve inherited settings and leave external dependencies and consumer builds unchanged.
Contributor
PR risk: mediumFor commit The model rated this change low. It was raised to medium because:
This label is a hint for reviewers, not an approval. |
5 of 9 tasks
denrase
marked this pull request as ready for review
December 1, 2026 10:32
denrase
requested review from
a team,
donnywals and
noahsmartin
as code owners
December 1, 2026 10:32
denrase
requested review from
itaybre and
philprime
and removed request for
a team
December 1, 2026 10:32
philprime
approved these changes
Dec 1, 2026
This branch has not been deployed
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 Description
Stack 1/2: targets
main; followed by #9670 (native coverage attribution).Enable atomic profiling counters in the opt-in SwiftPM test configuration:
-fprofile-update=atomic.-Xllvm -instrprof-atomic-counter-update-all.This PR changes only
Tests/Configuration/SwiftPM.xcconfigand the corresponding documentation bullet. The native reporting/metadata changes and their tooling tests remain in #9670.💡 Motivation and Context
Part of #9651. Non-atomic profiling increments can lose updates during concurrent SDK work, even when XCTest itself runs serially. This affects coverage measurements; it is not evidence of an SDK data race.
#skip-changelog — test infrastructure only; no shipped SDK behavior or public API changes.
💚 How did you test it?
On this isolated base branch, using Xcode 27.2 (27B52):
SentryIdTests: 14/14 passed, without the downstream metadata changes.make format,make analyze, and diff checks passed.Earlier investigation also reproduced lost increments with non-atomic counters and exact counts with atomic counters. That historical probe was not rerun for this split.
Pending: supported-toolchain CI, particularly Xcode 26 and the internal Swift LLVM option. Xcode 26 is not installed locally.
📝 Checklist
sendDefaultPIIis enabled.sdk_api.json,sdk_api_objc.json) reviewed by another Mobile SDK team member or implemented according to the develop docs spec. (Not applicable.)