-
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
[projects] fix projectId for incremental prebuilds #5540
Conversation
/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, |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
/lgtm cancel To unblock our merge queue |
/lgtm cancel |
0909e74
to
6e1894f
Compare
Build issue is solved 🤞🏻 |
6e1894f
to
dc65b9f
Compare
Still broken, sadly :-( |
dc65b9f
to
7b32389
Compare
@geropl sorry, the |
/lgtm |
LGTM label has been added. Git tree hash: fc63fe332c0b9ab72d352a211854256a6b6f84f0
|
[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 |
Incremental prebuilds should not inherit the
projectId
of parent prebuilds. This PR should fix such situations.