Add a daily translation-sync job#23001
Open
oguzkocer wants to merge 10 commits into
Open
Conversation
Collaborator
Generated by 🚫 Danger |
Contributor
|
|
Contributor
|
|
New update_translations lane downloads the latest WordPress & Jetpack translations from GlotPress and opens/refreshes a single rolling translations/daily-update PR via release-toolkit's find_or_create_pull_request. A new scheduled Buildkite pipeline runs it daily.
- download-translations.sh: 'source use-bot-for-git' (like the release committing lanes) so the agent has a git identity/auth; drop configure_apply (not needed for translations). - update_translations lane: use GitHelper.create_branch / point_to_same_commit? and push_to_git_remote instead of raw git sh calls, mirroring release.rb.
The job commits, pushes and opens a PR, which needs the bot git identity from use-bot-for-git — only available on mac-metal agents, same as the release code-freeze/finalize lanes. (android only builds, so release-builds.yml stays there.)
a0c6285 to
9b0fdcf
Compare
Comment out the notify block; the channel is pre-set to #wpmobile for if/when it is re-enabled.
After downloading, prune keys no longer in the source strings (main/res vs main; jetpack/res vs main+jetpack) via android_prune_orphaned_translations and commit it separately, so the PR shows exactly what was pruned vs downloaded.
Re-enable the notify block, routed to #test-wpmobile-slack-integration while this flow is validated, mirroring the beta-promotion pipeline. Moves to #wpmobile once it ships to real use.
Use `#!/usr/bin/env bash` + `set -eu` (the more robust shebang recommended in review) and the `:rubygems: Setting up Gems` header, matching build-trunk-internal.sh, gather-beta-candidates.sh and promote-to-beta.sh.
1995e05 to
b7b36b5
Compare
jkmassel
reviewed
Jul 15, 2026
jkmassel
reviewed
Jul 15, 2026
Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>
… out Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Description
Adds a daily job that pulls the latest WordPress & Jetpack translations from GlotPress and opens (or refreshes) a single rolling PR, keeping
trunkcontinuously localized. Part of the Faster Releases effort.update_translationslane (fastlane/lanes/localization.rb): checks outtrunk, resetstranslations/daily-updateto it, runs the existingdownload_translations, and — only if there are new translations — force-pushes the branch and opens the PR via release-toolkit'sfind_or_create_pull_request. No new translations ⇒ no commit ⇒ no PR. The branch is reset each run, so the PR always shows the full current delta againsttrunk(no accumulation)..buildkite/commands/download-translations.sh:install_gems+configure_apply+bundle exec fastlane update_translations(mirrorsbeta-build.sh)..buildkite/schedules/download-translations.yml: the scheduled pipeline (mirrorsdependency-cache.yml); labels the PRLocalizationand notifies#android-core-notifson failure.Testing instructions
The lane is schedule-triggered, so normal PR CI does not exercise it. To verify it manually:
wordpress-androidpipeline for this branch with envPIPELINE=schedules/download-translations.yml.translations/daily-updatePR labelledLocalization.