fix(ios): Respect SENTRY_ALLOW_FAILURE in Xcode build scripts#5616
Merged
fix(ios): Respect SENTRY_ALLOW_FAILURE in Xcode build scripts#5616
Conversation
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
🤖 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>
0304c8f to
178c301
Compare
Contributor
iOS (legacy) Performance metrics 🚀
|
| 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 |
Contributor
Android (legacy) Performance metrics 🚀
|
| 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 |
Contributor
iOS (new) Performance metrics 🚀
|
| 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 |
Contributor
Author
|
@sentry review |
Contributor
Android (new) Performance metrics 🚀
|
| 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 |
lucas-zimerman
approved these changes
Feb 4, 2026
Collaborator
lucas-zimerman
left a comment
There was a problem hiding this comment.
Thank you for the PR! LGTM
antonis
commented
Feb 4, 2026
|
|
||
| ### Fixes | ||
|
|
||
| - Fix `SENTRY_ALLOW_FAILURE` environment variable not being respected in Xcode build scripts ([#5616](https://github.com/getsentry/sentry-react-native/pull/5616)) |
Contributor
Author
There was a problem hiding this comment.
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
3 tasks
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.
📢 Type of change
📜 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
sendDefaultPIIis enabled🔮 Next steps