Merge pull request #612 from pikasTech/fix/v02-cloud-web-check-publish
fix: avoid duplicate cloud web dist gate
This commit is contained in:
@@ -990,29 +990,8 @@ async function buildService({ args, repo, commitId, shortCommit, service, buildC
|
||||
};
|
||||
}
|
||||
|
||||
const distFreshness = await inspectCloudWebDistFreshness(path.join(repoRoot, "web/hwlab-cloud-web"));
|
||||
if (distFreshness.status !== "pass") {
|
||||
return {
|
||||
...service,
|
||||
image: ref,
|
||||
imageTag: tag,
|
||||
buildCreatedAt,
|
||||
buildSource,
|
||||
status: "build_failed",
|
||||
digest: "not_published",
|
||||
distFreshness,
|
||||
blocker: blocker({
|
||||
type: "contract_blocker",
|
||||
scope: service.serviceId,
|
||||
summary: `cloud web dist is stale or incomplete before BuildKit image build: ${distFreshness.mismatches.join(", ")}`,
|
||||
next: "Run bun run --cwd web/hwlab-cloud-web build and bun run --cwd web/hwlab-cloud-web check before publishing hwlab-cloud-web."
|
||||
})
|
||||
};
|
||||
}
|
||||
|
||||
service = {
|
||||
...service,
|
||||
distFreshness,
|
||||
cloudWebCheckDurationMs: check.durationMs
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user