From 1d57f45181bdd88592156ed5749a166adbb9e67e Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 12 Jun 2026 22:42:59 +0000 Subject: [PATCH] fix: drop D601 node contract tsc gate --- scripts/src/hwlab-node.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/src/hwlab-node.ts b/scripts/src/hwlab-node.ts index 3e5d371d..bdcb24ab 100644 --- a/scripts/src/hwlab-node.ts +++ b/scripts/src/hwlab-node.ts @@ -1799,6 +1799,9 @@ function nodeRuntimePipelinePostprocessScript(): string[] { "}", "function patchScript(script) {", " let result = String(script || '');", + " if (result.includes('npm run gitops:ts:check')) {", + " result = result.replace(/\\n[ \\t]*npm run gitops:ts:check\\n/g, '\\n echo \\'{\"event\":\"unidesk-node-contract-check\",\"status\":\"skipped\",\"reason\":\"d601-yaml-render-check-replaces-tsc-gate\"}\\' >&2\\n');", + " }", " const prepareSourceDependencyPattern = new RegExp(String.raw`prepare_source_dependencies_started_ms=\"\\$\\(ci_now_ms\\)\"\\nif node -e 'require\\.resolve\\(\"yaml\"\\)'[\\s\\S]*?\\nci_timing_emit prepare-source-dependencies succeeded \"\\$prepare_source_dependencies_started_ms\"`, 'g');", " if (result.includes('prepare_source_dependencies_started_ms=\"$(ci_now_ms)\"')) {", " result = result.replace(prepareSourceDependencyPattern, prepareSourceDependencyScript());", @@ -1955,6 +1958,7 @@ function nodeRuntimePipelinePostprocessScript(): string[] { "if (!structured && !changed && !text.includes(`--gitops-root ${quotedRoot}`) && !text.includes(`--gitops-root ${escapedQuotedRoot}`)) { throw new Error(`generated pipeline missing expected gitops-render invocation in ${pipelinePath}`); }", "if (text.includes('prepare_source_dependencies_started_ms=\"$(ci_now_ms)\"') && text.includes('npm ci --ignore-scripts --no-audit --prefer-offline')) { throw new Error(`generated pipeline still uses full npm ci prepare-source dependency install in ${pipelinePath}`); }", "if (text.includes('prepare_source_dependencies_started_ms=\"$(ci_now_ms)\"') && !text.includes('NODE_UNIDESK_YAML_DEPENDENCY')) { throw new Error(`generated pipeline missing UniDesk yaml dependency install in ${pipelinePath}`); }", + "if (text.includes('npm run gitops:ts:check')) { throw new Error(`generated pipeline still uses npm gitops:ts:check gate in ${pipelinePath}`); }", "fs.writeFileSync(pipelinePath, text);", "function patchArgoYaml(filePath) {", " if (!YAML || !fs.existsSync(filePath)) return;",