Skip to content

fix: emit build warnings during watch mode rebuilds#8897

Merged
graphite-app[bot] merged 1 commit intomainfrom
03-25-fix_8892
Mar 25, 2026
Merged

fix: emit build warnings during watch mode rebuilds#8897
graphite-app[bot] merged 1 commit intomainfrom
03-25-fix_8892

Conversation

@IWANABETHATGUY
Copy link
Copy Markdown
Member

@IWANABETHATGUY IWANABETHATGUY commented Mar 25, 2026

Summary

  • Watch mode was silently discarding BundleOutput.warnings (including CIRCULAR_DEPENDENCY) after successful builds
  • Forward warnings through the on_log callback in the watch task, matching the non-watch build path
  • Add a test verifying circular dependency warnings are emitted on both initial build and rebuild

Closes #8892

Test plan

  • New test watch should emit circular dependency warnings passes
  • All 29 existing watch tests pass with no regressions

Copy link
Copy Markdown
Member Author


How to use the Graphite Merge Queue

Add the label graphite: merge-when-ready to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 25, 2026

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 2167c2a
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/69c3759d63614e0008e3b552
😎 Deploy Preview https://deploy-preview-8897--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify bot commented Mar 25, 2026

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 2cead17
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/69c3a1b61fdc430008225abf
😎 Deploy Preview https://deploy-preview-8897--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@IWANABETHATGUY IWANABETHATGUY changed the title fix: 8892 fix: emit build warnings during watch mode rebuilds Mar 25, 2026
@IWANABETHATGUY IWANABETHATGUY marked this pull request as ready for review March 25, 2026 05:47
@IWANABETHATGUY IWANABETHATGUY requested a review from hyf0 March 25, 2026 05:47
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Mar 25, 2026

Merging this PR will not alter performance

✅ 4 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing 03-25-fix_8892 (2cead17) with main (eec7d73)2

Open in CodSpeed

Footnotes

  1. 10 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

  2. No successful run was found on main (2cead17) during the generation of this report, so eec7d73 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@graphite-app
Copy link
Copy Markdown
Contributor

graphite-app bot commented Mar 25, 2026

Merge activity

## Summary
- Watch mode was silently discarding `BundleOutput.warnings` (including `CIRCULAR_DEPENDENCY`) after successful builds
- Forward warnings through the `on_log` callback in the watch task, matching the non-watch build path
- Add a test verifying circular dependency warnings are emitted on both initial build and rebuild

Closes #8892

## Test plan
- [x] New test `watch should emit circular dependency warnings` passes
- [x] All 29 existing watch tests pass with no regressions
@graphite-app graphite-app bot merged commit 2cead17 into main Mar 25, 2026
31 checks passed
@graphite-app graphite-app bot deleted the 03-25-fix_8892 branch March 25, 2026 08:53
@github-actions github-actions bot mentioned this pull request Mar 25, 2026
shulaoda added a commit that referenced this pull request Mar 25, 2026
## [1.0.0-rc.12] - 2026-03-25

### 🚀 Features

- chunk-optimizer: skip circular dependency check when strict execution order is enabled (#8886) by @hyf0

### 🐛 Bug Fixes

- emit build warnings during watch mode rebuilds (#8897) by @IWANABETHATGUY
- lazy-barrel: load import-then-export specifiers when barrel has local exports (#8895) by @shulaoda
- correct execution order of transferred CJS init calls (#8877) by @IWANABETHATGUY
- mcs: `entriesAware` should calculate sizes without duplication (#8887) by @hyf0
- non-deterministic chunk generation (#8882) by @sapphi-red
- `is_top_level` incorrectly treats strict-mode scopes as top-level (#8878) by @Dunqing

### 🚜 Refactor

- treeshake: migrate SideEffectDetector to Oxc's MayHaveSideEffects trait (#8624) by @Dunqing

### 🧪 Testing

- make dev server tests deterministic by replacing fixed sleeps with event-driven polling (#8561) by @Boshen

### ⚙️ Miscellaneous Tasks

- deps: update dependency vite-plus to v0.1.14 (#8902) by @camc314
- deps: update dependency oxfmt to ^0.42.0 (#8891) by @renovate[bot]
- deps: update rust crate oxc_sourcemap to v6.1.1 (#8890) by @renovate[bot]
- remove Rolldown MF plan (#8883) by @shulaoda
- deps: update rollup submodule for tests to v4.60.0 (#8881) by @sapphi-red
- deps: update test262 submodule for tests (#8880) by @sapphi-red
- deps: upgrade oxc crates to 0.122.0 (#8879) by @shulaoda

Co-authored-by: shulaoda <[email protected]>
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.

[Bug]: Missing circular warning on watch

2 participants