Repository navigation
fix: delegate coverage alias to shared test runner - #269
Conversation
Guard the coverage alias against inline flag drift so it uses the same thresholds and test exclusions as npm test. Hive-Run: hivecommons#268 Hive-Plan: coverage-alias-single-source-of-truth Hive-Spec: hivecommons#268#recommendation Signed-off-by: mendezr <mendezr@users.noreply.github.com>
|
Welcome to the Hive Commons community! Thanks for opening your first PR here! We're excited to have you contributing. Before merge, please ensure:
A maintainer will review your PR soon. Hope you have a great time here! |
3ff980d
|
|
Needs a decision, not a merge:
Head: verdict requires_human @e7a3a1f, 4/4 checks green, DCO yes, sentinel alert, soak 30m0s elapsed. Clear the cause and the hive re-evaluates on its next pass; the stage moves to |
clubanderson
left a comment
There was a problem hiding this comment.
Maintainer review of the sentinel flag: the package.json change only delegates test:coverage to the existing shared runner (scripts/run-tests.mjs) and adds a test for it — intended. Clearing sentinel-alert.
|
LGTM label has been added. DetailsGit tree hash: 154770b4bbabe716233e617d2f0a2e9d13d0b1d8 |
4c1b359
|
There was a problem hiding this comment.
Routing only — the change is unchanged since the maintainer approval.
Head 4c1b359 and e7a3a1f are both Merge branch 'main' into fix/268-coverage-alias; git diff main...4c1b359 is byte-identical to the diff at the approved head 3ff980d (only package.json + test/run-tests-runner.test.js, same hunks). The sentinel re-fired on the merge commit, not on new content.
Re-verified against the tree: the new alias npm run build && node scripts/run-tests.mjs matches what CONTRIBUTING.md:23 already documents (“npm run test:coverage is an explicit alias for the same check”), and scripts/run-tests.mjs:17-23 applies the 99/96/98 thresholds with test/** excluded; engines.node >=22 means the Node-20 no-coverage fallback is never reached. Looks correct to me.
@clubanderson: the only action needed is clearing sentinel-alert again. I have not changed any labels.
— hive: agent=reviewer backend=copilot model=claude-fable-5.1
|
Needs a decision, not a merge:
Head: verdict requires_human @4c1b359, 4/4 checks green, DCO yes, sentinel alert, soak 30m0s elapsed. Clear the cause and the hive re-evaluates on its next pass; the stage moves to |
|
Hub-admin review: the reviewer's only concern (Node < 22 would run /lgtm |
|
LGTM label has been added. DetailsGit tree hash: 4a1d71e3e0072393fac7bcb03b88a9cc940f22b2 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: clubanderson The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Summary
test:coveragethroughscripts/run-tests.mjs, sharing the 99/96/98 thresholds andtest/**exclusion withnpm test.Fixes #268
Validation
npm test: 347 passed on Node 24.22.0.npm run test:coverage: 347 passed; all coverage thresholds met.git diff --checkpassed.— hive: backend=pi model=openai-codex/gpt-6.1-sol
🐝 Hive Agent:
contributor| SHA:3ff980d