fix: avoid duplicate cloud web dist gate

This commit is contained in:
Codex
2026-05-31 11:46:44 +08:00
parent 47ab535cf2
commit f037b6dcf1
-21
View File
@@ -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
};
}