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
Gitpod doesn't stop with an error when init task command fails.
Steps to reproduce
In the .gitpod.yml below (for Ruby project) gitpod/workspace-ruby-2 image comes without yarn, but init script continues to run after yarn install failed.
Hi @abitrolly, all your tasks run inside separate bash (?$SHELL) shells. Gitpod can only assert the exit status of the $SHELL process. Normally bash or other shells don't halt on a failure of a command unless you explicitly ask it to. Since your last command bundle exec nanoc compile is not exiting with a non-zero code, so bash also inherits that before it's own exit. Hence Gitpod can't determine if all of your commands inside the init task succeeded. To have that effect, you can put set -e; on top of your init: | shell-commands to configure that particular task shell to halt and immediately exit with an error code for a failure of any command.
Bug description
Gitpod doesn't stop with an error when init task command fails.
Steps to reproduce
In the
.gitpod.yml
below (for Ruby project)gitpod/workspace-ruby-2
image comes withoutyarn
, but init script continues to run afteryarn install
failed.Workspace affected
abitrolly-gitlabdocs-1ymjgt70jro
Expected behavior
Failure and stopping after
yarn install
would make it much easier to spot and debug errors.Example repository
https://gitlab.com/gitlab-org/gitlab-docs/ (it might be fixed soon)
Anything else?
No response
The text was updated successfully, but these errors were encountered: