docs(420): sharpen the skip's honest hit-rate (rebase-before-merge) + cite live combined-status check
Build ErsatzTV Image / CI image pin matches docker/ci (pull_request) Successful in 6s
Build ErsatzTV Image / Docs update reminder (pull_request) Successful in 7s
Build ErsatzTV Image / decisions.md append-only (pull_request) Successful in 10s
Build ErsatzTV Image / Functional E2E (curl contracts) (pull_request) Successful in 5m18s
Build ErsatzTV Image / API docs in sync (OpenAPI + endpoint index) (pull_request) Successful in 7s
Build ErsatzTV Image / Formatting (changed .cs conform to .editorconfig) (pull_request) Successful in 6s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 14m21s
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 18m49s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped
Build ErsatzTV Image / CI image pin matches docker/ci (pull_request) Successful in 6s
Build ErsatzTV Image / Docs update reminder (pull_request) Successful in 7s
Build ErsatzTV Image / decisions.md append-only (pull_request) Successful in 10s
Build ErsatzTV Image / Functional E2E (curl contracts) (pull_request) Successful in 5m18s
Build ErsatzTV Image / API docs in sync (OpenAPI + endpoint index) (pull_request) Successful in 7s
Build ErsatzTV Image / Formatting (changed .cs conform to .editorconfig) (pull_request) Successful in 6s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 14m21s
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 18m49s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped
Review nits from the scoped #420 review. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+14
-5
@@ -390,7 +390,11 @@ the docs-only detect), and every heavy step gains an added `&& steps.revalidate.
|
||||
- `git rev-parse HEAD^{tree}` equals `HEAD^2^{tree}` — main did not advance since the PR's last run,
|
||||
a byte-identical tree;
|
||||
- `HEAD^2` has a **green Gitea combined commit status**, queried via the API with
|
||||
`ETV_STATUS_AUTH`.
|
||||
`ETV_STATUS_AUTH`. Trusting the aggregate `.state` is sound: a `skipped` context does **not** drag
|
||||
the combined state below `success` (verified live against this instance — a real merge commit with
|
||||
four `skipped` PR-only contexts still reported `.state == success`), and the two required jobs
|
||||
never report `skipped` (they always run and report a real `success`/`failure`), so
|
||||
`.state == success` implies they were green.
|
||||
|
||||
Those three jobs check out `fetch-depth: 2` so `HEAD^2` and its tree resolve.
|
||||
|
||||
@@ -405,10 +409,15 @@ change.
|
||||
missing/failing/non-`success` status, missing auth — resolves to `skip=false` and runs the full
|
||||
matrix. A false skip could ship an under-validated image, so every ambiguous case runs everything.
|
||||
|
||||
**Honest limitation.** The tree is identical only on a *fast-forward-equivalent* merge — main
|
||||
didn't advance between the PR's last green run and its merge. Under parallel merges main usually
|
||||
has advanced by then, so the skip fires mainly in quiet periods; it's correct-but-conservative by
|
||||
construction, not a general dedup.
|
||||
**Honest limitation — this fires rarely here, by design.** The tree is identical only on a
|
||||
*fast-forward-equivalent* merge: main did not advance since the PR's last green run **and** the PR
|
||||
head was not rebased at merge time. Two routine patterns defeat it in this repo: (1) under parallel
|
||||
merges main usually advances; and (2) — the bigger one — the standard workflow **rebases a PR
|
||||
before merging** to resolve the append-only `docs/decisions.md` conflict (see MEMORY: the
|
||||
"decisions.md conflict treadmill"), which mints a new head SHA whose tree was never itself
|
||||
CI-validated, so the tree-match check correctly declines. So the skip is a genuine but *occasional*
|
||||
win (clean, up-to-date, un-rebased merges in quiet periods) — correct-but-conservative by
|
||||
construction, not a general dedup. It never fires unsafely; when in doubt it runs the full matrix.
|
||||
|
||||
### `docs-reminder` job (non-blocking, PR-only)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user