Skip to content

fix(i18n): resume failed full translation shards - #119

Merged
vincentkoc merged 1 commit into
mainfrom
fix/i18n-resumable-failures
Jul 28, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/i18n-resumable-failures

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where a long Translate Full run had to retransmit every locale shard after a small subset failed. It also fixes protected-attribute repair offsets when MDX parsing normalizes escaped comparison operators.

Why This Change Was Made

Full translation runs can now resume from a prior workflow run, reuse validated successful artifacts, rerun only failed or unusable shards, and merge the two artifact roots before finalization. The planner fails closed on incompatible source revisions, modes, or shard layouts, while missing prior artifacts intentionally degrade to a full rerun.

Protected-attribute repair now maps parser offsets from the normalized MDX input back to the original text before applying edits.

User Impact

Maintainers can recover partial full-translation failures without repeating successful work. Finalization still covers the complete selected locale set, including a finalization-only resume when every prior shard is already usable.

Evidence

  • 102/102 i18n script tests passed.
  • Workflow shell extraction and validation passed.
  • node --check passed for the changed JavaScript.
  • Python byte-compilation passed for the changed scripts.
  • git diff --check passed.
  • CodeQL passed for Actions and JavaScript/TypeScript.
  • Real artifacts from failed Translate Full run 30187722394 selected only failed pt-BR shard 4/7 while reusing the other six.
  • Mandatory autoreview passed after adding complete-locale finalization plus no-artifact and all-success boundary coverage.

Companion validator fix: openclaw/openclaw#115204

@vincentkoc
vincentkoc marked this pull request as ready for review July 28, 2026 13:14
@vincentkoc
vincentkoc requested a review from a team as a code owner July 28, 2026 13:14
@vincentkoc
vincentkoc merged commit b578b36 into main Jul 28, 2026
3 checks passed
@vincentkoc
vincentkoc deleted the fix/i18n-resumable-failures branch July 28, 2026 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant