Skip to content
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

[server] Fix checkoutLocation for imagebuilds #8854

Merged
merged 1 commit into from
Mar 17, 2022
Merged

Conversation

geropl
Copy link
Member

@geropl geropl commented Mar 17, 2022

Description

This attemps to fix the problem by replicating the original mechanism as close as possible.

The general problem here is obviously that we're lagging tests for workspace-starter.ts. 🙄

Thx @iQQBot for identifying the problem with #8833 🙏

Related Issue(s)

Fixes #8851

How to test

Release Notes

fix broken image builds

Documentation

@geropl geropl force-pushed the gpl/8851-imgbuilds branch from d8a2aa4 to 076b573 Compare March 17, 2022 08:45
@geropl geropl marked this pull request as ready for review March 17, 2022 08:50
@geropl geropl requested a review from a team March 17, 2022 08:50
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Mar 17, 2022
@geropl
Copy link
Member Author

geropl commented Mar 17, 2022

/werft run

@@ -726,13 +726,13 @@ export class WorkspaceStarter {
) {
// TODO(se): we cannot change this initializer structure now because it is part of how baserefs are computed in image-builder.
// Image builds should however just use the initialization if the workspace they are running for (i.e. the one from above).

checkoutLocation = ".";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that makes sense, as it does also have effect on contextPath and dockerFilePath.

just, I don't the comments from prev lines.

Copy link
Member

@AlexTugarev AlexTugarev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assuming that this change only affects imagebuild from dockerfiles in repos, at least that's how I read the code branch, I just scanned/tested that part.

it works as advertised!

thanks @geropl and @iQQBot!!!

@roboquat roboquat merged commit 9eb5fce into main Mar 17, 2022
@roboquat roboquat deleted the gpl/8851-imgbuilds branch March 17, 2022 09:29
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Mar 18, 2022
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/XS team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

imagebuilds broken by wrong checkoutlocation
3 participants