ci: name which audit failure happened #13
No reviewers
Labels
No labels
waiting-on-julian
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
jlxq0/hevy-mcp!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/name-which-audit-failure"
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?
main'scargojob failed on99a213bwhile thev0.4.2tag job passed on the same commit eighteen seconds later.Fifty-one seconds, so not the two-second never-ran shape. Job logs are not retrievable on this instance, so I reproduced it locally with the same command:
Then two clean runs immediately after. Transient, and nothing to do with the commit.
Why that is worth a change rather than a re-run
A single
cargo auditstep is red both when a vulnerability exists and when the advisory database cannot be fetched, and those want opposite responses: one is a bump, the other is a re-run. With no logs, the job name is all anyone has, and it says the same thing either way.The fetch is now its own named step, cloning into a fresh
mktemp -d, andauditruns--no-fetch --dbagainst it. A redfetch advisory databaseis the network. A redauditis a finding.No retry on the fetch, for the reason this repository has now applied twice: a retry that succeeds hides how often the first attempt fails, and that rate is the measurement.
Both halves exercised, not assumed
The two steps were extracted from the YAML and run exactly as written:
And the split does not turn the gate into one that cannot fail. The same audit command against
v0.3.0's lockfile:That is the negative control, and it is the reason to trust the green above it.
Incidentally
cargo auditcurrently reports one allowed warning,chacha20 0.10.1 yanked, at exit 0. Not a vulnerability and not addressed here.Merging this also clears
main's red, since the merge produces a freshmainrun.