Repository navigation
Conversation
Its condition had no status function, so GitHub added success(), which is false when extract and validate-extract were skipped upstream. They are skipped on every run with nothing to extract, so since the workflow landed no run has translated anything. Guard it the way publish-extract, collect and land already are.
[Medium impact] The code change appears safe to merge once the acknowledged credential setup is complete. SummaryUpdates
No new actionable issues found. GitHub Actions was not run during this review. Reviews (2) · Last reviewed commit: "Run the translate job when nothing neede..." · Reviewed by Greptile |
|
@dhh before merging we need to add the MUSE_API_KEY Actions secret to enable automatic translations |
|
This fixes a real bug, but #15549, opened two days earlier, makes the same fix. That one is the one going forward, and this one is waiting on the maintainer. What was checked: the job results of every Sync translations run on record. In all 74 runs that got past Both pull requests change only the The review is by Claude Opus 5.5. Codex Medium and muse-spark-1.3-contributor (pi, thinking high) were each asked which of the two should go forward, without being shown that answer. Both chose #15549 and found no case where the conditions differ. They had access to this session's work, so their agreement is not guaranteed to be independent. Codex Medium also classified this as a bug fix separately, and it agreed. Your point about |
|
Closing: #16559 merged the same fix to the translate job’s condition on Oct 25. |
The Sync translations workflow has not translated anything since it landed: in all 17 runs so far,
translatewas skipped. So every English string added since then is untranslated in all 49 languages. Today that is 20 items per language: the sevenstyle.font.cjkmenu entries from #15508, three CLI strings and ten manual chapters. It is also whytest/shell.d/i18n-test.shfails onquattro(da/menu.json mirrors the English catalog; it stops at the first language).Why
translatehadif: needs.prepare.outputs.locales != '[]'and no status function, so GitHub evaluates it assuccess() && (...).success()looks at every job upstream oftranslate, not just its directneeds, and is false when any of them was skipped.extractandvalidate-extractare skipped on every run that has nothing to extract, and they sit upstream oftranslatethroughpublish-extract.publish-extract,collectandlandalready start withalways() && !cancelled()for this reason;translatedidn't.From the log archive of the last run, 39072331078:
publish-extractsawextractandvalidate-extractasskipped.collectsawhas_work == 'true', and its collect step receivedEXPECTED_LOCALESwith all 49 languages. Sotranslate's own condition was true, and it was skipped anyway.GitHub documents this ("a failure or skip applies to all jobs in the dependency chain from the point of failure or skip onwards"), and it is tracked in actions/runner#2205.
What
translategets the same guard as its siblings, plus an explicit check thatprepareandpublish-extractsucceeded, so a failed or cancelled upstream job still stops it:Before merging
omacom/omarchyhas no Actions secrets or variables at all (checked with admin access: 0 repository secrets, 0 variables, 0 organization secrets available to it).omacom/omarchy-sitehas aMUSE_API_KEY, but secret values can't be copied, so whoever holds the key needs to add it here first. Merged without it,translatewould run on every sync and all 49 language jobs would stop at the workflow's own check ("Add the MUSE_API_KEY Actions secret to enable automatic translations."), turning each run red without translating anything.I18N_SYNC_TOKENis optional: without it the translations pull request still opens, but someone has to nudge it before auto-merge can pass. This stays a draft until the key is in place.Testing
actionlint1.7.12 (with shellcheck) reports nothing new; its one finding is an info-level shellcheck note inlandthatquattrohas too. Actions can't be run locally, so the real check is a manual run of the workflow after merging:translateshould run for the 49 pending languages and the run should open the auto-merging "Update translations" pull request.