Skip to content

E2E reset lays down .translate/config.yml with the production editors block - #275

Merged
mmcky merged 2 commits into
mainfrom
harness-editors-fixture
Aug 18, 2026
Merged

E2E reset lays down .translate/config.yml with the production editors block#275
mmcky merged 2 commits into
mainfrom
harness-editors-fixture

Conversation

@mmcky

@mmcky mmcky commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Closes the last item on QuantEcon/project-translation#24: the harness should mirror production's .translate/config.yml, which since 2026-08-18 carries an editors: block in all six live editions.

What was actually diverging: the #202 E2E overhaul deletes .translate/ on every target reset and nothing re-creates it, so the harness targets have been running with no translate config at all — not just a missing editors: block. This change makes the reset lay the config down per target (source-language/target-language/docs-folder: . per the harness's root-level layout, plus the block).

Three deliberate choices, each commented in the script:

The three test targets have also been given the same config by direct commit (authorised maintenance), so the live harness mirrors production immediately; the next E2E run would previously have wiped that, and with this change re-creates it instead.

🤖 Generated with Claude Code

… block

Since the #202 overhaul deleted .translate/ on reset without re-creating
it, harness targets have run with no config at all — diverging from
production, where every edition now carries an editors: block
(project-translation#24, merged fleet-wide 2026-08-18). The reset now
writes the config per target: block-style YAML, primary first, mmcky as
the handle so future verdict-driven routing (#103) can never assign or
ping a real editor from a test repo. tool-version stays absent until a
CLI write stamps it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings August 18, 2026 01:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the E2E harness target-repo reset to recreate .translate/config.yml so test repositories mirror production’s translate configuration (including the editors: routing block) after the reset step wipes .translate/.

Changes:

  • Create .translate/config.yml during each target repo reset with source-language, target-language, docs-folder, and an editors: block.
  • Ensure .translate/ exists before writing config so subsequent harness steps operate with a production-like layout.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tool-test-action-on-github/test-action-on-github.sh Outdated
…readConfig's

The engine's readConfig (js-yaml) is style- and order-agnostic; the
block-style / primary-first requirement comes from the
status-translations collector's line-based parser. Addresses Copilot's
review comment.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mmcky
mmcky merged commit 38a6a55 into main Aug 18, 2026
1 check passed
@mmcky
mmcky deleted the harness-editors-fixture branch August 18, 2026 02:02
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.

2 participants