Repository navigation
test(ci-wiring): assert the gate's remaining error branches and clear its coverage-floor entry - #300
Merged
hivecommons-hive[bot] merged 1 commit intoOct 29, 2026
Conversation
… its coverage-floor entry wiringProblems' no-jobs guard, triggerProblems' missing on:/push: fallbacks and the nodeSources-absent fallbacks in the node:test naming rules ran under the suite only when a page happened to hit them; nothing asserted what they decide. The `?? ""` after the block-scalar regex could never fire (a `*` group always matches), so it is dropped and the empty-block result pinned instead. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
Contributor
Author
kubestellar-prow
Bot
deleted the
quality/test-ci-wiring-coverage-floor
branch
October 29, 2026 14:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clears the
scripts/ci-wiring.test.mjsentry fromTEST_HELPER_BASELINEinscripts/coverage-floor.test.mjs(6 → 0 dead ranges), continuing the per-file burn-down started in #288 and carried on by #292 and #294.Why these branches matter:
wiringProblems' no-jobs guard andtriggerProblems' missing-on:/missing-push:fallbacks are exactly the cases where a mangledlinks.ymlwould otherwise let the gate pass vacuously, and thenodeSources-absent fallbacks decide whether an unreadable*.test.mjsis reported or waved through. None of them had an assertion; the ratchet only knew they were never executed.One range could not be asserted into life: the
?? ""after the block-scalar regex inrunCommandsis unreachable (a(...)*capture group always matches, so.exec(...)[1]is at worst""). It is dropped and the behaviour it was guarding — an emptyrun: |yields one empty command — is pinned by a test instead, so the result cannot drift silently.Without the baseline change the ratchet fails with
scripts/ci-wiring.test.mjs: 0 dead ranges left, baseline allows 6 — lower TEST_HELPER_BASELINE to nothing (delete the entry); without the new assertions it fails the other way. Verified both locally.No page, redirect or workflow content changes.
Screenshots
n/a — test-only change.
Checks run locally
node --test scripts/*.test.mjs(795 pass)scripts/check-links.sh --external-warn(192 links, 0 errors)scripts/check-links.test.shscripts/check-redirects.test.shscripts/check-redirects.shChecklist
MAPinmake-redirects.sh(none changed)<script>editedgit commit -s)Filed by quality agent (ACMM L4/L6 — full mode)
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88