Skip to content

🐛 Address Copilot comments: tour a11y, GPU threshold scope, coverage workflow#4186

Merged
clubanderson merged 1 commit intomainfrom
fix/copilot-latest
Apr 1, 2026
Merged

🐛 Address Copilot comments: tour a11y, GPU threshold scope, coverage workflow#4186
clubanderson merged 1 commit intomainfrom
fix/copilot-latest

Conversation

@clubanderson
Copy link
Copy Markdown
Collaborator

Addresses comments from PRs #4172, #4185: tour button aria-label, hoisted GPU constant with fixed comments, coverage merge-job only runs on shard success.

- Tour.tsx: Add aria-label on icon-only tour button (#4172)
- ConsoleOfflineDetectionCard: Hoist GPU_CLUSTER_EXHAUSTION_THRESHOLD
  to module scope, fix comments "80%+" → ">80%" (#4185)
- coverage-hourly.yml: Replace always() with success check to avoid
  noisy merge-coverage failures when shards fail (#4185)

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Copilot AI review requested due to automatic review settings April 1, 2026 18:05
@kubestellar-prow kubestellar-prow bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Apr 1, 2026
@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

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 1, 2026

Deploy Preview for kubestellarconsole ready!

Name Link
🔨 Latest commit cceb9ed
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/69cd5e5fd8c980000831e254
😎 Deploy Preview https://deploy-preview-4186.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.

@kubestellar-prow kubestellar-prow bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 1, 2026
@clubanderson clubanderson merged commit 42d3723 into main Apr 1, 2026
20 of 21 checks passed
@kubestellar-prow kubestellar-prow bot deleted the fix/copilot-latest branch April 1, 2026 18:05
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

👋 Hey @clubanderson — 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.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 1, 2026

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

Check out what's new:

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

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Addresses follow-up review feedback across UI accessibility, GPU exhaustion heuristic configuration, and CI coverage workflow gating.

Changes:

  • Adds an explicit aria-label to the Tour trigger button for improved accessibility.
  • Hoists the GPU cluster exhaustion threshold constant to module scope and aligns comments with the strict > threshold behavior.
  • Updates the hourly coverage workflow so the merge job runs only when the shard job reports success (and the workflow isn’t cancelled).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
web/src/components/onboarding/Tour.tsx Adds aria-label to the Tour trigger button for screen reader support.
web/src/components/cards/console-missions/ConsoleOfflineDetectionCard.tsx Hoists GPU threshold constant and clarifies “>80%” semantics in comments.
.github/workflows/coverage-hourly.yml Gates the merge job on shard success/cancellation state.

Comment on lines 60 to 63
merge-coverage:
needs: test-shard
if: always() && github.repository == 'kubestellar/console'
if: "!cancelled() && needs.test-shard.result == 'success' && github.repository == 'kubestellar/console'"
runs-on: ubuntu-latest
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

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

The new if: condition intends to only run merge-coverage when shards succeed, but test-shard currently runs Vitest with continue-on-error: true (so the shard job can still conclude success even if tests fail and no coverage is produced). As a result, needs.test-shard.result == 'success' may not actually gate on test success. Consider removing continue-on-error (matrix already has fail-fast: false so other shards will still run), and/or make the artifact upload fail when coverage is missing so the shard job correctly reports failure.

Copilot uses AI. Check for mistakes.
@clubanderson
Copy link
Copy Markdown
Collaborator Author

🔄 Auto-Applying Copilot Code Review

Copilot code review found 0 code suggestion(s) and 1 general comment(s).

Also address these general comments:

  • .github/workflows/coverage-hourly.yml (line 63): The new if: condition intends to only run merge-coverage when shards succeed, but test-shard currently runs Vitest

Push all fixes in a single commit. Run cd web && npm run build && npm run lint before committing.


Auto-generated by copilot-review-apply workflow.

clubanderson added a commit that referenced this pull request Apr 2, 2026
Remove continue-on-error: true from test shard steps, which caused
the test-shard job to always report success even when tests failed.
The merge-coverage gate (needs.test-shard.result == 'success') was
effectively a no-op. Copilot flagged this on 6 PRs (#4185, #4186,
#4187, #4222, #4223, #4225).

Changes:
- Remove continue-on-error: true so shard failures are properly reported
- Widen merge-coverage gate to !cancelled() so coverage is still merged
  from passing shards even when some fail
- Add if-no-files-found: ignore on artifact upload so failed shards
  that produce no coverage file don't fail the upload step
- Add final 'Fail if any shard failed' step so the overall workflow
  correctly surfaces test failures after merging coverage and updating
  the badge
- Fix stale comment: '4 shards' -> '12 shards'

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
clubanderson added a commit that referenced this pull request Apr 2, 2026
Remove continue-on-error: true from test shard steps, which caused
the test-shard job to always report success even when tests failed.
The merge-coverage gate (needs.test-shard.result == 'success') was
effectively a no-op. Copilot flagged this on 6 PRs (#4185, #4186,
#4187, #4222, #4223, #4225).

Changes:
- Remove continue-on-error: true so shard failures are properly reported
- Widen merge-coverage gate to !cancelled() so coverage is still merged
  from passing shards even when some fail
- Add if-no-files-found: ignore on artifact upload so failed shards
  that produce no coverage file don't fail the upload step
- Add final 'Fail if any shard failed' step so the overall workflow
  correctly surfaces test failures after merging coverage and updating
  the badge
- Fix stale comment: '4 shards' -> '12 shards'

Signed-off-by: Andrew Anderson <andy@clubanderson.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants