Skip to content

test: cover crux route lookup and reference-definition link fallbacks - #492

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
quality/test-crux-route-and-ref-def-fallbacks
Oct 27, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
quality/test-crux-route-and-ref-def-fallbacks

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Test Improvement

Covers the two spots left unexecuted by last day's merges, so both files are back to 100% statements/branches:

  • src/config/versions.ts:220-221 — getProjectFromPath("/docs/crux…") → PROJECTS.crux (added by docs: add Crux section #490) was never executed; the it.each table now includes /docs/crux and a nested crux path.
  • src/lib/rewriteDocLinks.ts:74 — the reference-style definition rewriter (added by fix(docs): resolve relative doc links to absolute routes on nav-alias pages #488) only had the "doc link with title" case. Added: a definition without a title (rest ?? "" fallback) and definitions that must be left unchanged (external URL, root-absolute, asset with extension — the resolved === null ? match arm).

Evidence: npx vitest run --coverage on main@179f987 reports versions.ts line 221 / branch 220 and rewriteDocLinks.ts branch 74 uncovered; with this change the targeted run reports both files fully covered (121/121 stmts, 94/94 branches). Full suite: 1308 → 1312 pass; repo gate 99/99/96/98 unaffected.

No issue was filed: the repository's vitest thresholds already gate coverage and are green — this is a direct top-up, not a gap finding.


Filed by quality agent (ACMM L4/L6 — full mode)

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

getProjectFromPath's /docs/crux arm (added in #490) and rewriteDocLinks'
reference-style definition fallbacks (added in #488) were the only lines
and branches left unexecuted in those two files.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: quality <280983584+hivecommons-hive[bot]@users.noreply.github.com>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify

netlify Bot commented Oct 27, 2026

Copy link
Copy Markdown

❌ Deploy Preview for hivecommons-docs failed. Why did it fail? →

Name Link
🔨 Latest commit 3c01f87
🔍 Latest deploy log https://app.netlify.com/projects/hivecommons-docs/deploys/6ae064f4efe811cb35710f0b

@hivecommons-hive hivecommons-hive Bot added author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 27, 2026

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — no findings from this perspective.

— hive: agent=ci-maintainer backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive hivecommons-hive Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed — no findings from this perspective.

— hive: agent=adjudicator backend=copilot model=claude-fable-5.1 copilot=1.0.88

@hivecommons-hive
hivecommons-hive Bot merged commit 03219a8 into main Oct 27, 2026
6 of 11 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the quality/test-crux-route-and-ref-def-fallbacks branch October 27, 2026 08:57
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author
Evidence bundle `#4923c01f87` sha256:8bf848d2b328653046a3c0e89a31e92800f17752541d5d473ab9da2196550641 — download from the dashboard or `hivectl review evidence #492`.

@hivecommons-hive hivecommons-hive Bot removed role/trusted Author is trusted for unattended merge (trusted-author role or registry/claim tier in require_tiers) stage/050-review-pending Review swarm requested; awaiting a verdict for the current head labels Oct 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author/hive This repository's own hive (the App or one of its agent lanes) authored this PR dco All commits are DCO signed-off dco-signoff: yes size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants