Skip to content

docs(cli): Document allow-failure via the v3 migration shim - #1593

Merged
BYK merged 3 commits into
mainfrom
feat/cli-allow-failure
Oct 22, 2026
Merged

BYK merged 3 commits into
mainfrom
feat/cli-allow-failure

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

v4 doesn't support --allow-failure / SENTRY_ALLOW_FAILURE, and that stays the case. The drop-in sentry-cli shim in the v3 migration guide already covers both. This PR makes that path clearer and closes a small gap in it.

  • The "Dropped" section of the migration guide now explains how to keep optional CI steps non-fatal: either call sentry-cli through the shim (it strips --allow-failure wherever it appears and honors the env var), or use || true.
  • The shim now treats SENTRY_ALLOW_FAILURE=true the same as 1, matching v3 (Config::get_allow_failure accepts 1 or true). Before, it only checked for 1.
  • The shim tests now cover SENTRY_ALLOW_FAILURE=1, =true, and a non-truthy value.

Fixes #1582

via Junior system actor event.

--

View Junior Session [Sentry]

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>
@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Oct 22, 2026 12:06pm UTC

Request Review

@github-actions github-actions Bot added the risk: medium PR risk score: medium label Oct 22, 2026
@BYK

BYK commented Oct 22, 2026

Copy link
Copy Markdown
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.
@sentry-junior sentry-junior Bot changed the title feat(cli): Support --allow-failure and SENTRY_ALLOW_FAILURE docs(cli): Document allow-failure via the v3 migration shim Oct 22, 2026
@github-actions github-actions Bot added risk: low PR risk score: low and removed risk: medium PR risk score: medium labels Oct 22, 2026
@BYK
BYK merged commit 14ee16f into main Oct 22, 2026
25 of 26 checks passed
@BYK
BYK deleted the feat/cli-allow-failure branch October 22, 2026 12:11

This branch was previously deployed

1 inactive deployment
Preview — 57f4b63f Deployed Oct 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support non-fatal command failures in the new Sentry CLI

1 participant