Skip to content

fix(ios): Respect SENTRY_ALLOW_FAILURE in Xcode build scripts#5616

Merged
antonis merged 1 commit intomainfrom
antonis/fix-sentry-allow-failure
Feb 4, 2026
Merged

fix(ios): Respect SENTRY_ALLOW_FAILURE in Xcode build scripts#5616
antonis merged 1 commit intomainfrom
antonis/fix-sentry-allow-failure

Conversation

@antonis
Copy link
Contributor

@antonis antonis commented Feb 4, 2026

📢 Type of change

  • Bugfix
  • New feature
  • Enhancement
  • Refactoring

📜 Description

Both sentry-xcode.sh and sentry-xcode-debug-files.sh now properly check the SENTRY_ALLOW_FAILURE environment variable. When set to true, upload failures print warnings instead of errors, allowing builds to continue.

This fixes a regression from v5.22.0 (PR #3887) where the flag was mentioned in error messages but never actually implemented.

💡 Motivation and Context

Fixes #5507

💚 How did you test it?

CI, Manual

📝 Checklist

  • I added tests to verify changes
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • All tests passing
  • No breaking changes

🔮 Next steps

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Semver Impact of This PR

None (no version bump detected)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


  • fix(ios): Respect SENTRY_ALLOW_FAILURE in Xcode build scripts by antonis in #5616
  • iOS UI Profiling by alwx in #5611
  • Ref: comment out setAttribute from scope sync. by lucas-zimerman in #5612
  • chore(deps): bump @isaacs/brace-expansion from 5.0.0 to 5.0.1 by dependabot in #5613
  • Expo Router integration improvement: Prefetch route performance measurement with automatically created spans by alwx in #5606
  • chore(deps): update Bundler Plugins to v4.9.0 by github-actions in #5608
  • e2e tests on Cirrus Labs runners by alwx in #5485
  • chore(deps): bump getsentry/craft from 2.20.0 to 2.20.1 by dependabot in #5603
  • chore(deps): bump getsentry/craft/.github/workflows/changelog-preview.yml from 2.20.0 to 2.20.1 by dependabot in #5604
  • chore(deps): bump github/codeql-action from 4.31.11 to 4.32.0 by dependabot in #5605
  • Ref: Add Claude task by lucas-zimerman in #5602
  • chore(deps): update JavaScript SDK to v10.38.0 by github-actions in #5596

🤖 This preview updates automatically when you update the PR.

Both sentry-xcode.sh and sentry-xcode-debug-files.sh now properly check
the SENTRY_ALLOW_FAILURE environment variable. When set to true, upload
failures print warnings instead of errors, allowing builds to continue.

This fixes a regression from v5.22.0 (PR #3887) where the flag was
mentioned in error messages but never actually implemented.

Fixes #5507

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@antonis antonis force-pushed the antonis/fix-sentry-allow-failure branch from 0304c8f to 178c301 Compare February 4, 2026 11:28
@antonis antonis added the ready-to-merge Triggers the full CI test suite label Feb 4, 2026
@antonis antonis marked this pull request as ready for review February 4, 2026 11:37
@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

iOS (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1205.00 ms 1202.09 ms -2.91 ms
Size 3.38 MiB 4.60 MiB 1.22 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d861c16+dirty 1231.94 ms 1242.32 ms 10.38 ms
6416d6c+dirty 1220.38 ms 1222.98 ms 2.60 ms
785ffb1+dirty 1237.63 ms 1240.50 ms 2.87 ms
1ef8a04+dirty 1226.14 ms 1223.15 ms -2.99 ms
2f9fb30+dirty 1189.51 ms 1190.71 ms 1.20 ms
42a723e+dirty 1200.82 ms 1215.89 ms 15.07 ms
818a608+dirty 1205.76 ms 1208.00 ms 2.24 ms
77061ed+dirty 1233.16 ms 1234.88 ms 1.71 ms
ec14be7+dirty 1234.64 ms 1245.54 ms 10.90 ms
07808fb+dirty 1233.31 ms 1232.77 ms -0.54 ms

App size

Revision Plain With Sentry Diff
d861c16+dirty 2.63 MiB 4.00 MiB 1.36 MiB
6416d6c+dirty 3.41 MiB 4.59 MiB 1.18 MiB
785ffb1+dirty 2.63 MiB 3.81 MiB 1.18 MiB
1ef8a04+dirty 3.41 MiB 4.59 MiB 1.18 MiB
2f9fb30+dirty 3.41 MiB 4.59 MiB 1.18 MiB
42a723e+dirty 3.38 MiB 4.60 MiB 1.22 MiB
818a608+dirty 2.63 MiB 3.91 MiB 1.28 MiB
77061ed+dirty 2.63 MiB 3.98 MiB 1.34 MiB
ec14be7+dirty 2.63 MiB 3.98 MiB 1.34 MiB
07808fb+dirty 2.63 MiB 3.99 MiB 1.36 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Android (legacy) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 473.82 ms 522.33 ms 48.51 ms
Size 43.75 MiB 48.41 MiB 4.66 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
90afdd3+dirty 375.94 ms 377.52 ms 1.58 ms
fdbea8b+dirty 494.72 ms 529.06 ms 34.34 ms
526494a+dirty 422.80 ms 438.90 ms 16.10 ms
7be1f99 454.83 ms 461.36 ms 6.53 ms
d1bfbde+dirty 478.88 ms 505.52 ms 26.64 ms
ad27f6e+dirty 471.44 ms 516.23 ms 44.79 ms
e2fa43d 451.68 ms 462.42 ms 10.74 ms
8490686+dirty 365.59 ms 400.24 ms 34.65 ms
8db9631+dirty 442.78 ms 461.96 ms 19.18 ms
ee69ed5+dirty 409.44 ms 441.30 ms 31.86 ms

App size

Revision Plain With Sentry Diff
90afdd3+dirty 17.75 MiB 19.70 MiB 1.95 MiB
fdbea8b+dirty 43.75 MiB 48.05 MiB 4.29 MiB
526494a+dirty 43.75 MiB 47.99 MiB 4.24 MiB
7be1f99 17.75 MiB 20.15 MiB 2.41 MiB
d1bfbde+dirty 43.75 MiB 47.99 MiB 4.24 MiB
ad27f6e+dirty 43.75 MiB 48.07 MiB 4.32 MiB
e2fa43d 17.75 MiB 20.15 MiB 2.41 MiB
8490686+dirty 17.75 MiB 19.70 MiB 1.96 MiB
8db9631+dirty 17.75 MiB 19.70 MiB 1.96 MiB
ee69ed5+dirty 43.75 MiB 48.04 MiB 4.29 MiB

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

iOS (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 1207.24 ms 1269.91 ms 62.67 ms
Size 3.38 MiB 4.60 MiB 1.22 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
d861c16+dirty 1226.00 ms 1223.35 ms -2.65 ms
6416d6c+dirty 1222.83 ms 1222.04 ms -0.79 ms
785ffb1+dirty 1213.71 ms 1213.37 ms -0.35 ms
1ef8a04+dirty 1184.42 ms 1186.44 ms 2.02 ms
2f9fb30+dirty 1219.06 ms 1223.38 ms 4.32 ms
42a723e+dirty 1225.29 ms 1220.22 ms -5.07 ms
818a608+dirty 1218.84 ms 1223.18 ms 4.34 ms
77061ed+dirty 1210.77 ms 1218.45 ms 7.68 ms
ec14be7+dirty 1229.62 ms 1230.53 ms 0.91 ms
07808fb+dirty 1240.76 ms 1251.00 ms 10.24 ms

App size

Revision Plain With Sentry Diff
d861c16+dirty 3.19 MiB 4.56 MiB 1.38 MiB
6416d6c+dirty 3.41 MiB 4.59 MiB 1.18 MiB
785ffb1+dirty 3.19 MiB 4.38 MiB 1.19 MiB
1ef8a04+dirty 3.41 MiB 4.59 MiB 1.18 MiB
2f9fb30+dirty 3.41 MiB 4.59 MiB 1.18 MiB
42a723e+dirty 3.38 MiB 4.60 MiB 1.22 MiB
818a608+dirty 3.19 MiB 4.48 MiB 1.29 MiB
77061ed+dirty 3.19 MiB 4.54 MiB 1.36 MiB
ec14be7+dirty 3.19 MiB 4.54 MiB 1.36 MiB
07808fb+dirty 3.19 MiB 4.56 MiB 1.37 MiB

@antonis
Copy link
Contributor Author

antonis commented Feb 4, 2026

@sentry review

@github-actions
Copy link
Contributor

github-actions bot commented Feb 4, 2026

Android (new) Performance metrics 🚀

  Plain With Sentry Diff
Startup time 401.32 ms 437.16 ms 35.84 ms
Size 43.94 MiB 49.27 MiB 5.33 MiB

Baseline results on branch: main

Startup times

Revision Plain With Sentry Diff
fdbea8b+dirty 551.94 ms 577.02 ms 25.08 ms
11ded16+dirty 309.23 ms 310.55 ms 1.33 ms
526494a+dirty 361.10 ms 410.84 ms 49.74 ms
bfe454a+dirty 372.42 ms 424.52 ms 52.10 ms
955f2eb+dirty 388.13 ms 433.56 ms 45.44 ms
3bd3f0d+dirty 334.38 ms 402.19 ms 67.81 ms
c4e097a+dirty 382.43 ms 443.77 ms 61.34 ms
d1bfbde+dirty 438.90 ms 494.82 ms 55.92 ms
ad27f6e+dirty 484.67 ms 532.79 ms 48.12 ms
07808fb+dirty 392.47 ms 451.94 ms 59.47 ms

App size

Revision Plain With Sentry Diff
fdbea8b+dirty 43.94 MiB 48.87 MiB 4.93 MiB
11ded16+dirty 7.15 MiB 8.46 MiB 1.31 MiB
526494a+dirty 43.94 MiB 48.82 MiB 4.88 MiB
bfe454a+dirty 7.15 MiB 8.42 MiB 1.26 MiB
955f2eb+dirty 7.15 MiB 8.42 MiB 1.27 MiB
3bd3f0d+dirty 7.15 MiB 8.43 MiB 1.28 MiB
c4e097a+dirty 7.15 MiB 8.41 MiB 1.26 MiB
d1bfbde+dirty 43.94 MiB 48.82 MiB 4.88 MiB
ad27f6e+dirty 43.94 MiB 48.90 MiB 4.96 MiB
07808fb+dirty 7.15 MiB 8.43 MiB 1.28 MiB

Copy link
Collaborator

@lucas-zimerman lucas-zimerman left a comment

Choose a reason for hiding this comment

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

Thank you for the PR! LGTM

@antonis antonis merged commit 6c36ba5 into main Feb 4, 2026
95 of 99 checks passed
@antonis antonis deleted the antonis/fix-sentry-allow-failure branch February 4, 2026 12:17

### Fixes

- Fix `SENTRY_ALLOW_FAILURE` environment variable not being respected in Xcode build scripts ([#5616](https://github.com/getsentry/sentry-react-native/pull/5616))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just realised that the Fixes section is in the wrong position. I moved it in the correct place in a next PR with 5202581

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge Triggers the full CI test suite

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[iOS] "Upload Debug Symbols to Sentry" build phase fails on EAS Build with SDK 7.8.0 - SENTRY_ALLOW_FAILURE not respected

2 participants