Skip to content

🐛 [scanner] fix: docs main type-check and Vitest failures - #6990

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-6974
Sep 17, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
scanner/fix-6974

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Closes #6974
Closes #6975
Refs #6813 — already fixed on main by PR #6834 (added missing vite devDependency); not reproduced on the current main and no changes needed here.

Root causes & fixes

#6974 — TS2741 in scripts/netlify-ignore.test.ts
The test's spawnEnv literal was typed as NodeJS.ProcessEnv, which requires NODE_ENV (from @types/node), but the object omitted it. Added NODE_ENV: process.env.NODE_ENV to the literal so it satisfies the type. Verified locally: npm run type-check now passes (previously failed with TS2741 at scripts/netlify-ignore.test.ts(45,11)).

#6975 — src/components/navbar/** coverage below thresholds
PR #6971 split Navbar.tsx into NavbarLogo, ContributeDropdown, CommunityDropdown, GithubDropdown, MobileMenu, and navbar/index.ts without accompanying tests, dropping coverage to 91.7/91.45/80.48/77.1% (lines/statements/functions/branches) against the 95/95/90/80 thresholds. Added src/__tests__/NavbarSubcomponents.render.test.tsx with RTL render tests for each sub-component (open/closed dropdown branches, mobile-menu open/closed, github stats rendering) plus an export-shape assertion for navbar/index.ts. Verified locally: npx vitest run --coverage passes with 0 threshold errors (1168/1168 tests passing).

#6813 — investigated, already fixed
The reported root cause (vite missing from package.json, causing ERR_MODULE_NOT_FOUND/TS2307) was already fixed on main by PR #6834 ("Add missing vite dev dependency so the test suite can start"), which landed before this branch was cut. vite is present in package.json ("vite": "^8.3.0") and npm run type-check / npx vitest run both succeed without any vite-resolution error. Leaving this issue open only if further TS7006 fallout from vitest.config.ts's manualChunks/transform callbacks is still desired — none was found; all callback params in vitest.config.ts are already explicitly typed.

Validation

  • npm run type-check — passes
  • npx vitest run --coverage — 1168/1168 tests pass, no coverage threshold errors
  • npm run lint — 0 errors (pre-existing warnings only)

— hive: agent=scanner backend=copilot model=claude-fable-5 copilot=1.0.78

…, #6813)

- scripts/netlify-ignore.test.ts: add NODE_ENV to the literal spawnEnv
  object so it satisfies NodeJS.ProcessEnv (TS2741), fixing the
  TypeScript type-check regression from #6972.
- Add src/__tests__/NavbarSubcomponents.render.test.tsx covering the
  six sub-components extracted from Navbar.tsx in #6971
  (NavbarLogo, ContributeDropdown, CommunityDropdown, GithubDropdown,
  MobileMenu, and the navbar/index.ts export surface), restoring
  src/components/navbar/** above its 95/95/90/80 coverage thresholds.
- #6813 (missing vite devDependency) was already fixed on main by
  PR #6834; verified vite is present in package.json and no longer
  reproduces, so it is not addressed here.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: kubestellar-hive[bot] <[email protected]>
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Sep 17, 2026
@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 kproche 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 Sep 17, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for kubestellar-docs ready!

Name Link
🔨 Latest commit 5329604
🔍 Latest deploy log https://app.netlify.com/projects/kubestellar-docs/deploys/6aab7c4c3706fa00073b80c7
😎 Deploy Preview https://deploy-preview-6990--kubestellar-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kubestellar-prow kubestellar-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 17, 2026
@kubestellar-prow kubestellar-prow Bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Sep 17, 2026
@kubestellar-prow

Copy link
Copy Markdown

Hi @kubestellar-hive[bot]. Thanks for your PR.

I'm waiting for a kubestellar member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@hivecommons-hive
hivecommons-hive Bot merged commit 6fdd43e into main Sep 17, 2026
14 of 16 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the scanner/fix-6974 branch September 17, 2026 05:36
@github-actions

Copy link
Copy Markdown
Contributor

Thank you for your contribution! Your PR has been merged.

Check out what's new:

Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

copilot dco-signoff: yes Indicates the PR's author has signed the DCO. frontend needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. typescript

Projects

None yet

1 participant