diff --git a/scripts/src/dev-cloud-workbench-smoke-lib.mjs b/scripts/src/dev-cloud-workbench-smoke-lib.mjs index c8dbe025..a1416f8b 100644 --- a/scripts/src/dev-cloud-workbench-smoke-lib.mjs +++ b/scripts/src/dev-cloud-workbench-smoke-lib.mjs @@ -850,7 +850,9 @@ function baseReport({ const sourceOnlyMode = mode !== "live"; return { $schema: "https://hwlab.pikastech.local/schemas/dev-gate-report.schema.json", - $id: "https://hwlab.pikastech.local/reports/dev-gate/dev-cloud-workbench-live.json", + $id: mode === "dom-only" + ? "https://hwlab.pikastech.local/reports/dev-gate/dev-cloud-workbench-dom-only.json" + : "https://hwlab.pikastech.local/reports/dev-gate/dev-cloud-workbench-live.json", reportVersion: "v1", status, issue: "pikasTech/HWLAB#7", diff --git a/scripts/validate-dev-gate-report.mjs b/scripts/validate-dev-gate-report.mjs index e10ccaf1..6fa7af16 100644 --- a/scripts/validate-dev-gate-report.mjs +++ b/scripts/validate-dev-gate-report.mjs @@ -1463,9 +1463,7 @@ async function validateDevCloudWorkbenchLiveReport(report, label, raw) { } for (const requiredCheck of [ - "live-runtime-current-main", "live-http-html", - "live-web-assets-current-main", "live-browser-dom", "live-api-runtime-readiness", "live-code-agent-browser-journey" @@ -1473,13 +1471,22 @@ async function validateDevCloudWorkbenchLiveReport(report, label, raw) { assert.ok(checks.has(requiredCheck), `${label}.checks missing ${requiredCheck}`); } - assertDevCloudWorkbenchIdentityChecks( - report, - label, - checks.get("live-runtime-current-main"), - checks.get("live-web-assets-current-main"), - { requirePass: report.status === "pass" } - ); + const hasDeploymentIdentityChecks = + checks.has("live-runtime-current-main") || + checks.has("live-web-assets-current-main") || + Object.hasOwn(report, "deploymentIdentity") || + Object.hasOwn(report, "webAssetIdentity"); + if (hasDeploymentIdentityChecks || report.status === "pass") { + assert.ok(checks.has("live-runtime-current-main"), `${label}.checks missing live-runtime-current-main`); + assert.ok(checks.has("live-web-assets-current-main"), `${label}.checks missing live-web-assets-current-main`); + assertDevCloudWorkbenchIdentityChecks( + report, + label, + checks.get("live-runtime-current-main"), + checks.get("live-web-assets-current-main"), + { requirePass: report.status === "pass" } + ); + } const httpCheck = checks.get("live-http-html"); assert.equal(httpCheck.status, "pass", `${label}.live-http-html.status`);