强化发布 readiness artifact gate evidence 校验
This commit is contained in:
@@ -38,6 +38,7 @@ for (const phrase of [
|
||||
"createProjectReleaseReadinessSummaryViewModel()",
|
||||
"parseProjectReleaseReadinessArtifactJson()",
|
||||
"createProjectReleaseReadinessArtifactValidation()",
|
||||
"embedded gate manifest, result matrix, and action plan",
|
||||
"validateWorkflowOverviewReleaseReadinessArtifactJson()",
|
||||
"loadWorkflowOverviewReleaseReadinessArtifactUrl()",
|
||||
"render-state",
|
||||
@@ -107,6 +108,9 @@ for (const phrase of [
|
||||
"createProjectReleaseReadinessSummaryViewModel()",
|
||||
"parseProjectReleaseReadinessArtifactJson()",
|
||||
"createProjectReleaseReadinessArtifactValidation()",
|
||||
"gateManifestReady",
|
||||
"gateResultMatrixReady",
|
||||
"gateActionPlanReady",
|
||||
"loadIniPanelShellWorkflowOverviewReleaseReadinessArtifactUrl()",
|
||||
"build/project-release-readiness.json",
|
||||
"INI panel shell handoff exports",
|
||||
|
||||
@@ -22,6 +22,283 @@
|
||||
],
|
||||
"promotedRuntimeFamilies": [],
|
||||
"promotedBlockedFamilies": [],
|
||||
"gateManifest": {
|
||||
"apiName": "project-release-gate-manifest",
|
||||
"manifestVersion": 1,
|
||||
"gateCount": 10,
|
||||
"gateIds": [
|
||||
"diff-check",
|
||||
"vendor-sync",
|
||||
"standalone-cnc-semantics",
|
||||
"interp-wasm",
|
||||
"sim-config-inventory",
|
||||
"ini-panel-browser",
|
||||
"release-artifact-url-browser",
|
||||
"ui-node-smokes",
|
||||
"host-smokes",
|
||||
"project-release-gate"
|
||||
],
|
||||
"gates": [
|
||||
{
|
||||
"id": "diff-check",
|
||||
"label": "Git diff check",
|
||||
"command": "git diff --check",
|
||||
"expectedOutput": null
|
||||
},
|
||||
{
|
||||
"id": "vendor-sync",
|
||||
"label": "Vendor sync guard",
|
||||
"command": "wasm-port/tools/verify_vendor_sync.sh",
|
||||
"expectedOutput": "vendor sync up to date"
|
||||
},
|
||||
{
|
||||
"id": "standalone-cnc-semantics",
|
||||
"label": "Standalone CNC semantics guard",
|
||||
"command": "wasm-port/tools/verify_no_standalone_cnc_semantics.sh",
|
||||
"expectedOutput": "standalone CNC semantics guard complete"
|
||||
},
|
||||
{
|
||||
"id": "interp-wasm",
|
||||
"label": "Interpreter WASM Node smoke",
|
||||
"command": "SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_interp_wasm.sh",
|
||||
"expectedOutput": "interp_wasm_node_smoke=ok"
|
||||
},
|
||||
{
|
||||
"id": "sim-config-inventory",
|
||||
"label": "Sim config inventory WASM Node smoke",
|
||||
"command": "SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_sim_configs_inventory_wasm.sh",
|
||||
"expectedOutput": "sim_configs_wasm_node_inventory_unexpected_fail=0"
|
||||
},
|
||||
{
|
||||
"id": "ini-panel-browser",
|
||||
"label": "INI panel browser smoke",
|
||||
"command": "SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_ini_panel_browser.sh",
|
||||
"expectedOutput": "browser_ini_shell_integration_workflow_smoke=ok"
|
||||
},
|
||||
{
|
||||
"id": "release-artifact-url-browser",
|
||||
"label": "Release artifact URL browser workflow smoke",
|
||||
"command": "SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_release_artifact_url_workflow_browser.sh",
|
||||
"expectedOutput": "browser_release_artifact_url_workflow_smoke=ok"
|
||||
},
|
||||
{
|
||||
"id": "ui-node-smokes",
|
||||
"label": "UI Node smokes",
|
||||
"command": "wasm-port/tests/ui/node/verify_ui_node_smokes.sh",
|
||||
"expectedOutput": "ui_node_smokes=ok"
|
||||
},
|
||||
{
|
||||
"id": "host-smokes",
|
||||
"label": "Host aggregate smoke",
|
||||
"command": "wasm-port/tests/host/verify_host_smokes.sh",
|
||||
"expectedOutput": "host_wasm_opfs_browser_smokes=ok"
|
||||
},
|
||||
{
|
||||
"id": "project-release-gate",
|
||||
"label": "Project release gate",
|
||||
"command": "wasm-port/tests/host/verify_project_release_gate.sh",
|
||||
"expectedOutput": "project_release_gate=ok"
|
||||
}
|
||||
]
|
||||
},
|
||||
"gateResultMatrix": {
|
||||
"apiName": "project-release-gate-result-matrix",
|
||||
"matrixVersion": 1,
|
||||
"phase": "ready",
|
||||
"ready": true,
|
||||
"gateCount": 10,
|
||||
"passedCount": 10,
|
||||
"unknownCount": 0,
|
||||
"missingGateIds": [],
|
||||
"manifest": {
|
||||
"apiName": "project-release-gate-manifest",
|
||||
"manifestVersion": 1,
|
||||
"gateCount": 10,
|
||||
"gateIds": [
|
||||
"diff-check",
|
||||
"vendor-sync",
|
||||
"standalone-cnc-semantics",
|
||||
"interp-wasm",
|
||||
"sim-config-inventory",
|
||||
"ini-panel-browser",
|
||||
"release-artifact-url-browser",
|
||||
"ui-node-smokes",
|
||||
"host-smokes",
|
||||
"project-release-gate"
|
||||
],
|
||||
"gates": [
|
||||
{
|
||||
"id": "diff-check",
|
||||
"label": "Git diff check",
|
||||
"command": "git diff --check",
|
||||
"expectedOutput": null
|
||||
},
|
||||
{
|
||||
"id": "vendor-sync",
|
||||
"label": "Vendor sync guard",
|
||||
"command": "wasm-port/tools/verify_vendor_sync.sh",
|
||||
"expectedOutput": "vendor sync up to date"
|
||||
},
|
||||
{
|
||||
"id": "standalone-cnc-semantics",
|
||||
"label": "Standalone CNC semantics guard",
|
||||
"command": "wasm-port/tools/verify_no_standalone_cnc_semantics.sh",
|
||||
"expectedOutput": "standalone CNC semantics guard complete"
|
||||
},
|
||||
{
|
||||
"id": "interp-wasm",
|
||||
"label": "Interpreter WASM Node smoke",
|
||||
"command": "SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_interp_wasm.sh",
|
||||
"expectedOutput": "interp_wasm_node_smoke=ok"
|
||||
},
|
||||
{
|
||||
"id": "sim-config-inventory",
|
||||
"label": "Sim config inventory WASM Node smoke",
|
||||
"command": "SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_sim_configs_inventory_wasm.sh",
|
||||
"expectedOutput": "sim_configs_wasm_node_inventory_unexpected_fail=0"
|
||||
},
|
||||
{
|
||||
"id": "ini-panel-browser",
|
||||
"label": "INI panel browser smoke",
|
||||
"command": "SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_ini_panel_browser.sh",
|
||||
"expectedOutput": "browser_ini_shell_integration_workflow_smoke=ok"
|
||||
},
|
||||
{
|
||||
"id": "release-artifact-url-browser",
|
||||
"label": "Release artifact URL browser workflow smoke",
|
||||
"command": "SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_release_artifact_url_workflow_browser.sh",
|
||||
"expectedOutput": "browser_release_artifact_url_workflow_smoke=ok"
|
||||
},
|
||||
{
|
||||
"id": "ui-node-smokes",
|
||||
"label": "UI Node smokes",
|
||||
"command": "wasm-port/tests/ui/node/verify_ui_node_smokes.sh",
|
||||
"expectedOutput": "ui_node_smokes=ok"
|
||||
},
|
||||
{
|
||||
"id": "host-smokes",
|
||||
"label": "Host aggregate smoke",
|
||||
"command": "wasm-port/tests/host/verify_host_smokes.sh",
|
||||
"expectedOutput": "host_wasm_opfs_browser_smokes=ok"
|
||||
},
|
||||
{
|
||||
"id": "project-release-gate",
|
||||
"label": "Project release gate",
|
||||
"command": "wasm-port/tests/host/verify_project_release_gate.sh",
|
||||
"expectedOutput": "project_release_gate=ok"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rows": [
|
||||
{
|
||||
"id": "diff-check",
|
||||
"label": "Git diff check",
|
||||
"command": "git diff --check",
|
||||
"expectedOutput": null,
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"id": "vendor-sync",
|
||||
"label": "Vendor sync guard",
|
||||
"command": "wasm-port/tools/verify_vendor_sync.sh",
|
||||
"expectedOutput": "vendor sync up to date",
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"id": "standalone-cnc-semantics",
|
||||
"label": "Standalone CNC semantics guard",
|
||||
"command": "wasm-port/tools/verify_no_standalone_cnc_semantics.sh",
|
||||
"expectedOutput": "standalone CNC semantics guard complete",
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"id": "interp-wasm",
|
||||
"label": "Interpreter WASM Node smoke",
|
||||
"command": "SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_interp_wasm.sh",
|
||||
"expectedOutput": "interp_wasm_node_smoke=ok",
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"id": "sim-config-inventory",
|
||||
"label": "Sim config inventory WASM Node smoke",
|
||||
"command": "SKIP_INTERP_BUILD=1 wasm-port/tests/wasm/node/verify_sim_configs_inventory_wasm.sh",
|
||||
"expectedOutput": "sim_configs_wasm_node_inventory_unexpected_fail=0",
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"id": "ini-panel-browser",
|
||||
"label": "INI panel browser smoke",
|
||||
"command": "SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_ini_panel_browser.sh",
|
||||
"expectedOutput": "browser_ini_shell_integration_workflow_smoke=ok",
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"id": "release-artifact-url-browser",
|
||||
"label": "Release artifact URL browser workflow smoke",
|
||||
"command": "SKIP_INI_BUILD=1 SKIP_INTERP_BUILD=1 wasm-port/tests/browser/verify_release_artifact_url_workflow_browser.sh",
|
||||
"expectedOutput": "browser_release_artifact_url_workflow_smoke=ok",
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"id": "ui-node-smokes",
|
||||
"label": "UI Node smokes",
|
||||
"command": "wasm-port/tests/ui/node/verify_ui_node_smokes.sh",
|
||||
"expectedOutput": "ui_node_smokes=ok",
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"id": "host-smokes",
|
||||
"label": "Host aggregate smoke",
|
||||
"command": "wasm-port/tests/host/verify_host_smokes.sh",
|
||||
"expectedOutput": "host_wasm_opfs_browser_smokes=ok",
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
},
|
||||
{
|
||||
"id": "project-release-gate",
|
||||
"label": "Project release gate",
|
||||
"command": "wasm-port/tests/host/verify_project_release_gate.sh",
|
||||
"expectedOutput": "project_release_gate=ok",
|
||||
"status": "passed",
|
||||
"passed": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"gateActionPlan": {
|
||||
"apiName": "project-release-gate-action-plan",
|
||||
"planVersion": 1,
|
||||
"phase": "ready",
|
||||
"ready": true,
|
||||
"gateCount": 10,
|
||||
"completedCount": 10,
|
||||
"pendingCount": 0,
|
||||
"completedGateIds": [
|
||||
"diff-check",
|
||||
"vendor-sync",
|
||||
"standalone-cnc-semantics",
|
||||
"interp-wasm",
|
||||
"sim-config-inventory",
|
||||
"ini-panel-browser",
|
||||
"release-artifact-url-browser",
|
||||
"ui-node-smokes",
|
||||
"host-smokes",
|
||||
"project-release-gate"
|
||||
],
|
||||
"pendingGateIds": [],
|
||||
"nextGateId": null,
|
||||
"nextCommand": null,
|
||||
"commands": [],
|
||||
"shellScript": "# Project release gates are already marked passed.\n",
|
||||
"rows": []
|
||||
},
|
||||
"gates": [
|
||||
{
|
||||
"id": "diff-check",
|
||||
|
||||
@@ -22,6 +22,9 @@ assert.equal(validation.artifactApiName, "project-release-readiness-report");
|
||||
assert.equal(validation.artifactVersion, 1);
|
||||
assert.equal(validation.gateCount, 10);
|
||||
assert.equal(validation.expectedGateCount, 10);
|
||||
assert.equal(validation.gateManifestReady, true);
|
||||
assert.equal(validation.gateResultMatrixReady, true);
|
||||
assert.equal(validation.gateActionPlanReady, true);
|
||||
assert.deepEqual(validation.expectedGateIds, [
|
||||
"diff-check",
|
||||
"vendor-sync",
|
||||
@@ -34,5 +37,10 @@ assert.deepEqual(validation.expectedGateIds, [
|
||||
"host-smokes",
|
||||
"project-release-gate",
|
||||
]);
|
||||
assert.equal(artifact.gateManifest.apiName, "project-release-gate-manifest");
|
||||
assert.equal(artifact.gateResultMatrix.apiName, "project-release-gate-result-matrix");
|
||||
assert.equal(artifact.gateActionPlan.apiName, "project-release-gate-action-plan");
|
||||
assert.equal(artifact.gateActionPlan.pendingCount, 0);
|
||||
assert.equal(artifact.gateActionPlan.nextCommand, null);
|
||||
|
||||
console.log("project_release_readiness_artifact_node_smoke=ok");
|
||||
|
||||
@@ -266,6 +266,9 @@ assert.deepEqual(createProjectReleaseReadinessArtifactValidation(releaseReadines
|
||||
gateCount: 10,
|
||||
expectedGateCount: 10,
|
||||
expectedGateIds: createProjectReleaseGateManifest().gateIds,
|
||||
gateManifestReady: true,
|
||||
gateResultMatrixReady: true,
|
||||
gateActionPlanReady: true,
|
||||
blockedRuntimeFamilies: [
|
||||
"L4-USER-M-PROCESS",
|
||||
"L4-TOOL-DB",
|
||||
@@ -282,6 +285,21 @@ assert.deepEqual(createProjectReleaseReadinessArtifactValidation(releaseReadines
|
||||
label: "Project release gate",
|
||||
value: "passed",
|
||||
},
|
||||
{
|
||||
id: "gate-manifest",
|
||||
label: "Gate manifest",
|
||||
value: "ready",
|
||||
},
|
||||
{
|
||||
id: "gate-result-matrix",
|
||||
label: "Gate result matrix",
|
||||
value: "ready",
|
||||
},
|
||||
{
|
||||
id: "gate-action-plan",
|
||||
label: "Gate action plan",
|
||||
value: "ready",
|
||||
},
|
||||
{
|
||||
id: "validation",
|
||||
label: "Artifact validation",
|
||||
@@ -305,6 +323,9 @@ assert.deepEqual(
|
||||
"simConfigInventory.skipped",
|
||||
"simConfigInventory.unexpectedFail",
|
||||
"blockedRuntimeFamilies",
|
||||
"gateManifest",
|
||||
"gateResultMatrix",
|
||||
"gateActionPlan",
|
||||
"gates.length",
|
||||
"gates.passed",
|
||||
"rows.project-release-gate",
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import {
|
||||
createProjectReleaseGateManifest,
|
||||
createProjectReleaseReadinessReport,
|
||||
} from "../../../runtime/sdk/src/project-release-readiness.js";
|
||||
|
||||
import {
|
||||
INI_PANEL_ENTRIES,
|
||||
controlPageStatusText,
|
||||
@@ -1285,38 +1290,9 @@ assert.equal(workflowDomMountResult.ready, false);
|
||||
assert.equal(workflowDomMountResult.renderResult.rowCount, 8);
|
||||
assert.equal(workflowDomMountResult.renderResult.dataset.handoffScope, "workflow");
|
||||
assert.deepEqual(createIniPanelShellWorkflowOverviewContract(), shellViewModel.shellWorkflowOverviewContract);
|
||||
const releaseReadinessArtifactJson = JSON.stringify({
|
||||
apiName: "project-release-readiness-report",
|
||||
reportVersion: 1,
|
||||
phase: "ready",
|
||||
ready: true,
|
||||
missing: [],
|
||||
releaseGate: {
|
||||
command: "wasm-port/tests/host/verify_project_release_gate.sh",
|
||||
passed: true,
|
||||
expectedOutput: "project_release_gate=ok",
|
||||
},
|
||||
simConfigInventory: {
|
||||
executed: 28,
|
||||
passed: 28,
|
||||
skipped: 131,
|
||||
unexpectedFail: 0,
|
||||
},
|
||||
blockedRuntimeFamilies: [
|
||||
"L4-USER-M-PROCESS",
|
||||
"L4-TOOL-DB",
|
||||
"L4-PYTHON-REMAP",
|
||||
],
|
||||
promotedBlockedFamilies: [],
|
||||
gates: Array.from({ length: 10 }, (_, index) => ({ id: `gate-${index}`, passed: true })),
|
||||
rows: [
|
||||
{
|
||||
id: "project-release-gate",
|
||||
label: "Project release gate",
|
||||
value: "passed",
|
||||
},
|
||||
],
|
||||
});
|
||||
const releaseReadinessArtifactJson = JSON.stringify(createProjectReleaseReadinessReport({
|
||||
gateResults: Object.fromEntries(createProjectReleaseGateManifest().gateIds.map((id) => [id, true])),
|
||||
}));
|
||||
const releaseArtifactValidation = validateIniPanelShellWorkflowOverviewReleaseReadinessArtifactJson(
|
||||
releaseReadinessArtifactJson,
|
||||
);
|
||||
@@ -1373,10 +1349,14 @@ const releaseArtifactMountResult = mountIniPanelShellWorkflowOverviewReleaseRead
|
||||
rowsNode: releaseArtifactRowsNode,
|
||||
});
|
||||
assert.equal(releaseArtifactRenderResult.rendered, true);
|
||||
assert.equal(releaseArtifactRenderResult.rowCount, 3);
|
||||
assert.equal(releaseArtifactRenderResult.rowCount, 6);
|
||||
assert.equal(releaseArtifactRenderResult.dataset.handoffScope, "workflow-overview-release-readiness-artifact");
|
||||
assert.equal(
|
||||
releaseArtifactRenderResult.rowIds.includes("gate-action-plan"),
|
||||
true,
|
||||
);
|
||||
assert.equal(releaseArtifactMountResult.ready, true);
|
||||
assert.equal(releaseArtifactMountResult.renderResult.rowCount, 3);
|
||||
assert.equal(releaseArtifactMountResult.renderResult.rowCount, 6);
|
||||
assert.deepEqual(
|
||||
validateIniPanelShellWorkflowOverviewReleaseReadinessArtifactJson("{").missing,
|
||||
["artifact-json"],
|
||||
@@ -1409,7 +1389,7 @@ assert.equal(releaseArtifactUrlWorkflow.httpStatus, 200);
|
||||
assert.equal(releaseArtifactUrlWorkflow.validation.ready, true);
|
||||
assert.equal(releaseArtifactUrlWorkflow.renderState.statusLine, "Ready: No blocking reasons");
|
||||
assert.equal(releaseArtifactUrlWorkflow.mountResult.ready, true);
|
||||
assert.equal(releaseArtifactUrlWorkflow.mountResult.renderResult.rowCount, 3);
|
||||
assert.equal(releaseArtifactUrlWorkflow.mountResult.renderResult.rowCount, 6);
|
||||
const releaseArtifactUrlWorkflowMissingDom = await loadIniPanelShellWorkflowOverviewReleaseReadinessArtifactUrl({
|
||||
artifactUrl: "/project-release-readiness.json",
|
||||
fetchRef: async () => ({
|
||||
|
||||
Reference in New Issue
Block a user