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

[projects] fix projectId for incremental prebuilds #5540

Merged
merged 1 commit into from
Sep 6, 2021
Merged

Conversation

AlexTugarev
Copy link
Member

Incremental prebuilds should not inherit the projectId of parent prebuilds. This PR should fix such situations.

@AlexTugarev
Copy link
Member Author

/approve no-issue

@@ -126,11 +127,11 @@ export class WorkspaceFactoryEE extends WorkspaceFactory {
commit: commitContext.revision,
state: "queued",
creationTime: new Date().toISOString(),
projectId: project?.id,
projectId: ws.projectId,
Copy link
Member

Choose a reason for hiding this comment

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

👍

@@ -117,6 +117,7 @@ export class WorkspaceFactoryEE extends WorkspaceFactory {
ws = await this.createForCommit({span}, user, commitContext, normalizedContextURL);
}
ws.type = "prebuild";
ws.projectId = project?.id;
Copy link
Member

Choose a reason for hiding this comment

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

I would still argue that this belongs into createForPrebuiltWorkspace (as optional parameter) but that's not too important here, and this fixes it as well.

Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

👍

@geropl
Copy link
Member

geropl commented Sep 6, 2021

/lgtm cancel

To unblock our merge queue

@roboquat roboquat removed the lgtm label Sep 6, 2021
@geropl
Copy link
Member

geropl commented Sep 6, 2021

@JanKoehnlein
Copy link
Contributor

/lgtm cancel

@AlexTugarev
Copy link
Member Author

AlexTugarev commented Sep 6, 2021

Build issue is solved 🤞🏻
@JanKoehnlein good to go?

@geropl
Copy link
Member

geropl commented Sep 6, 2021

Build issue is solved 🤞🏻

Still broken, sadly :-(

@AlexTugarev
Copy link
Member Author

@geropl sorry, the git push -f went to nirvana. had to start a new workspace first... now it's done.

@geropl
Copy link
Member

geropl commented Sep 6, 2021

/lgtm

@roboquat roboquat added the lgtm label Sep 6, 2021
@roboquat
Copy link
Contributor

roboquat commented Sep 6, 2021

LGTM label has been added.

Git tree hash: fc63fe332c0b9ab72d352a211854256a6b6f84f0

@roboquat
Copy link
Contributor

roboquat commented Sep 6, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AlexTugarev, geropl

Associated issue requirement bypassed by: AlexTugarev

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit 806553f into main Sep 6, 2021
@roboquat roboquat deleted the at/prebuild-id branch September 6, 2021 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants