Skip to content

🐛 Fix duplicate YAML keys in coverage workflow#4225

Merged
clubanderson merged 1 commit intomainfrom
fix/coverage-80
Apr 2, 2026
Merged

🐛 Fix duplicate YAML keys in coverage workflow#4225
clubanderson merged 1 commit intomainfrom
fix/coverage-80

Conversation

@clubanderson
Copy link
Copy Markdown
Collaborator

Squash merge created duplicate TOTAL_SHARDS and shard keys. Fixes workflow_dispatch.

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

netlify bot commented Apr 2, 2026

Deploy Preview for kubestellarconsole canceled.

Name Link
🔨 Latest commit da5fd9b
🔍 Latest deploy log https://app.netlify.com/projects/kubestellarconsole/deploys/69ce64b494210600086e3a21

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 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.

@kubestellar-prow kubestellar-prow bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 2, 2026
@clubanderson clubanderson merged commit 4602ff6 into main Apr 2, 2026
13 of 14 checks passed
@kubestellar-prow kubestellar-prow bot deleted the fix/coverage-80 branch April 2, 2026 12:44
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 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

Fixes an invalid/ambiguous GitHub Actions workflow configuration caused by duplicate YAML keys introduced during a squash merge, ensuring the coverage workflow (including workflow_dispatch) uses a single, consistent shard configuration.

Changes:

  • Removed duplicate TOTAL_SHARDS env key so only the intended value remains.
  • Removed duplicate matrix.shard definition so the shard matrix is unambiguous (1–12).

TOTAL_SHARDS: 10

jobs:
# Run tests in 4 shards to stay within 7GB runner memory
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

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

The comment says tests run in 4 shards, but the matrix now runs 12 shards (and TOTAL_SHARDS=12). Update the comment to match the actual shard count to avoid confusion when adjusting CI resources/concurrency.

Suggested change
# Run tests in 4 shards to stay within 7GB runner memory
# Run tests in 12 shards to stay within 7GB runner memory

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

🔄 Auto-Applying Copilot Code Review

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

@copilot Please apply all of the following code review suggestions:

  • .github/workflows/coverage-hourly.yml (line 20): # Run tests in 12 shards to stay within 7GB runner memory

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/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants