Repository navigation
test: stop excluding docusaurus.config.ts from the coverage gate - #427
Conversation
|
Important Ready for review: held for a maintainer by the hive's ACMM level gate. This PR was opened by the "quality" agent while Hive policy required a human checkpoint for that agent. Agent PRs are held at ACMM L3–L5; an The hive's work on this PR is done. Hive will keep the |
✅ Deploy Preview for cncf-techdocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor. ℹ️ Sentinel: informational, author is trusted (hive agent), merge is not blocked. Head
No Reviewed by Reviewer notesThis looks correct to me — I verified the claims against the tree at head b4c428b rather than taking the body on faith:
No findings. One-line change plus its guard test; low risk, closes a real gate blind spot. |
|
|
@copilot resolve the merge conflicts in this pull request |
docusaurus.config.ts has been fully unit-tested since #404/#419 via lib/docusaurusConfigPreprocessor.test.mts and lib/docusaurusConfigBuildContext.test.mts, which import the real file directly. The test:coverage script's --exclude 'docusaurus.config.ts' flag predates those tests and is now a stale blind spot: c8 never instruments the file, so a regression or new untested branch added there would pass npm run test:coverage silently. Remove the exclude flag (verified locally: coverage stays at 100% stmts/branch/func/line for the file) and add a regression test guarding against the exclude quietly coming back. Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>
b4c428b to
f71df66
Compare
There was a problem hiding this comment.
Verified, not just read: cloned this head (f71df66) and ran npm ci && npm run test:coverage — the gate passes with docusaurus.config.ts instrumented at 100% stmts/branch/func/line, exactly as the PR body claims. The exclude was indeed stale: lib/docusaurusConfigPreprocessor.test.mts and lib/docusaurusConfigBuildContext.test.mts import the real docusaurus.config.ts via testHelpers/resolveExtensionlessTs.mjs, so c8 can gate it. The new regression test in scripts/coverage-thresholds.test.mjs follows the existing test in that file (reads package.json, asserts on the script string) and trivially fails on main's script, which still contains the exclude.
Looks correct to me — minimal, verified, and closes a real gate blind spot. Approval is a human's call; I have not approved.
Note for the maintainer (pre-existing, not this PR's fault): no CI workflow runs npm test/test:coverage, so this gate only bites locally until a test workflow exists.
— hive: agent=reviewer backend=copilot model=claude-fable-5 copilot=1.0.88
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the update that includes docusaurus.config.ts in the coverage gate.
No open issues 🎉
What changed in this PR
Closes a coverage-gate blind spot by including the already unit-tested docusaurus.config.ts in the existing 100% coverage checks. Deploy-preview end-to-end coverage remains separate, addressed by PR #426.
Changes:
- Removes the configuration file’s exclusion from the c8 coverage command.
- Adds a regression test guarding against reintroducing the explicit exclusion.
| File | Description |
|---|---|
| scripts/coverage-thresholds.test.mjs | Adds an assertion that the coverage script does not name docusaurus.config.ts. |
| package.json | Removes the docusaurus.config.ts exclusion while preserving coverage thresholds and helper exclusions. |
Review effort: Balanced
- #481, #428, #359 in dragonflyoss/d7y.io are open pull requests that already add the missing reference content, not issues requesting it; reframe recommendations/issues as 'review and merge' rather than 'write content' or 'add labels and bodies'. - Correct the open-issue count: the docs repo has 2 open issues (#427 mobile bug, already labeled bug; #348 Netlify build, unlabeled) and 4 open PRs (#486 dependabot, #481, #428, #359), not six open issues. - Retarget the triage/labeling recommendation at #348, the only open issue lacking an effort/expertise label. - Link #481/#428/#359 as /pull/ URLs instead of /issues/. Verified against the live dragonflyoss/d7y.io repo via the GitHub API. Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>
…ts in Dragonfly analysis Per the second manual /verify pass on PR #458: - Rewrote the #427 bullet to state the finding directly instead of narrating its own prior correction (open, unattended bug; dropped the 'project-acknowledged' framing text as unnecessary history). - Fixed 'graduated-level' to 'Incubating-level' for the 'stakeholders and personas identified' website guidelines item, per docs/analysis/criteria.md#incubating. - Changed the checklist lead-in from 'walking the checklist item by item' to 'checked against the applicable items', since the paragraph does not cover every checklist item (origin-company reference, enterprise-support leads, support-company links, CNCF logo placement). - Fixed the dead blog link (d7y.io/blog/dragonfly-lightweight-deployment, 404) to the dated path the post is actually served at (200). - Guarded the cSpell:ignore front-matter directive with # prettier-ignore (matching the litmuschaos analysis precedent) so Prettier no longer folds it onto a continuation line, which silently broke cspell's directive parsing and turned 12 ignored words into false positives. - Aligned issue 08's title with the issues.md table row ('Add meeting information to the existing Community section'). - Aligned the issues.md table row for issue 05 with its own title and body text ('...as the end-to-end tutorial'). - Reworded issue 01's #427 annotation so it no longer contradicts the surrounding text ('unattended since 2026-06-17' instead of 'consider re-prioritizing'). Verified: npx prettier --check ., npx markdownlint-cli2, npx cspell, and npm run build (onBrokenLinks: throw) all pass; markdown-link-check confirms the fixed blog URL returns 200. Signed-off-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>
Test Improvement
Removes the stale
--exclude 'docusaurus.config.ts'flag from thetest:coveragec8 invocation inpackage.json. That file has been fully unit-tested since #404/#419 vialib/docusaurusConfigPreprocessor.test.mtsandlib/docusaurusConfigBuildContext.test.mts, which import the realdocusaurus.config.tsdirectly (seetestHelpers/resolveExtensionlessTs.mjs). The exclude flag predates those tests and left the file ungated: a regression or new untested branch added todocusaurus.config.tswould passnpm run test:coveragesilently because c8 never instrumented it.Verified locally: with the exclude removed,
npm run test:coveragestill reports 100% stmts/branch/func/line fordocusaurus.config.tsand every other file — no new unit tests were needed, this closes a gate-configuration blind spot only.Also adds a regression test to
scripts/coverage-thresholds.test.mjsasserting the script no longer excludes the file (fails without this fix, confirmed locally viagit stash).Related Issue
Refs #425 (this PR fixes only the
docusaurus.config.tscoverage-gate exclude-flag finding noted in my comment on that issue; #425's own deploy-preview e2e gap is tracked separately and addressed by PR #426, so this PR intentionally leaves #425 open)Filed by quality agent (hold-gated mode). Human review required.
— hive: agent=quality backend=copilot model=claude-opus-4-6 copilot=1.0.88