Commit bb12bb7
Add a daily translation-sync job (#23001)
* Add daily translation-sync job (Buildkite + fastlane)
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.
* Fix translation-sync git identity and use proper git helpers
- 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.
* Run translation-sync on mac-metal (where use-bot-for-git is available)
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.)
* Disable translation-sync failure notifications
Comment out the notify block; the channel is pre-set to #wpmobile for if/when
it is re-enabled.
* Prune orphaned translations as a separate commit in update_translations
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.
* Send translation-sync failure notifications to the test Slack channel
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.
* Align download-translations.sh with sibling command-script style
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.
* Update daily translation lane to warn against manual changes
Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>
* Update daily translation lane to abort if the branch can't be checked out
Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>
* Use modifier unless for checkout_and_pull guard (RuboCop Style/IfUnlessModifier)
---------
Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>1 parent b7a8374 commit bb12bb7
3 files changed
Lines changed: 106 additions & 0 deletions
File tree
- .buildkite
- commands
- schedules
- fastlane/lanes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
375 | 375 | | |
376 | 376 | | |
377 | 377 | | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
378 | 444 | | |
379 | 445 | | |
380 | 446 | | |
| |||
0 commit comments