-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[image-builder] Export image config #5693
Conversation
/assign @aledbf |
@csweichel I still see the same behavio? Opening this PR in staging I get the same behavior (not inheriting PATH from dev-environment image)
|
76bcdae
to
3e0bf75
Compare
Codecov Report
@@ Coverage Diff @@
## main #5693 +/- ##
===========================================
+ Coverage 19.04% 37.88% +18.83%
===========================================
Files 2 16 +14
Lines 168 4136 +3968
===========================================
+ Hits 32 1567 +1535
- Misses 134 2443 +2309
- Partials 2 126 +124
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
6e9a803
to
cf1b4d4
Compare
c638235
to
afa9d40
Compare
Things fail oddly here:
|
/werft run 👍 started the job as gitpod-build-csweichel-image-builder-mk-does-5597.11 |
Issue we're facing is containerd/containerd#5978 |
9bbda75
to
2cce40e
Compare
/werft run 👍 started the job as gitpod-build-csweichel-image-builder-mk-does-5597.17 |
|
Unfortunately we don't have an updated preview environment yet :( |
22cdf67
to
7eb9e03
Compare
7eb9e03
to
6a71487
Compare
After switching to crane the workspace image push finally works as expected. |
6a71487
to
48e5919
Compare
/werft run 👍 started the job as gitpod-build-csweichel-image-builder-mk-does-5597.24 |
/approve |
LGTM label has been added. Git tree hash: d860ebe7424793dd471a476320c056cf211d66ac
|
/assign @corneliusludmann |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: aledbf, corneliusludmann Associated issue: #5597 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
This PR makes image-builder properly export the image config when building the workspace image. buildkit does not do this by default and the exporter needs to be told which image-config to export.
This PR also corrects a failure mode introduced by the instability of the
failed
condition of workspace status updates produced by ws-manager. Because of this instability, image-builder would falsely report an image-build as done when it really was not. We solve this by re-resolving the supposedly built image ref and returning a failure condition if it wasn't built. There's also a unit test for this.Related Issue(s)
fixes #5597
fixes #5497
How to test
TODO: unit tests are upcoming (hence this being a draft)
Release Notes