Skip to content

[scanner] fix: mixed test infrastructure failures#20564

Open
kubestellar-hive[bot] wants to merge 2 commits into
mainfrom
scanner/fix-20556
Open

[scanner] fix: mixed test infrastructure failures#20564
kubestellar-hive[bot] wants to merge 2 commits into
mainfrom
scanner/fix-20556

Conversation

@kubestellar-hive

Copy link
Copy Markdown
Contributor

Fixes #20556

Root causes fixed across 5 test groups:

  • analytics-errors.ts: recentlyReportedErrors not cleared in _resetErrorThrottles()
  • alertStorage.ts: non-quota errors logged via console.warn instead of console.error
  • notifications.ts: sendSingleNotification used console.warn instead of console.error
  • agentConnectivity.test.tsx: test checked result.current.type but hook returns status
  • StackContext.test.tsx: mock factory hardcoded isDemoMode: false; fixed via vi.hoisted()
  • api.test.ts / api-methods.test.ts: global setup.ts mock overrode real module; added vi.unmock()
  • compiler.ts: blob URL import() not supported in jsdom/node; added injectable _setCardImportFn and _resetCardImportFn for tests

🤖 Generated with Claude Code

…, dynamic-cards, networking)

Fixes #20556

Root causes addressed:
- analytics-errors.ts: recentlyReportedErrors not cleared in _resetErrorThrottles()
- alertStorage.ts: non-quota errors logged via console.warn instead of console.error
- notifications.ts: sendSingleNotification logged via console.warn instead of console.error
- agentConnectivity.test.tsx: test checked result.current.type but hook returns status
- StackContext.test.tsx: mock factory hardcoded isDemoMode:false; wired via vi.hoisted()
- api.test.ts / api-methods.test.ts: global setup.ts mock overrode real module; add vi.unmock()
- compiler.ts: blob URL import() unsupported in jsdom/node; add injectable _setCardImportFn
- compiler tests: use Function-based evaluator via _setCardImportFn/afterEach reset

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: scanner-bot <scanner-bot@kubestellar.io>
Copilot AI review requested due to automatic review settings July 8, 2026 06:15
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Jul 8, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot can't review bot-authored pull requests automatically. A user with Copilot access can request a review manually.

@kubestellar-prow

Copy link
Copy Markdown
Contributor

[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 mikespreitzer 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

@github-actions github-actions Bot added the ai-generated Pull request generated by AI label Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

👋 Hey @kubestellar-hive[bot] — thanks for opening this PR!

🤖 This project is developed exclusively using AI coding assistants.

Please do not attempt to code anything for this project manually.
All contributions should be authored using an AI coding tool such as:

This ensures consistency in code style, architecture patterns, test coverage,
and commit quality across the entire codebase.


This is an automated message.

@kubestellar-prow kubestellar-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jul 8, 2026
@netlify

netlify Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit 932f394
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/6a4dfb90a7170e000886ed4e
😎 Deploy Preview https://deploy-preview-20564.console-deploy-preview.kubestellar.io
📱 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.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

✅ Test Coverage Check

All new source files in this PR have corresponding test files.

Checked web/src/hooks/ and web/src/components/ against origin/main.

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

♿ Accessibility Audit (WCAG 2.1 AA)

✅ No WCAG 2.1 AA violations detected in audited routes.


Powered by axe-core. Target: WCAG 2.1 AA compliance.

… PR #20564

Signed-off-by: kubestellar-hive[bot] <kubestellar-hive[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated Pull request generated by AI dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. tier/2-standard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[quality] Fix mixed test infrastructure failures in api, AlertsContext, StackContext, dynamic-cards, and networking hooks

1 participant