You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A submission already in the target branch fails as an empty commit and the thread is told the translation could not be used #695
Both reach Create branch and commit with every earlier step green: the path and language check passes, Validate submitted content passes, the App token is minted and the target repository is checked out. The step then writes the file, git add stages nothing, and git commit exits non-zero because there is no change. The step fails, Create Pull Request and Close issue with PR link are skipped, and Report failure on the issue posts the generic note:
⚠️ This translation could not be turned into a pull request. Your translation is safe ... A maintainer has been alerted and will re-run it.
That note is wrong in both directions. The translation is not waiting for anything: it is shipped. A re-run can only fail the same way, because the text is already in the branch. The thread stays open and reads as a fault in the app or in the submission, and a maintainer who re-runs it gets the same failure again.
Expected
An empty commit is a success for the translator, not a failure. The job sees that the submitted text equals the text in the target branch, posts a note saying the translation is already in the branch and naming the commit or the pull request that landed it, and closes the issue. No pull request is needed and no failure note goes out.
Reproduce
Dispatch submit_translation.yml with issues=ALL. Run 36878698113 is the one measured here.
Read the TRANSLATION_META block and the <content> block of [translate] kab: OpenVoiceOS/ovos-skill-alerts — whole_day.dialog #472, decode the base64, and read locale/kab/dialog/words/whole_day.dialog on the dev branch of OpenVoiceOS/ovos-skill-alerts. The two are byte-identical, ass kamel\nkra yekka wass\n.
Create branch and commit in the create-pr job of .github/workflows/submit_translation.yml. The step runs git add and then git commit with no guard for an empty index.
Also worth checking
Whether the failure note can carry the cause instead of one generic sentence. Five causes are on record from one run: a missing App installation on the target repository, a target repository that no longer exists, a target repository that is archived, a path whose language disagrees with the submission, and this one. All five produce the same note, so a thread cannot be triaged without opening the run.
Activity
fix: close a submission whose text is already in the target branch
fix: close a submission whose text is already in the target branch
fix: close a submission whose text is already in the target branch
fix: close a submission whose text is already in the target branch (#697