Repository navigation
docs(cli): Document allow-failure via the v3 migration shim - #1593
Merged
Merged
Conversation
Bring back sentry-cli v3's opt-in for non-fatal failures. With the `--allow-failure` global flag or a truthy `SENTRY_ALLOW_FAILURE`, a failing command still prints its error but the process exits 0, so optional CI steps don't need an external `|| true` wrapper. Fixes #1582 Co-Authored-By: Burak Yigit Kaya <burak.kaya@sentry.io>
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Member
|
Oh, never mind this was already covered by the shim so we are not going to do this. We should just document this and make sure we respect the env variable in the shim. |
Drop the --allow-failure / SENTRY_ALLOW_FAILURE CLI support from this PR; the migration shim already covers it. Spell out in the migration guide how to keep optional CI steps non-fatal, and make the shim accept SENTRY_ALLOW_FAILURE=true as well as 1, matching v3.
BYK
approved these changes
Oct 22, 2026
7 tasks done
This branch was previously 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.
v4 doesn't support
--allow-failure/SENTRY_ALLOW_FAILURE, and that stays the case. The drop-insentry-clishim in the v3 migration guide already covers both. This PR makes that path clearer and closes a small gap in it.sentry-clithrough the shim (it strips--allow-failurewherever it appears and honors the env var), or use|| true.SENTRY_ALLOW_FAILURE=truethe same as1, matching v3 (Config::get_allow_failureaccepts1ortrue). Before, it only checked for1.SENTRY_ALLOW_FAILURE=1,=true, and a non-truthy value.Fixes #1582
via Junior system actor
event.--
View Junior Session [Sentry]