Skip to content

[server] mark prebuild as failed when image build fails #13296

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 26, 2022

Conversation

AlexTugarev
Copy link
Member

@AlexTugarev AlexTugarev commented Sep 26, 2022

Description

Before this PR, if an image build started for a prebuild errored, e.g. due to issues with the .Dockerfile, it would mark the workspace instance as stopped, but leave the prebuild workspace entry in "PENDING" state. That causes the UI to remain in same state, which is worsened by the fact that image build logs are not persisted.
This PR adds the missing update to the prebuild workspace entry, which will produce UI state updates as well.

Related Issue(s)

Fixes #13207

How to test

Try with prebuilds for a repo with .Dockerfile build and simple errors in it, e.g. apt-get install NOT-FOUND, see the prebuilds is rendered as failed and does not remain in PENDING state.

Release Notes

Fail prebuild if image build fails.

Documentation

Werft options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-at-imagebuild-fails-prebuild.1 because the annotations in the pull request description changed
(with .werft/ from main)

@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Sep 26, 2022
@roboquat roboquat merged commit dbb182a into main Sep 26, 2022
@roboquat roboquat deleted the at/imagebuild-fails-prebuild branch September 26, 2022 14:21
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 27, 2022
@jldec
Copy link
Contributor

jldec commented Oct 3, 2022

Thanks @AlexTugarev - this is a nice prebuild improvement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note size/M team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[prebuild] stuck in PENDING if image build fails (due to error in dockerfile)
4 participants