Skip to content

Rebase: also match resync/* branches (action-translation v0.18.1)#15

Merged
mmcky merged 3 commits into
mainfrom
rebase-match-resync-branches
Jul 21, 2026
Merged

Rebase: also match resync/* branches (action-translation v0.18.1)#15
mmcky merged 3 commits into
mainfrom
rebase-match-resync-branches

Conversation

@mmcky

@mmcky mmcky commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Brings this repo's rebase workflow in step with the upstream template as of action-translation v0.18.1.

Why the engine fix alone was not enough

The rebase workflow only fired for translation-sync-* branches, which the Action's sync mode creates. The CLI's translate forward --github creates resync/{stem} branches — so merging one resync PR never rebased its siblings. During a drift-recovery wave that leaves a stack of open PRs whose bases go stale with every merge, each re-enqueued by hand. Observed on the 69-PR lecture-python.zh-cn Track B wave.

That was fixed engine-side in v0.18.1 (#121, closing #115) — but the prefix turned out to be enforced in three places, and this workflow if is one of them. It gates whether the job runs at all, and it runs before the action does. So a repo can be pinned @v0, pick up the engine fix automatically, and still never rebase a resync PR, because the job never starts.

Both layers must list both prefixes. This PR is the workflow half.

Verification status

Per the harness-first policy, this is staged but should not merge until the fix is validated end-to-end on the test-translation-sync harness. The rebase path has never been exercised end-to-end, and the original defect was invisible precisely because its failure mode is silence — a job that skips looks identical to a job with nothing to do.

Part of Stage 1 follow-up; see QuantEcon/project-translation#9.

🤖 Generated with Claude Code

The rebase workflow only fired for `translation-sync-*` branches, which
the Action's sync mode creates. The CLI's `translate forward --github`
creates `resync/{stem}` branches, so merging one resync PR never
rebased its siblings — during a drift-recovery wave that leaves a stack
of open PRs whose bases go stale with every merge.

Fixed engine-side in action-translation v0.18.1, but the action-side
half is not sufficient on its own: this `if` gates whether the job runs
at all, and it runs before the action does. Both layers must list both
prefixes or the result is a job that never starts.

Brings this file in step with the upstream template as of that release.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 21, 2026 01:23

Copilot AI left a comment

Copy link
Copy Markdown

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 repository’s translation rebase GitHub Actions workflow to also run for resync/* branches (in addition to translation-sync-*), aligning behavior with upstream action-translation expectations so sibling translation PRs don’t go stale after merges.

Changes:

  • Expand the job if: gate to match both translation-sync-* and resync/* PR head branches.
  • Update workflow comments to document that both branch prefixes are supported and why.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/rebase-translations.yml Outdated
Comment thread .github/workflows/rebase-translations.yml
@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

📖 Netlify Preview Ready!

Preview URL: https://pr-15--verdant-toffee-3261a8.netlify.app

Commit: 95039c7


Build Info

The bare 'forward --github' is not a runnable invocation — the binary is
'translate'. Caught by Copilot on lecture-python-programming.fr#15;
applied estate-wide so the copies stay in step with the upstream
template, which gets the same fix.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mmcky
mmcky merged commit 379f0f5 into main Jul 21, 2026
2 checks passed
@mmcky
mmcky deleted the rebase-match-resync-branches branch July 21, 2026 04:14
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