Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class IncrementalWorkspaceService {
return history;
}

public async findGoodBaseForIncrementalBuild(
public async findBaseForIncrementalWorkspace(
context: CommitContext,
config: WorkspaceConfig,
history: WithCommitHistory,
Expand Down
3 changes: 2 additions & 1 deletion components/server/src/prebuilds/prebuild-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export class PrebuildManager {
commitHistory: repoHist.commitHistory.slice(0, prebuildInterval),
})),
};
const prebuild = await this.incrementalPrebuildsService.findGoodBaseForIncrementalBuild(
const prebuild = await this.incrementalPrebuildsService.findBaseForIncrementalWorkspace(
context,
config,
history,
Expand All @@ -416,6 +416,7 @@ export class PrebuildManager {
true,
);
if (prebuild) {
// TODO(gpl): Why not "done: prebuild.state === "available""?
return { prebuildId: prebuild.id, wsid: prebuild.buildWorkspaceId, done: true };
}
}
Expand Down
Loading
Loading