Skip to content

fix(core): include coverage config in build cache digest#1245

Merged
9aoy merged 1 commit into
mainfrom
9aoy/fix-coverage-cache-digest
May 12, 2026
Merged

fix(core): include coverage config in build cache digest#1245
9aoy merged 1 commit into
mainfrom
9aoy/fix-coverage-cache-digest

Conversation

@9aoy

@9aoy 9aoy commented May 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Background

Persistent build cache entries created without coverage instrumentation could be reused for coverage runs, causing empty coverage data.

Implementation

  • Add coverage state and provider to the Rstest build cache digest.
  • Preserve user-provided cache digest values when normalized project cache config is re-normalized.
  • Cover disabled coverage, default Istanbul, and custom provider digest cases.

User Impact

Coverage runs with build cache enabled no longer reuse incompatible non-coverage or different-provider bundles.

Related Links

None

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions

Copy link
Copy Markdown

Rsdoctor Bundle Diff Analysis

Found 12 projects in monorepo, 1 project with changes.

📊 Quick Summary
Project Total Size Change
adapter-rsbuild 3.6 KB 0
adapter-rslib 24.6 KB 0
adapter-rspack 7.7 KB 0
browser 2.0 MB 0
browser-react 3.7 KB 0
browser-ui 803.5 KB 0
coverage-istanbul 9.6 KB 0
core/browser 970.2 KB 0
core/loaders 869.0 B 0
core/main 1.6 MB +516.0 B (0.0%)
vscode/extension 58.9 MB 0
vscode/worker 14.4 KB 0
📋 Detailed Reports (Click to expand)

📁 core/main

Path: packages/core/.rsdoctor/main/rsdoctor-data.json

📌 Baseline Commit: 9a875bdc95 | PR: #1241

Metric Current Baseline Change
📊 Total Size 1.6 MB 1.6 MB +516.0 B (0.0%)
📄 JavaScript 1.5 MB 1.5 MB +516.0 B (0.0%)
🎨 CSS 0 B 0 B 0
🌐 HTML 0 B 0 B 0
📁 Other Assets 79.2 KB 79.2 KB 0

📦 Download Diff Report: core/main Bundle Diff

Generated by Rsdoctor GitHub Action

@9aoy 9aoy enabled auto-merge (squash) May 12, 2026 09:34
@9aoy 9aoy merged commit 906506a into main May 12, 2026
19 checks passed
@9aoy 9aoy deleted the 9aoy/fix-coverage-cache-digest branch May 12, 2026 09:39
@9aoy 9aoy mentioned this pull request May 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant