[shared] fix(ci): set the self-CI coverage floor in unit.json #87

Merged
cjournois merged 1 commit from fix/ci-ci-reusable-pipeline-772a810 into main 2026-11-03 10:40:23 +00:00
Collaborator

CI on main fails "min_coverage is 95 but the unit has no test-coverage recipe" since #85: the self-CI passes no unit input, so facts mode ignores its min_coverage: 0. Consumers are unaffected; only this repo's own unit.json and self-CI caller change.

Verified: just lint test passes (556 bats); the new unit-facts test fails without unit.json.
Run: https://git.journois.com/cjournois/reusable-pipeline/actions/runs/692

Session: 52c8894b-ec6d-4887-b203-be67165a95bc

CI on main fails "min_coverage is 95 but the unit has no test-coverage recipe" since #85: the self-CI passes no unit input, so facts mode ignores its `min_coverage: 0`. Consumers are unaffected; only this repo's own unit.json and self-CI caller change. Verified: `just lint test` passes (556 bats); the new unit-facts test fails without unit.json. Run: https://git.journois.com/cjournois/reusable-pipeline/actions/runs/692 Session: 52c8894b-ec6d-4887-b203-be67165a95bc
fix(ci): set the self-CI coverage floor in unit.json
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 5m44s
8293837343
Signature: "min_coverage is 95 but the unit has no test-coverage recipe" on main since #85 (run 692).
Evidence: the self-CI passes no unit input, so facts mode applies and ignores its `min_coverage: 0`.
Fix: a root unit.json declares min_coverage 0; the now-ignored input is dropped from the caller.
Confidence: high; unit-facts on the root printed 95 before and 0 after, and a bats test pins it.
Session: 52c8894b-ec6d-4887-b203-be67165a95bc
bot-claude force-pushed fix/ci-ci-reusable-pipeline-772a810 from 8293837343
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 5m44s
to fb5abbc2bf
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 6m26s
2026-11-03 09:16:59 +00:00
Compare
Author
Collaborator

Addressed:

  • .github/workflows/ci-reusable-pipeline.yml:14 — the reason for the 0 floor (the bats suite has no coverage number to gate) moved from the dropped YAML comment into the commit body; the tree is unchanged.

Session: 52c8894b-ec6d-4887-b203-be67165a95bc

Addressed: - .github/workflows/ci-reusable-pipeline.yml:14 — the reason for the 0 floor (the bats suite has no coverage number to gate) moved from the dropped YAML comment into the commit body; the tree is unchanged. Session: 52c8894b-ec6d-4887-b203-be67165a95bc
Author
Collaborator

Addressed:

  • tests/unit-facts.bats:187 — renamed to "this repo's own unit resolves to facts mode with no coverage floor", which is what it asserts.

Session: 52c8894b-ec6d-4887-b203-be67165a95bc

Addressed: - tests/unit-facts.bats:187 — renamed to "this repo's own unit resolves to facts mode with no coverage floor", which is what it asserts. Session: 52c8894b-ec6d-4887-b203-be67165a95bc
bot-claude force-pushed fix/ci-ci-reusable-pipeline-772a810 from fb5abbc2bf
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 6m26s
to 6860cef65d
All checks were successful
ci: reusable-pipeline / CI Pipeline (pull_request) Successful in 5m36s
ci: reusable-pipeline / CI Pipeline (push) Successful in 5m45s
2026-11-03 09:30:21 +00:00
Compare
bot-claude changed title from WIP: [shared] fix(ci): set the self-CI coverage floor in unit.json to [shared] fix(ci): set the self-CI coverage floor in unit.json 2026-11-03 09:37:22 +00:00
bot-claude left a comment

Verdict: pass-with-nits

No required changes. Facts mode ignored the caller's min_coverage: 0; the root unit.json now sets it, as the v6 design intends. Only min_coverage changes on the self-CI, release and check paths. just lint test green (556 bats); the new test fails without unit.json. CI green on 6860cef.

Nits:

  • tests/unit-facts.bats:186 — also assert .profile = check, so the reason for the 0 floor shows if the root ever gains a Containerfile.

Session: 52c8894b-ec6d-4887-b203-be67165a95bc

Verdict: pass-with-nits No required changes. Facts mode ignored the caller's `min_coverage: 0`; the root unit.json now sets it, as the v6 design intends. Only `min_coverage` changes on the self-CI, release and check paths. `just lint test` green (556 bats); the new test fails without unit.json. CI green on 6860cef. Nits: - tests/unit-facts.bats:186 — also assert `.profile = check`, so the reason for the 0 floor shows if the root ever gains a Containerfile. Session: 52c8894b-ec6d-4887-b203-be67165a95bc
bot-claude removed their assignment 2026-11-03 09:37:27 +00:00
bot-claude 2026-11-03 09:37:27 +00:00
Author
Collaborator

Needs a decision: merge as-is, or add the one-line nit in the review above first. Main's CI stays red until this lands.

No required change is left. CI is green on 6860cef and just lint test passes. I stopped because the routine caps fixes at two rounds per PR, and the last review still listed a nit, so it would not merge on its own.

Related follow-up, outside this PR: facts mode silently ignores a caller's min_coverage, skip_test and build_context. home-assistant passes only min_coverage: 0 (at 5.4.0) and will fail the same way when it moves to 6.x. A warning in unit-facts.sh, or docs pointing those inputs at unit.json, would close that gap.

To merge: merge with a rebase. To get the nit fixed: reassign to bot-claude.

Session: 52c8894b-ec6d-4887-b203-be67165a95bc

Needs a decision: merge as-is, or add the one-line nit in the review above first. Main's CI stays red until this lands. No required change is left. CI is green on 6860cef and `just lint test` passes. I stopped because the routine caps fixes at two rounds per PR, and the last review still listed a nit, so it would not merge on its own. Related follow-up, outside this PR: facts mode silently ignores a caller's `min_coverage`, `skip_test` and `build_context`. home-assistant passes only `min_coverage: 0` (at 5.4.0) and will fail the same way when it moves to 6.x. A warning in `unit-facts.sh`, or docs pointing those inputs at unit.json, would close that gap. To merge: merge with a rebase. To get the nit fixed: reassign to bot-claude. Session: 52c8894b-ec6d-4887-b203-be67165a95bc
cjournois deleted branch fix/ci-ci-reusable-pipeline-772a810 2026-11-03 10:40:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
needs-human
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
cjournois/reusable-pipeline!87
No description provided.