Open jimmybrancaccio opened 1 year ago
Nice catch, @jimmybrancaccio! ⚾
Not sure if this is related, but the GitLab project is experiencing these system errors and the project has this project setting enabled, see relevant issue and relevant discussions[1][2], see relevant project (internal).
Bug description
When enabling the 'Cancel Prebuilds on Outdated Commits' functionality on a project it can cause some prebuilds to go into a SYSTEM ERROR state and the prebuilt workspace is marked as failed. It also logs as an ERROR in the cluster - "workspace failed". This appears to mostly happen when a prebuild is longer running and a new commit is pushed to the projects repository.
While there actually does seem to be an error because the prebuild is "prematurely" stopped I don't believe we should mark this as an error or as failed. The reason why there's an error is because it was cancelled which can causes processes (like init tasks) to just exit or not run to their completion.
You'll notice in that screenshot the top prebuild is okay because I didn't make any more quick commit and pushes so the prebuild was allowed to fully run.
I believe there should be two things done here:
Steps to reproduce
Workspace affected
jimmybranca-gitpoddocke-0y4i1f054dq
Expected behavior
I would expect that workspaces that are cancelled when using the 'Cancel Prebuilds on Outdated Commits' are left marked as Cancelled in the UI.
Example repository
https://github.com/jimmybrancaccio/gitpod-docker-compose
Anything else?
Front conversations