Skip to content

refactor(rolldown_fs_watcher): hand the handler file events instead of notify results - #10980

Merged
shulaoda merged 1 commit into
mainfrom
09-24-refactor_fs_watcher_hand_the
Sep 24, 2026
Merged

shulaoda merged 1 commit into
mainfrom
09-24-refactor_fs_watcher_hand_the

Conversation

@shulaoda

@shulaoda shulaoda commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

FsEventHandler::handle_events(Vec<FsEvent>): notify errors are logged in the adapter, so no notify type crosses the crate boundary; both consumers lose their Err branch.

@shulaoda
shulaoda added this pull request to stack #10976 September 24, 2026 04:30
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
d9e4d8d 2026-09-24T09:24:37.187Z View logs ↗
  • Build: Failed ❌

View logs ↗
f8ae346 2026-09-24T09:10:23.445Z View logs ↗
  • Build: Failed ❌

View logs ↗
5222b47 2026-09-24T09:05:56.484Z View logs ↗
  • Build: Failed ❌

View logs ↗
c8977b4 2026-09-24T08:48:16.560Z View logs ↗
  • Build: Failed ❌

View logs ↗
fdd5130 2026-09-24T08:37:00.325Z View logs ↗
  • Build: Failed ❌

View logs ↗
d6957b8 2026-09-24T08:30:45.377Z View logs ↗
  • Build: Failed ❌

View logs ↗
73bb024 2026-09-24T08:17:15.708Z View logs ↗
  • Build: Failed ❌

View logs ↗
9312d05 2026-09-24T07:40:23.948Z View logs ↗
  • Build: Failed ❌

View logs ↗
3cfc09d 2026-09-24T04:32:40.878Z View logs ↗

@netlify

netlify Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

Name Link
🔨 Latest commit d9e4d8d
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6ab4ebe2475be9000997e20e

@shulaoda shulaoda changed the title refactor(fs_watcher): hand the handler file events instead of notify results refactor(rolldown_fs_watcher): hand the handler file events instead of notify results Sep 24, 2026
@shulaoda
shulaoda marked this pull request as ready for review September 24, 2026 04:49
@codspeed

codspeed Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing 09-24-refactor_fs_watcher_hand_the (d9e4d8d) with main (637a47f)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 (c647baf) during the generation of this report, so 637a47f was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_hand_the branch from 3cfc09d to 9312d05 Compare September 24, 2026 07:36

@hyfdev hyfdev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I expect this is a temporary change. Sooner or later we're gonna handle errors in the consumer side.

@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_hand_the branch from 9312d05 to 73bb024 Compare September 24, 2026 08:15
@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_hand_the branch 3 times, most recently from fdd5130 to c8977b4 Compare September 24, 2026 08:46
@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_hand_the branch 2 times, most recently from 5222b47 to f8ae346 Compare September 24, 2026 09:08
Base automatically changed from 09-24-refactor_fs_watcher_share_one to main September 24, 2026 09:22
@shulaoda
shulaoda force-pushed the 09-24-refactor_fs_watcher_hand_the branch from f8ae346 to d9e4d8d Compare September 24, 2026 09:22
@shulaoda
shulaoda merged commit 5f05700 into main Sep 24, 2026
58 of 60 checks passed
@shulaoda
shulaoda deleted the 09-24-refactor_fs_watcher_hand_the branch September 24, 2026 10:59
@rolldown-guard rolldown-guard Bot mentioned this pull request Sep 24, 2026
shulaoda added a commit that referenced this pull request Sep 24, 2026
## [1.2.11] - 2026-09-24

### 🚀 Features

- watch: report only file events (#10974) by @shulaoda

### 🐛 Bug Fixes

- sourcemap: preserve names through `collapse_sourcemaps` (#9486) by @eoin
- watch: map metadata events by kind and missing paths as deleted (#10973) by @shulaoda

### 🚜 Refactor

- rolldown_fs_watcher: hand the handler file events instead of notify results (#10980) by @shulaoda
- rolldown_fs_watcher: share one event handler adapter between the notify watchers (#10979) by @shulaoda
- rolldown_fs_watcher: register every path with one watch mode (#10978) by @shulaoda
- rolldown_fs_watcher: tweak the backend traits and the event mapping (#10977) by @shulaoda
- watch: translate notify events inside FsWatcher (#10972) by @shulaoda

### 📚 Documentation

- watch: update the fs watcher layout and the dev coordinator message (#10981) by @shulaoda
- watch: document the event translation in FsWatcher (#10975) by @shulaoda

### ◀️ Revert

- "perf(dev/lazy): fetch a lazy route in one request" (#10789) (#10982) by @h-a-n-a

### ❤️ New Contributors

* @eoin made their first contribution in [#9486](#9486)

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.

3 participants