Skip to content

fix(ci): Preserve source SPM products in samples#7962

Merged
philprime merged 1 commit into
philprime/objc-wrapper-sdk-6342-2from
fix/preserve-spm-products-release-builds
May 28, 2026
Merged

fix(ci): Preserve source SPM products in samples#7962
philprime merged 1 commit into
philprime/objc-wrapper-sdk-6342-2from
fix/preserve-spm-products-release-builds

Conversation

@philprime

Copy link
Copy Markdown
Member

Keep release-branch sample builds from resolving unpublished binary target URLs while preserving the local source package products used by samples.

This is stacked on #7918. That PR adds the iOS-ObjectiveCpp-NoModules sample, which depends on the local SPM product SentryObjC. The existing workflow only ran package prep for DistributionSample, so other sample schemes could still hit Package.swift binary target URLs during workspace package resolution on release branches.

This runs binary target stripping for every sample build and keeps source-backed products appended later in Package.swift, including SentrySPM and SentryObjC.

Verified locally by running prepare-package.sh against a temporary Package.swift copy and parsing the result with swift package dump-package. The generated manifest has no binary targets and still exposes SentryDistribution, SentrySPM, and SentryObjC.

#skip-changelog

Run package prep for every sample build and keep source-backed package products while stripping binary targets for release branch builds.
@philprime philprime self-assigned this May 28, 2026
@philprime philprime added the ready-to-merge Use this label to trigger all PR workflows label May 28, 2026
@philprime philprime marked this pull request as ready for review May 28, 2026 10:13
@codecov

codecov Bot commented May 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.531%. Comparing base (ebe080c) to head (3b9b8f2).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@                           Coverage Diff                           @@
##           philprime/objc-wrapper-sdk-6342-2     #7962       +/-   ##
=======================================================================
+ Coverage                             86.525%   86.531%   +0.005%     
=======================================================================
  Files                                    549       549               
  Lines                                  31593     31592        -1     
  Branches                               13010     13002        -8     
=======================================================================
+ Hits                                   27336     27337        +1     
+ Misses                                  4207      4206        -1     
+ Partials                                  50        49        -1     

see 8 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ebe080c...3b9b8f2. Read the comment docs.

Comment thread scripts/prepare-package.sh
@github-actions

Copy link
Copy Markdown
Contributor

Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1215.33 ms 1249.82 ms 34.49 ms
Size 24.14 KiB 1.17 MiB 1.14 MiB

Baseline results on branch: philprime/objc-wrapper-sdk-6342-2

Startup times

Revision Plain With Sentry Diff
b1f0d15 1232.21 ms 1264.13 ms 31.91 ms
b5de00c 1223.96 ms 1252.17 ms 28.21 ms
7c3a7fd 1223.64 ms 1242.66 ms 19.02 ms
6884ba9 1222.98 ms 1254.19 ms 31.21 ms
e886b8e 1230.16 ms 1255.70 ms 25.55 ms

App size

Revision Plain With Sentry Diff
b1f0d15 24.14 KiB 1.17 MiB 1.14 MiB
b5de00c 24.14 KiB 1.17 MiB 1.15 MiB
7c3a7fd 24.14 KiB 1.16 MiB 1.14 MiB
6884ba9 24.14 KiB 1.17 MiB 1.15 MiB
e886b8e 24.14 KiB 1.16 MiB 1.13 MiB

@philprime philprime merged commit 420e4e1 into philprime/objc-wrapper-sdk-6342-2 May 28, 2026
206 of 254 checks passed
@philprime philprime deleted the fix/preserve-spm-products-release-builds branch May 28, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Use this label to trigger all PR workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant