fix(unit): honour a caller's min_coverage, skip_test and build_context #88

Closed
bot-claude wants to merge 1 commit from fix/facts-caller-inputs into main
Collaborator

Main CI has been red since v6 merged (runs 24427–24429): min_coverage is 95 but the unit has no test-coverage recipe. This repo's caller passes no unit inputs, so it runs in facts mode, and facts mode dropped the caller's min_coverage: 0. skip_test and build_context were dropped the same way, although unit.md promises those inputs keep working until the next major.

  • In facts mode, a min_coverage, skip_test or build_context passed by the caller now wins over unit.json.
  • Adds 2 bats cases and a note in unit.md.

Verified: just lint test passes (557 bats).
Note: this PR's own CI will still fail with the same error. The internal actions load scripts from @main, so the PR runs main's resolver, not this one. Main goes green once this is merged. 7.0.0 removes that coupling, along with unit.json.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3

Main CI has been red since v6 merged (runs 24427–24429): `min_coverage is 95 but the unit has no test-coverage recipe`. This repo's caller passes no unit inputs, so it runs in facts mode, and facts mode dropped the caller's `min_coverage: 0`. `skip_test` and `build_context` were dropped the same way, although `unit.md` promises those inputs keep working until the next major. - In facts mode, a `min_coverage`, `skip_test` or `build_context` passed by the caller now wins over `unit.json`. - Adds 2 bats cases and a note in `unit.md`. Verified: `just lint test` passes (557 bats). Note: this PR's own CI will still fail with the same error. The internal actions load scripts from `@main`, so the PR runs main's resolver, not this one. Main goes green once this is merged. 7.0.0 removes that coupling, along with `unit.json`. Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
fix(unit): honour a caller's min_coverage, skip_test and build_context
Some checks failed
ci: reusable-pipeline / CI Pipeline (pull_request) Failing after 12s
78baeb172b
In facts mode the resolver dropped them, so a caller's min_coverage: 0
was gated at 95 (this repo's own CI on main). Caller input now wins over
unit.json, as the docs promise until those inputs are removed.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
Author
Collaborator

Superseded: #87 already turned main green (root unit.json with min_coverage: 0). In 7.0.0, unit.json goes away and workflow inputs become the only configuration, so this facts-mode precedence fix has nothing left to fix. Closing without merging.

Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3

Superseded: #87 already turned main green (root `unit.json` with `min_coverage: 0`). In 7.0.0, `unit.json` goes away and workflow inputs become the only configuration, so this facts-mode precedence fix has nothing left to fix. Closing without merging. Session: 3acdb5a2-9a36-4c5c-9d3c-2e7c6ac1b8e3
bot-claude closed this pull request 2026-11-03 12:55:13 +00:00
Some checks failed
ci: reusable-pipeline / CI Pipeline (pull_request) Failing after 12s
Required
Details

Pull request closed

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!88
No description provided.