Skip to content

Use branch coverage - #98

Merged
jayvdb merged 1 commit into
mainfrom
branch-coverage
Jul 22, 2026
Merged

Use branch coverage#98
jayvdb merged 1 commit into
mainfrom
branch-coverage

Conversation

@jayvdb

@jayvdb jayvdb commented Jul 22, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • New Features

    • Added branch coverage support to Rust, WebAssembly, and Python coverage collection.
    • Combined coverage reports now include branch data across supported sources.
  • Bug Fixes

    • Improved coverage report merging by ensuring consistent branch coverage configuration.
    • Enhanced WebAssembly coverage instrumentation for more complete test metrics.

@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 629b1fe2-e203-4da1-8700-c7d8e9f615ff

📥 Commits

Reviewing files that changed from the base of the PR and between 30f92d3 and 188afcf.

📒 Files selected for processing (5)
  • .mise/config.coverage.toml
  • .mise/config.toml
  • config/coverage.toml
  • services/ws-web-runner/src/shims/pycov.js
  • utilities/wasm-cov-wrapper/src/main.rs

📝 Walkthrough

Walkthrough

Branch coverage is enabled consistently across Rust and Python coverage instrumentation. Rust build flags, the wasm coverage wrapper, the coverage server, Python coverage configuration, and the Pyodide coverage shim now produce branch-aware coverage data.

Changes

Branch coverage instrumentation

Layer / File(s) Summary
Rust branch instrumentation
.mise/config.toml, .mise/config.coverage.toml, utilities/wasm-cov-wrapper/src/main.rs
Rust coverage flags now include nightly branch coverage for wasm builds, cargo-llvm-cov, the coverage server, and wasm32 crate compilation.
Python branch data collection
config/coverage.toml, services/ws-web-runner/src/shims/pycov.js
Python coverage combination and Pyodide collection now enable branch coverage.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

  • edge-toolkit/core#88: Updates related wasm-agent coverage orchestration and coverage-server instrumentation.

Suggested reviewers: pierre-tenedero

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: enabling branch coverage across the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch branch-coverage

Comment @coderabbitai help to get the list of available commands.

@deepsource-io

deepsource-io Bot commented Jul 22, 2026

Copy link
Copy Markdown

DeepSource Code Review

We reviewed changes in 30f92d3...188afcf on this pull request. Below is the summary for the review, and you can see the individual issues we found as inline review comments.

See full review on DeepSource ↗

PR Report Card

Overall Grade   Security  

Reliability  

Complexity  

Hygiene  

Coverage  

Code Review Summary

Analyzer Status Updated (UTC) Details
C# Jul 22, 2026 2:05a.m. Review ↗
C & C++ Jul 22, 2026 2:05a.m. Review ↗
Docker Jul 22, 2026 2:05a.m. Review ↗
Java Jul 22, 2026 2:05a.m. Review ↗
JavaScript Jul 22, 2026 2:05a.m. Review ↗
Python Jul 22, 2026 2:05a.m. Review ↗
Rust Jul 22, 2026 2:05a.m. Review ↗
Secrets Jul 22, 2026 2:05a.m. Review ↗
Code coverage Jul 22, 2026 2:31a.m. Review ↗

Code Coverage Summary

Language Line Coverage (Overall)
Aggregate
57.2%
[▼ down 0.1% from main]
Python
69.7%
Rust
56.6%
[▼ down 0.1% from main]

➟ Additional coverage metrics may have been reported. See full coverage report ↗


Important

AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@jayvdb
jayvdb marked this pull request as ready for review July 22, 2026 02:56
@jayvdb
jayvdb requested a review from pierre-tenedero July 22, 2026 02:56
@jayvdb
jayvdb merged commit 6a3f444 into main Jul 22, 2026
34 checks passed
@jayvdb
jayvdb deleted the branch-coverage branch July 22, 2026 03:03
@coderabbitai coderabbitai Bot mentioned this pull request Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants