Skip to content

Commit c02dbf8

Browse files
fix(ci): enforce Control UI locale parity for manual CI (#131045)
Manual full CI could pass while generated Control UI locales were stale because preflight read strictness from a skipped changed-scope step. Ordinary manual CI now enforces Control UI locale parity. Automatic runs and exact-head release gates keep their existing scoped behavior. Co-authored-by: Ayaan Zaidi <[email protected]>
1 parent 554f25d commit c02dbf8

2 files changed

Lines changed: 29 additions & 4 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
run_format_check: ${{ steps.manifest.outputs.run_format_check }}
128128
compatibility_target: ${{ steps.manifest.outputs.compatibility_target }}
129129
run_control_ui_i18n: ${{ steps.manifest.outputs.run_control_ui_i18n }}
130-
strict_control_ui_i18n: ${{ steps.changed_scope.outputs.strict_control_ui_i18n }}
130+
strict_control_ui_i18n: ${{ github.event_name == 'workflow_dispatch' && !inputs.release_gate && 'true' || steps.changed_scope.outputs.strict_control_ui_i18n }}
131131
run_ui_tests: ${{ steps.manifest.outputs.run_ui_tests }}
132132
ui_e2e_matrix: ${{ steps.manifest.outputs.ui_e2e_matrix }}
133133
run_native_i18n: ${{ steps.manifest.outputs.run_native_i18n }}
@@ -2317,8 +2317,8 @@ jobs:
23172317
fi
23182318

23192319
- name: Check Control UI locale parity
2320-
# Source-only drift stays advisory because the post-merge bot owns
2321-
# repair. Generated locale changes and full release CI remain strict.
2320+
# Automatic source-only drift stays advisory because the post-merge bot owns
2321+
# repair. Generated locale changes and ordinary manual/release CI stay strict.
23222322
continue-on-error: ${{ needs.preflight.outputs.strict_control_ui_i18n != 'true' }}
23232323
run: pnpm ui:i18n:check
23242324

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8381,7 +8381,7 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
83818381
expect(bunSmoke.run).toContain("bun openclaw.mjs status --json --timeout 1");
83828382
});
83838383

8384-
it("keeps source-only Control UI locale drift advisory", () => {
8384+
it("keeps automatic source-only Control UI locale drift advisory and manual CI strict", () => {
83858385
const workflow = readCiWorkflow();
83868386
const workflowSource = readFileSync(".github/workflows/ci.yml", "utf8");
83878387
const buildArtifactSteps = workflow.jobs["build-artifacts"].steps;
@@ -8410,6 +8410,31 @@ printf '%s\n' "\${CURL_SUCCESS_IP:-203.0.113.7}"
84108410
expect(localeJob.env.COMPATIBILITY_TARGET).toBe(
84118411
"${{ needs.preflight.outputs.compatibility_target }}",
84128412
);
8413+
expect(workflow.jobs.preflight.outputs.strict_control_ui_i18n).toBe(
8414+
"${{ github.event_name == 'workflow_dispatch' && !inputs.release_gate && 'true' || steps.changed_scope.outputs.strict_control_ui_i18n }}",
8415+
);
8416+
expect(
8417+
evaluateWorkflowExpression(
8418+
"${{ github.event_name == 'workflow_dispatch' && !inputs.release_gate && 'true' || 'false' }}",
8419+
{
8420+
eventName: "workflow_dispatch",
8421+
releaseGate: false,
8422+
repository: "openclaw/openclaw",
8423+
runAttempt: 1,
8424+
},
8425+
),
8426+
).toBe("true");
8427+
expect(
8428+
evaluateWorkflowExpression(
8429+
"${{ github.event_name == 'workflow_dispatch' && !inputs.release_gate && 'true' || 'false' }}",
8430+
{
8431+
eventName: "workflow_dispatch",
8432+
releaseGate: true,
8433+
repository: "openclaw/openclaw",
8434+
runAttempt: 1,
8435+
},
8436+
),
8437+
).toBe("false");
84138438
expect(sourceStep["continue-on-error"]).toBeUndefined();
84148439
const compatibilityWithoutVerify = runControlUiI18nSourceFixture({
84158440
compatibilityTarget: true,

0 commit comments

Comments
 (0)