You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a result, even if sst deploy fails (or astro check or tsc --noEmit etc.) the deploy is treated as successful. Furthermore, steps following the error don't run.
The text was updated successfully, but these errors were encountered:
For what it's worth, I'm currently working around this by wrapping every command up in an explicit exit code check and re-throwing as regular Error (not a ShellError):
If you do the following in your workflow:
The deploy is treated as successful.
Why does this matter? A lot of tasks fail without writing anything to
stderr
, e.g.sst deploy
itself.As a result, if you do
await $`pnpm sst deploy`
we write an empty string toWORKFLOW_RESULT
file:console/packages/build/buildspec/index.mjs
Lines 383 to 386 in 6ef9bf9
That gets transformed into an Error with an empty message here:
console/packages/build/buildspec/index.mjs
Lines 395 to 400 in 6ef9bf9
As a result, even if
sst deploy
fails (orastro check
ortsc --noEmit
etc.) the deploy is treated as successful. Furthermore, steps following the error don't run.The text was updated successfully, but these errors were encountered: