Snapcraft 9 fails silently with pre-9 CI promotion syntax
Metadata
Current evaluation
Cancelled `snapcraft promote` prompts now exit non-zero and warn when SNAPCRAFT_HAS_TTY is set without --yes, via PR #6304 (68c28110f), released in Snapcraft 9.0.1.
Resolution: closed resolved
Reason: Maintainer mr-cal closed the issue after commit 68c28110f "fix(commands/promote): exit non-zero when promotion is cancelled (#6304)" was merged, confirming the fix shipped in the Snapcraft 9.0.1 patch release with documented migration to `snapcraft promote --yes`.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Cancelled `snapcraft promote` prompts now exit non-zero and warn when SNAPCRAFT_HAS_TTY is set without --yes, via PR #6304 (68c28110f), released in Snapcraft 9.0.1. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in Snapcraft 9.0.1 by PR #6304: cancelled promotions now exit non-zero and warn that SNAPCRAFT_HAS_TTY is unsupported. Use --yes for CI promotion. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed in Snapcraft 9.0.1. The promote command now warns on legacy SNAPCRAFT_HAS_TTY usage and exits non-zero on cancellation. CI workflows must migrate to the --yes flag to ensure reliable automation. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed in Snapcraft 9.0.1. The promote command now warns when legacy TTY environment variables are used without --yes and exits non-zero when cancelled. CI workflows should migrate to the --yes flag. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed in Snapcraft 9.0.1. The promote command now exits with code 1 when cancelled and warns if the legacy SNAPCRAFT_HAS_TTY variable is used without --yes. CI workflows must migrate to the --yes flag for reliable automation. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed in Snapcraft 9.0.1. The promote command now warns when the legacy SNAPCRAFT_HAS_TTY variable is used without --yes, and exits with a non-zero code if the promotion is cancelled, resolving the silent CI failure. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/snapcraft#6304
(confidence 95%)
Merged commit 68c28110f implementing both scoped changes: warn when SNAPCRAFT_HAS_TTY is set without --yes, and return non-zero exit code when promotion is cancelled.
-
Related To:
canonical/snapcraft#6218
(confidence 70%)
Commit 4012735f6 'refactor: migrate promote command (#6218)' moved promote from snapcraft_legacy to craft-cli, which introduced the regression by dropping SNAPCRAFT_HAS_TTY support.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6304 fix(commands/promote): exit non-zero when promotion is cancelled | snapcraft | merged | PR #6304 (squash-merged as commit 68c28110f) makes `snapcraft promote` return exit code 1 when a promotion prompt is declined and warns that SNAPCRAFT_HAS_TTY is obsolete. Fixes #6294, shipped in Snapcraft 9.0.1. | |
| #5945 snapcraft promote doesn't work when using the `--yes` flag. | snapcraft | closed | Fixed by merged PR #5984 (commit 1b669ec44), which removed the edge-channel restriction so `snapcraft promote --from-channel edge --to-channel beta --yes` now works. Shipped in Snapcraft 9.0. |