Re-running one failed job of a pipeline run makes the packaging jobs fail because the draft release lacks a binary #407
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil#407
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
Each failed within three seconds, in its Checkout Sources step:
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
Workaround
Re-run the whole run. If the run is not finished, cancel it first.
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):
Test .NETfailed.Stage Draft Release, all fiveBuild Binarylegs, the Windows smoke test and the Arch, Deb and Image jobs were skipped. No draft and no binary existed.Test .NETre-run):Test .NETpassed andStage Draft Releasecreated a fresh draft. Only one of the fiveBuild Binarymatrix legs got a task (linux-amd64); the NuGet matrix likewise ran onlycommon. Thirteen seconds after that one leg ended, the Arch, Deb and Image jobs started and failed on the missingninlil-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 Binarypassed 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.