make ci fails on a fresh worktree: the web coverage floor assumes a built SPA #105
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
[claude 2026-08-23] Found independently by two agents in the same hour, and reproduced here.
internal/server/web's coverage floor is 95, baselined against a tree whereweb/buildhas been compiled intointernal/server/web/dist. A fresh checkout or a new git worktree embeds only.gitkeep, soTestInlineScriptHashesCoversBuiltSPAskips, the package reads 89.2%, and the coverage gate fails.The failure names
internal/server/web— a package the branch under test never touched — so it reads as a regression the author caused. Runningmake webonce takes it to 97.3% and all 54 gated packages pass.Reproduced on branch
loud-misconfigurationin a fresh worktree:make cifailed the gate; after amake webthe same tree passed withinternal/server/web 97.3% (floor 95%).The fix, roughly
Either
covergains a dependency onweb, or the gate detects an unbuilt dist and says "UI not built — run make web" instead of reporting a coverage regression. The second is cheaper and more honest: it tells the truth about why the number moved rather than silently building a SPA inside a coverage target.Why it matters more than it looks
This is the third gate in the tree that compares against something not present in a clean checkout —
proto-checkdiffs generated code against the COMMIT (so an uncommitted.protochange always fails), andshape-checkdoes the same for the generated import graph (so adding one import fails until the regenerated docs are committed in the same commit). Each is individually defensible; together they mean a correct branch can fail CI three different ways with a message that blames the wrong thing. Worth a pass over all three to make the diagnosis say what to run.Migrated from git-collab issue
481e55be69a9f42ce865720147203b7471c422ce.Original author: a73x dev@a73x.sh.