CI: Add Rust coverage job to CI workflows#7964
Merged
qnixsynapse merged 7 commits intomainfrom Apr 15, 2026
Merged
Conversation
Introduces a dedicated job (`base_branch_rust_cov`) to run Rust test coverage checks against the base branch when a pull request is opened. This ensures that the Rust component's test coverage is available for comparison against the existing codebase coverage, providing a more comprehensive review pipeline.
Code Review — first reviewSummaryThis PR adds a ObservationsCorrectness
Duplication of Rust coverage commands
Duplication of Tauri dependency installation
CLAUDE.md in
No test changes
Risks
Suggestions
Recommendation: improve needed |
- Extract duplicated Rust coverage commands into scripts/rust-coverage.sh - Add continue-on-error on Rust base coverage artifact download with graceful fallback to TS-only coverage when artifact is missing - Upgrade actions/checkout and actions/setup-node from v3 to v4
The base branch job checks out main where scripts/rust-coverage.sh does not exist yet, causing a "No such file" error.
Tauri's build script validates that externalBin paths (uv, bun) exist at compile time. In CI these binaries aren't downloaded, so we create empty stubs to satisfy the check.
Add stubs for resources/pre-install, resources/LICENSE, and resources/bin/jan-cli in addition to the externalBin stubs. Tauri's build script validates all resource glob patterns and paths at compile time.
tauri::generate_context!() requires icon files at compile time but they are gitignored (only icon.png is tracked). Copy icon.png to all required icon paths when they don't exist.
Contributor
Barecheck - Code coverage reportTotal: 23.78%Your code coverage diff: 0.00% ▴ ✅ All code changes are covered |
dinhlongviolin1
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe Your Changes
base_branch_rust_cov) to run Rust test coverage checks against the base branch when a pull request is opened. This ensures that the Rust component's test coverage is available for comparison against the existing codebase coverage, providing a more comprehensive review pipeline.Fixes Issues
Self Checklist