fix(786): state the dropped-step invariant instead of a step count that was wrong
Self-review of the rows added in the previous commit. They said `test` had "13 of 19 steps marked" and `migrations` "7 of 9". Measured: 12 of 19 and 6 of 9 carry `ci-step-ran.sh mark`. The 13th and 7th steps carry `assert`, not `mark` — an aggregate of two different things, copied without re-deriving it. Replaced with the invariant rather than a corrected number: every consequential step marks and the final step asserts, which is what test_ci_dropped_step_guard.py actually enforces. A count in prose is a second copy of the workflow that rots on the next step added; the invariant does not. Refs #786
This commit is contained in:
@@ -291,8 +291,8 @@ look like: an **inline** assertion cannot be unit-tested without running the job
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `dependency-scan.yml::scan` | a weekly/dispatch run, when `dotnet list package --vulnerable` reports a vulnerable direct or transitive package | GUARD | inline — `grep -q "has the following vulnerable packages"` over the restore output | NONE |
|
||||
| `docker-build.yml::toolchain-preflight` | every downstream job, when the pinned toolchain tag no longer resolves in the registry | GUARD | `scripts/ci-toolchain-image-resolves.sh` | that script's row above |
|
||||
| `docker-build.yml::test` | a merge — the REQUIRED context `Build ErsatzTV Image / Build & test (.NET)` | GUARD | the `dotnet test` / `npm test` suites, which include the C# and TypeScript structural guards named in scope-limit item 2 above | `scripts/ci-step-ran.sh` covers a dropped step (13 of 19 steps marked); the suites carry their own assertions |
|
||||
| `docker-build.yml::migrations` | a merge — the REQUIRED context `Build ErsatzTV Image / EF migration integrity (SQLite + MySql)` | GUARD | `dotnet ef migrations has-pending-model-changes` plus apply-to-fresh-DB, per provider | `scripts/ci-step-ran.sh` covers a dropped step (7 of 9 steps marked) |
|
||||
| `docker-build.yml::test` | a merge — the REQUIRED context `Build ErsatzTV Image / Build & test (.NET)` | GUARD | the `dotnet test` / `npm test` suites, which include the C# and TypeScript structural guards named in scope-limit item 2 above | `scripts/ci-step-ran.sh` covers a dropped step — every consequential step `mark`s and the final step `assert`s, which is the mechanism `test_ci_dropped_step_guard.py` enforces on this job; the suites carry their own assertions |
|
||||
| `docker-build.yml::migrations` | a merge — the REQUIRED context `Build ErsatzTV Image / EF migration integrity (SQLite + MySql)` | GUARD | `dotnet ef migrations has-pending-model-changes` plus apply-to-fresh-DB, per provider | `scripts/ci-step-ran.sh` covers a dropped step — same `mark`/`assert` mechanism, enforced on this job by `test_ci_dropped_step_guard.py` |
|
||||
| `docker-build.yml::functional-e2e` | a PR or a push to `main`, on a broken curl or UI contract | GUARD | `scripts/e2e-local.sh` + `scripts/e2e-ui.sh` | those scripts' rows above (both `TOOLING`); no dropped-step guard — see the decision table below |
|
||||
| `docker-build.yml::scan` | the release path, when a banned expression delimiter appears in a marked job's `run:` body | GUARD | `scripts/tests/test_ci_dropped_step_guard.py`, `…/test_ci_release_path_scan_job.py`, `scripts/ci-prove-ban-detects.sh` | those files' rows above |
|
||||
| `docker-build.yml::api-docs` | a PR whose committed OpenAPI spec, endpoint index or SPA client types are stale | GUARD | inline — `git diff --exit-code` after re-running `scripts/update-openapi.sh` | NONE |
|
||||
|
||||
Reference in New Issue
Block a user