Skip to content

chore: reproduce #1718 bundle diff with AI analysis - #1721

Draft
yifancong wants to merge 6 commits into
agent/repro-1718-basefrom
agent/repro-1718-head
Draft

chore: reproduce #1718 bundle diff with AI analysis#1721
yifancong wants to merge 6 commits into
agent/repro-1718-basefrom
agent/repro-1718-head

Conversation

@yifancong

Copy link
Copy Markdown

Purpose

Temporarily recreate the Rsdoctor Bundle Diff produced for #1718 so the newly configured AI_TOKEN can analyze the same change direction.

The original report fell back to commit 77b5d0f5 for its baseline. This PR therefore compares that baseline state with the repository state after #1718 (c7fff14e), while keeping the AI-enabled Bundle Diff workflow identical on both branches.

Setup

  • Base branch: agent/repro-1718-base
  • Head branch: agent/repro-1718-head
  • Rsdoctor Action: v1.1.4 commit 2fbd50933702502f12d2bbef5273afbfd829a289
  • AI credential: repository secret AI_TOKEN

Impact

Temporary analysis only. This PR must not be merged.

Validation

  • Workflow diff between base and head is empty.
  • PR diff reconstructs the original fallback-baseline comparison.
  • git diff --check passed for the workflow changes.

After the AI report is available, close this PR and delete both temporary branches.

@github-actions

github-actions Bot commented Aug 14, 2026

Copy link
Copy Markdown

Rsdoctor Bundle Diff Analysis

Found 13 projects in monorepo, 2 projects with changes.

📊 Quick Summary
Project Total Size Gzip Size Change Gzip Change
adapter-rsbuild 6.1 KB 2.0 KB 0 0
adapter-rslib 50.4 KB 13.3 KB 0 0
adapter-rspack 12.4 KB 2.9 KB 0 0
browser 1.1 MB 306.3 KB 0 0
coverage-istanbul 20.0 KB 4.5 KB 0 0
browser-react 6.4 KB 1.3 KB 0 0
coverage-v8 81.4 KB 15.2 KB 0 0
playwright 49.4 KB 10.2 KB 0 0
browser/client 73.0 KB 10.3 KB 0 0
core/browser 608.3 KB 175.3 KB 0 0
core/main 1.8 MB 488.6 KB -177.0 B (-0.0%) -41.0 B (-0.0%)
vscode/extension 1.2 MB 82.1 KB +108.0 B (0.0%) +126.0 B (0.2%)
vscode/worker 14.7 KB 3.8 KB 0 0
📋 Detailed Reports (Click to expand)

📁 core/main

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

📌 Baseline Commit: 7f5ba5dec8a51b265bef4c416d4c5ebbe0978b1a | PR: #1721

Metric Current Baseline Change
📊 Total Size 1.8 MB 1.8 MB -177.0 B (-0.0%)
🗜️ Gzip Size 488.6 KB 488.6 KB -41.0 B (-0.0%)
📄 JavaScript 1.4 MB 1.4 MB -177.0 B (-0.0%)
🎨 CSS 0 B 0 B 0
🌐 HTML 0 B 0 B 0
📁 Other Assets 414.4 KB 414.4 KB 0

📦 Download Diff Report: core/main Bundle Diff

📁 vscode/extension

Path: packages/vscode/.rsdoctor/extension/rsdoctor-data.json

📌 Baseline Commit: 7f5ba5dec8a51b265bef4c416d4c5ebbe0978b1a | PR: #1721

Metric Current Baseline Change
📊 Total Size 1.2 MB 1.2 MB +108.0 B (0.0%)
🗜️ Gzip Size 82.1 KB 82.0 KB +126.0 B (0.2%)
📄 JavaScript 528.5 KB 528.4 KB +108.0 B (0.0%)
🎨 CSS 0 B 0 B 0
🌐 HTML 0 B 0 B 0
📁 Other Assets 723.8 KB 723.8 KB 0

📦 Download Diff Report: vscode/extension Bundle Diff

🤖 AI Degradation Analysis (Click to expand)

📁 core/main

📊 Size Changes

No significant regressions detected 🎉

All metrics show a net decrease:

  • Total bundle: −177 B (0.009% ↓)
  • JS total: −177 B (0.012% ↓)
  • Initial JS: −177 B (0.030% ↓)
  • No assets added, removed, or meaningfully changed beyond noise threshold (>5% or >10 KB).
  • fdir module shrank slightly (−172 source bytes, −90 gzip bytes); no new large modules or duplicates.

🔍 Root Cause Analysis

  • Minor size reduction driven by updated fdir@6.5.0 (replacing same version but with internal optimizations — likely build tooling or transpilation variance; no functional change per diff).
  • @rstest/core version bump (0.11.6 → 0.11.8) shows zero size impact (all sizes = 0), confirming it’s not bundled or is tree-shaken fully.

⚠️ Risk Assessment

Low
Zero increase in initial chunk or total bundle size; all deltas are sub-200 bytes and well below detection thresholds — no runtime or load-time impact.

💡 Optimization Suggestions

  1. No action needed — this PR delivers a tiny, risk-free size improvement.
  2. Consider adding a CI check (e.g., Rsdoctor --threshold 50) to catch future >50 B regressions in initial chunks early.
  3. Verify @rstest/core remains unbundled (as indicated by 0-byte size) — confirm its usage is strictly dev-only or properly externalized.

Analysis by qwen-plus

📁 vscode/extension

📊 Size Changes

No significant regressions detected 🎉
(All changes are <5% and <10 KB; largest delta is +108 B total bundle, +108 B JS, +108 B initial chunk — well below thresholds.)

🔍 Root Cause Analysis

  • fdir@6.5.0 module shrank slightly (parsedSize ↓162 B, gzipSize ↓81 B) — a net win.
  • rstest package was upgraded from 0.11.60.11.8, but source/parsed/gzip sizes are identical (no size impact).
  • No added/removed modules or duplicate dependencies; no new large assets.

⚠️ Risk Assessment

Low
Initial chunk grew by only +108 B (+0.028%), and total bundle increased by just +108 B (0.008%). Zero impact on load performance or caching.

💡 Optimization Suggestions

  1. No action needed — this diff reflects a neutral, safe dependency update with minor internal optimizations (e.g., fdir parsing reduction).
  2. Consider adding a CI size budget check (e.g., ±5 KB) to catch future regressions early — though current delta is negligible.
  3. Optional: Audit rstest’s build output if it ever starts contributing to JS chunks (currently appears unused in bundle per module list).

Analysis by qwen-plus

Generated by Rsdoctor GitHub Action

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