Re-running one failed job of a pipeline run makes the packaging jobs fail because the draft release lacks a binary #407

Closed
opened 2026-11-12 23:29:29 -05:00 by claude · 1 comment
Owner

What happened

In the pull-request run 1520 one job, Test .NET, failed on an unrelated timing test (#406). Re-running only that job (the "re-run job" action, not "re-run all jobs") made the run fail again, in three jobs that had passed on the first attempt:

  • Build Arch Linux Packages
  • Build and Test Deb and RPM Packages
  • Build and Push Image

Each failed within three seconds, in its Checkout Sources step:

Downloading ninlil-linux-amd64
The draft for v2026.11.13.1R400+db94f03 has no attachment named ninlil-linux-arm64.
[runner]: RUN exit status 1

Likely cause (not confirmed)

On the second attempt the jobs downstream of the re-run job ran again, while most Build Binary jobs were shown as skipped. The draft release the packaging jobs download from did not hold every binary at that moment: either the draft was staged again and lost the attachments of the first attempt, or the packaging jobs started before the binaries were attached again. The job log does not say which.

Why it matters

A single flaky test job costs a whole second pipeline, because the only re-run that works is "re-run all jobs". On a busy runner that is 30 to 60 minutes.

Wanted

  • Find out what a single-job re-run does to the draft release and to the job graph (which jobs run again, which are skipped, in what order).
  • Then either make a single-job re-run work (the packaging jobs find every binary), or make it fail early with a message that says to re-run the whole run, and say so in CONTRIBUTING.md beside the note on runs that stay waiting.

Workaround

Re-run the whole run. If the run is not finished, cancel it first.

**What happened** In the pull-request run 1520 one job, Test .NET, failed on an unrelated timing test (#406). Re-running only that job (the "re-run job" action, not "re-run all jobs") made the run fail again, in three jobs that had passed on the first attempt: - Build Arch Linux Packages - Build and Test Deb and RPM Packages - Build and Push Image Each failed within three seconds, in its Checkout Sources step: ``` Downloading ninlil-linux-amd64 The draft for v2026.11.13.1R400+db94f03 has no attachment named ninlil-linux-arm64. [runner]: RUN exit status 1 ``` **Likely cause (not confirmed)** On the second attempt the jobs downstream of the re-run job ran again, while most Build Binary jobs were shown as skipped. The draft release the packaging jobs download from did not hold every binary at that moment: either the draft was staged again and lost the attachments of the first attempt, or the packaging jobs started before the binaries were attached again. The job log does not say which. **Why it matters** A single flaky test job costs a whole second pipeline, because the only re-run that works is "re-run all jobs". On a busy runner that is 30 to 60 minutes. **Wanted** - Find out what a single-job re-run does to the draft release and to the job graph (which jobs run again, which are skipped, in what order). - Then either make a single-job re-run work (the packaging jobs find every binary), or make it fail early with a message that says to re-run the whole run, and say so in CONTRIBUTING.md beside the note on runs that stay waiting. **Workaround** Re-run the whole run. If the run is not finished, cancel it first.
Author
Owner

Correction to the likely cause above, from Forgejo's task list for run 1520 (read through the API by the verifier of the first fix attempt):

  • Attempt 1: Test .NET failed. Stage Draft Release, all five Build Binary legs, the Windows smoke test and the Arch, Deb and Image jobs were skipped. No draft and no binary existed.
  • Attempt 2 (only Test .NET re-run): Test .NET passed and Stage Draft Release created a fresh draft. Only one of the five Build Binary matrix legs got a task (linux-amd64); the NuGet matrix likewise ran only common. Thirteen seconds after that one leg ended, the Arch, Deb and Image jobs started and failed on the missing ninlil-linux-arm64.

So the draft was not emptied. After a single-job re-run, Forgejo (runner v13.2.1) started one leg of each matrix job that had not run before and then treated the matrix job as done. This is read from the task list, not from Forgejo's source.

Not explained: Smoke Test the Windows Binary passed in attempt 2 although the Windows binary was not built in it.

The cause is outside the repository, so the fix here is a clear failure message in the download step and a documented procedure (always re-run all jobs). A first attempt that changed how the draft is staged is being withdrawn: it would not have helped, and it touched the release path.

Correction to the likely cause above, from Forgejo's task list for run 1520 (read through the API by the verifier of the first fix attempt): - **Attempt 1:** `Test .NET` failed. `Stage Draft Release`, all five `Build Binary` legs, the Windows smoke test and the Arch, Deb and Image jobs were skipped. No draft and no binary existed. - **Attempt 2 (only `Test .NET` re-run):** `Test .NET` passed and `Stage Draft Release` created a fresh draft. Only one of the five `Build Binary` matrix legs got a task (linux-amd64); the NuGet matrix likewise ran only `common`. Thirteen seconds after that one leg ended, the Arch, Deb and Image jobs started and failed on the missing `ninlil-linux-arm64`. So the draft was not emptied. After a single-job re-run, Forgejo (runner v13.2.1) started one leg of each matrix job that had not run before and then treated the matrix job as done. This is read from the task list, not from Forgejo's source. Not explained: `Smoke Test the Windows Binary` passed in attempt 2 although the Windows binary was not built in it. The cause is outside the repository, so the fix here is a clear failure message in the download step and a documented procedure (always re-run all jobs). A first attempt that changed how the draft is staged is being withdrawn: it would not have helped, and it touched the release path.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#407
No description provided.