pub enum Outcome {
Passed,
Failed,
Warned,
Fixed,
Unavailable,
Inert,
Deferred,
Skipped,
}Expand description
What a check meant, as opposed to what it printed.
The fourth variant is the point. Fifteen sites used to warn and return 0,
collapsing two different situations: “I ran and found something you should
know” and “I could not run at all”. ruff config found but no ruff binary
was indistinguishable from ruff running clean — to the dispatcher, and to
the dashboard. A repository where a check has silently never executed read
as one where it passes.
That is the same invisibility hook.skip had before skipped checks were
announced, and it took three PRs to notice there.
The check still prints its own message; this only classifies the result.
Deliberately NO Default. It used to be Failed, to fill the slot of a
check whose thread died — a real rule, but Default means “the neutral
value” to every reader and to every #[derive(Default)] that might later
contain one. The rule is now written where it applies, in the runner.
Variants§
Passed
Failed
Ran, found a problem. Whether that blocks is Severity, not this.
Warned
Ran, found something worth saying, which does not block.
Fixed
Ran, found a problem, and REPAIRED it. The commit proceeds with the
repair staged, which is neither Passed (something happened, and the
author should know their files changed) nor Failed.
COULD NOT RUN — a tool is missing, or a precondition it needs to answer at all is not met.
Inert
NOTHING TO DO HERE — the repository lacks the marker that turns
the check on, so it judged nothing. Neither Passed (nothing was
verified, so nothing may be stamped or attested) nor
Unavailable (nothing is wrong: amont list calls this “inert”,
and a check that is inert by the registry’s own account has no
business announcing that it could not run).
Deferred
DEFERRED TO CI — a Heavy check whose host slot did not free within
slotWait under onBusy defer (ADR-0013). It did not run, so nothing
may be stamped or attested and CI runs it; it never blocks, whatever
the severity, because nothing was judged.
Skipped
SKIPPED — a Heavy pre-commit check that never started, because a Light check before it already blocked the commit (ADR-0020). Nothing was judged, so nothing may be stamped or attested; it never blocks by itself (the Light failure does), and it is always said, so a commit that was refused never reads as one whose suite passed.