-
Notifications
You must be signed in to change notification settings - Fork 7
refactor(coverage): Replace per-package thresholds with GitHub Actions workflow #759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…s workflow - Remove per-package coverage thresholds from vitest.config.ts to eliminate merge conflicts - Add 'json-summary' reporter for coverage reporting - Delete reset-coverage-thresholds.sh script and pretest hook - Create coverage.yml workflow that: - Runs tests with coverage on PR and base branches in parallel - Uploads coverage as artifacts (7-day retention) - Posts PR comments with coverage totals and deltas using vitest-coverage-report-action - No coverage data stored in repo, preventing conflicts while enabling trend tracking Co-Authored-By: Claude <noreply@anthropic.com>
- Deploy HTML coverage report to GitHub Pages on push to main - Add PR comment with link to main branch coverage report - Fix action versions (use v4 for checkout/artifact actions) - Use dawidd6/action-download-artifact for cross-workflow artifact download Coverage report will be available at: https://metamask.github.io/ocap-kernel/coverage/ Co-Authored-By: Claude <noreply@anthropic.com>
…le report workflow - Add coverage job to lint-build-test.yml to collect coverage artifacts - Create coverage-report.yml as reusable workflow for PR comments and GitHub Pages - Call coverage-report from main.yml after lint-build-test - Remove standalone coverage.yml (duplicate functionality) - Coverage now collected as part of main CI instead of running tests twice Coverage report will be available at: https://metamask.github.io/ocap-kernel/coverage/ Co-Authored-By: Claude <noreply@anthropic.com>
- Remove cache save/restore steps from workflows - Fetch baseline coverage-summary.json from gh-pages URL on PRs - Reduce artifact retention to 7 days (only needed within workflow run) - Simplifies to only official GitHub actions, no third-party dependencies - Gracefully handles first run when baseline doesn't exist yet Co-Authored-By: Claude <noreply@anthropic.com>
|
Note: The "Coverage report" job is expected to fail until the modified workflows have run on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
grypez
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR brings joy.
Summary
vitest.config.tsChanges
vitest.config.tsscripts/reset-coverage-thresholds.shand pretest hook.github/workflows/coverage-report.ymlCoverage Report
main🤖 Generated with Claude Code
Note
Introduces CI-driven coverage and removes brittle per-package thresholds.
coverage-report.ymlworkflow: downloads coverage artifact, publishes HTML to GitHub Pages onmain, fetches baseline on PRs, posts coverage diff viadavelosert/vitest-coverage-report-action, and comments a link to the full reportmain.ymlafterlint-build-test; skips onmerge_grouplint-build-test.ymlto run tests with--coverageonly on Node24.xand upload thecoverage/artifactpackage.json: removespretesthook,test:ci, andscripts/reset-coverage-thresholds.sh; keepstestasvitest runvitest.config.tscoverage reporters to includejson-summaryand removes the large per-packagethresholdsblockWritten by Cursor Bugbot for commit 3f9517a. This will update automatically on new commits. Configure here.