fix(756): extend the dropped-step guard to docker-build.yml's required jobs, where a drop is fail-OPEN (#768)
Build ErsatzTV Image / Build & test (.NET) (push) Successful in 9m0s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (push) Successful in 6m24s
Build ErsatzTV Image / Functional E2E (curl + UI contracts) (push) Failing after 6m8s
Build ErsatzTV Image / API docs in sync (OpenAPI + endpoint index) (push) Skipped
Build ErsatzTV Image / Formatting (changed .cs conform to .editorconfig) (push) Skipped
Build ErsatzTV Image / Build & push image (amd64) (push) Successful in 4m42s
Build ErsatzTV Image / Build & test (.NET) (push) Successful in 9m0s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (push) Successful in 6m24s
Build ErsatzTV Image / Functional E2E (curl + UI contracts) (push) Failing after 6m8s
Build ErsatzTV Image / API docs in sync (OpenAPI + endpoint index) (push) Skipped
Build ErsatzTV Image / Formatting (changed .cs conform to .editorconfig) (push) Skipped
Build ErsatzTV Image / Build & push image (amd64) (push) Successful in 4m42s
A `run:` body the runner declines to interpolate is dropped, and the job still concludes `success` (#751). #751 fixed that in review-verdict.yml, where the failure is fail-CLOSED. This closes the two places where it is fail-OPEN: `Build & test (.NET)` and `EF migration integrity (SQLite + MySql)` are the other two required contexts on `main`, so a dropped step there sends a required check green having done no work. Per-STEP markers, not per-job as proposed: a marker on the first step only proves the job began, while the drop that costs something is `Test`, `Build` or a migration replay. The trailing guard carries no `if:` — with a dozen steps, `always()` would announce a false "these steps never executed" on every ordinary red build; the default `success()` is correct because guard-skipped implies job-red. Plus a ban on the raw `${{` opener in `test`, `migrations` and `build`, which makes the class unreachable rather than merely caught. `build` is included because its Smoke step runs AFTER the image is pushed. Measured live on the build lane in both directions: probe #765 (drop caught, sole failure in the job) and #766 (a failing continue-on-error step does not skip the guard). 510 tests, 30 mutations killed across two harnesses, five cold review rounds across two model families. Residual tracked as #767: the `build` ban is review-time only, not fail-closed on the release path. fixes #756 Co-authored-by: Timothy <timothy@noreply.gitea.tblindustries.be>
This commit was merged in pull request #768.
This commit is contained in:
@@ -2321,9 +2321,11 @@ def _workflow_files():
|
||||
def test_the_verdict_workflow_has_NO_expression_delimiter_in_any_run_body():
|
||||
"""The absolute rule, and it is scoped to this one file on purpose.
|
||||
|
||||
Other workflows legitimately interpolate into a `run:` body (7 occurrences across
|
||||
docker-build/ci-image/pr-checks today), so a repo-wide ban would be false and would be deleted
|
||||
the first time it got in someone's way. This file is different in two ways that justify the
|
||||
Other workflows legitimately interpolate into a `run:` body (5 occurrences today across
|
||||
ci-image, docker-build's `api-docs`/`format`, and pr-checks' two git-diff gates), so a
|
||||
repo-wide ban would be false and would be deleted the first time it got in someone's way.
|
||||
`test`, `migrations` and `build` carry their own absolute ban — see
|
||||
scripts/tests/test_ci_dropped_step_guard.py (ersatztv#756). This file is different in two ways that justify the
|
||||
strict rule: it writes the branch-protection-required status, so a dropped step here is a dead
|
||||
merge gate rather than a failed build; and its `run:` bodies are ~700 lines of dense prose,
|
||||
which is the only place the delimiter has ever appeared by accident.
|
||||
|
||||
Reference in New Issue
Block a user