submit_translation: a target repository that is gone fails with the same signature as a missing App installation

Open
#693 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
66/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions
Domain
ci-cd

Research direction

Read .github/workflows/submit_translation.yml, focusing on the Generate GitHub App token, Create branch and commit, and Report failure on the issue steps. Dispatch submit_translation.yml with issues=ALL and inspect the referenced jobs to distinguish an uninstalled App, a missing repository, and an archived repository. Done means each state produces a specific issue note, and archived repositories are detected before the commit.

Written by the indexing model from the issue text.

Description

🤖 Auto-generated by Claude Opus 5 (claude-opus-5) via Claude Code — NOT human-reviewed. Verify before acting. Every step conclusion and log line quoted below was read from the run's own job logs.

Observed

A target repository that cannot take a pull request is reported to the translator as a problem a re-run will clear. Three different states do this, and the thread cannot tell them apart.

submit_translation.yml mints the App token for one owner and one repository in the Generate GitHub App token step. That step fails in two of the three:

  1. The ovos-localize GitHub App is not installed on the target repository. GET /repos/<owner>/<repo>/installation returns 404 under the App's own credential.
  2. The target repository does not exist any more. The same step fails with the same signature.

The third state passes every step, including the commit, and fails on the push:

  1. The target repository is archived. Create branch and commit commits the file in the runner's clone and the push then gets remote: This repository was archived so it is read-only. and error: 403.

The failure path posts the same note on all three kinds of thread, and that note says a maintainer will re-run the submission. In state 1 that is true. In states 2 and 3 it is false, and the thread stays open for good.

Expected

The app names which state it met and stops promising a re-run when no re-run can work.

  • App not installed: the thread says the App needs an installation, and names the owner and the repository that need it. Somebody installs it and the re-run then works.
  • Repository gone: the thread says so. The submitted text stays in the issue and nothing is lost.
  • Repository archived: the thread says so. No installation and no re-run changes it while the repository stays archived.

State 3 is worth catching before the commit. The job mints a token, clones the repository and builds a commit that can never be pushed.

Reproduce

  1. Dispatch submit_translation.yml with issues=ALL. Run 36878698113 is the one measured here.
  2. Read the jobs for #458, #560, #593, #690, #578 and #579. All six fail at Generate GitHub App token.
  3. Ask GitHub whether each target repository resolves. TigreGotico/ovos-transcription-validator-plugin and OpenVoiceOS/ovos-ddg-solver-plugin both resolve, are public and are not archived, so #458, #560, #593 and #690 are state 1. OpenVoiceOS/ovos-machine-translations does not resolve, so #578 and #579 are state 2.
  4. Read the job for #262. Every step is green through Checkout target repo. Create branch and commit prints 1 file changed, 49 insertions(+) and then fails on the push with the archive 403. OpenVoiceOS/ovos-solver-YesNo-plugin reports isArchived=true, so #262 is state 3.
  5. Compare the note the app posted on the seven threads. The note is the same, and nothing in it says which state applies.

#560, #593 and #690 are one submission sent three times.

Where

.github/workflows/submit_translation.yml: the Generate GitHub App token step and the push in Create branch and commit of the create-pr job, and the Report failure on the issue step that writes the note.

Dominant language
Python
Stars
8
Forks
4
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from OpenVoiceOS/ovos-localize

All issues in OpenVoiceOS/ovos-localize

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.