Repository navigation
Conversation
athvin
pushed a commit
that referenced
this pull request
Nov 5, 2026
`skipped` is only trustworthy when the job that decided to skip SUCCEEDED. Every expensive job is gated on `needs.detect.outputs.*`. When a `detect` job FAILS, its dependents report `skipped` — and branch protection accepts `skipped` as satisfied. So a PR can show all twelve required contexts satisfied with not one of them having run. Found on #473 while looking for a merge-bus candidate: two Rust files changed, all three detect jobs failed in the Actions-minutes outage, all 12 required contexts `skipped`, `mergeStateStatus` CLEAN. It was mergeable — by hand or by the bus — with nothing compiled or tested. A scan of every open PR found it was the only one left in that state; the others had been pushed to since. This is the same "a false skip is the worst failure mode available" that the `grep -c`-not-`grep -q` rule exists for, reached by a different route: there the detect job lies, here it dies. It also defeats the aggregator gates, since `test` and `DuckLake + extensions e2e` gate on `needs.detect.outputs.code == 'true'` and an empty output skips the gate before its fail-closed `case` can run. Requiring the detect contexts in protection is not the fix — three jobs under two names, and a required context that legitimately does not report blocks every PR forever. Checking it at the point of use is cheap and precise, so the bus now reads the candidate's check-runs and refuses one whose detect jobs concluded `failure`, naming the remedy ("re-run CI before batching"). Simulator covers it as `detect-died`: the unverified candidate is skipped with its reason, the genuinely-verified members still ride, and the unverified one is never merged. Mutation-tested by deleting the check. Suite now 67 assertions. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
athvin
force-pushed
the
bm/run-mode-declared
branch
from
November 5, 2026 11:49
fbd4daa to
1b144ba
Compare
athvin
added a commit
that referenced
this pull request
Nov 5, 2026
…ing (#490) `skipped` is only trustworthy when the job that decided to skip SUCCEEDED. Every expensive job is gated on `needs.detect.outputs.*`. When a `detect` job FAILS, its dependents report `skipped` — and branch protection accepts `skipped` as satisfied. So a PR can show all twelve required contexts satisfied with not one of them having run. Found on #473 while looking for a merge-bus candidate: two Rust files changed, all three detect jobs failed in the Actions-minutes outage, all 12 required contexts `skipped`, `mergeStateStatus` CLEAN. It was mergeable — by hand or by the bus — with nothing compiled or tested. A scan of every open PR found it was the only one left in that state; the others had been pushed to since. This is the same "a false skip is the worst failure mode available" that the `grep -c`-not-`grep -q` rule exists for, reached by a different route: there the detect job lies, here it dies. It also defeats the aggregator gates, since `test` and `DuckLake + extensions e2e` gate on `needs.detect.outputs.code == 'true'` and an empty output skips the gate before its fail-closed `case` can run. Requiring the detect contexts in protection is not the fix — three jobs under two names, and a required context that legitimately does not report blocks every PR forever. Checking it at the point of use is cheap and precise, so the bus now reads the candidate's check-runs and refuses one whose detect jobs concluded `failure`, naming the remedy ("re-run CI before batching"). Simulator covers it as `detect-died`: the unverified candidate is skipped with its reason, the genuinely-verified members still ride, and the unverified one is never merged. Mutation-tested by deleting the check. Suite now 67 assertions. Co-authored-by: bmoore813 <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
runs.modecarries an enumeration —er_schema::model::RUN_MODES, declared on the registry'senum_mapand repeated in the entity's own description as "(full, incremental, correction_pass, ...)". The correction pass wrotecorrect, which was never a member of it.Nothing enforced the enumeration at write time, so the row was accepted and the value simply sat there — undeclared, in a constrained column.
Why it stayed invisible
Three things had to line up:
enum_mapdeclares the vocabulary for the registry and the generated DDL; it does not become a check constraint, so the write succeeded.er_versions::rebuild_reason_forcompares a run's mode againstMODE_CORRECTION_PASSand so could never matchcorrect— but it has no production caller today. That is the only reason this was latent rather than a wrong answer waiting to be read.lake_e2eassertedmode == "correct", so the assertion agreed with the writer for as long as the writer was wrong. It now asserts the declared constant.It also recently became visible: the DAG path's
initpublishesMODE_CORRECTION_PASSin its run plan, so the plan and the row it describes disagreed on one string.Scope
The job kind is still
correct— a different vocabulary, and untouched. Only the ledger's mode moves. I checked the fixtures: no golden pins the value, so nothing else changes.Verified
make checkgreen, and the 44-testlake_e2esuite green against a real DuckLake — including the assertion that now requires the declared mode.Note on CI: every workflow is currently failing at job startup with "The job was not started because recent account payments have failed or your spending limit needs to be increased", so this cannot go green until Actions billing is restored. It is verified locally in the meantime.
🤖 Generated with Claude Code