Skip to content

fix(dev): resolve in-flight ensureLatestBuildOutput when the engine closes - #10730

Merged
graphite-app[bot] merged 1 commit into
mainfrom
fix/dev-close-ensure-latest
Aug 20, 2026
Merged

graphite-app[bot] merged 1 commit into
mainfrom
fix/dev-close-ensure-latest

Conversation

@h-a-n-a

@h-a-n-a h-a-n-a commented Aug 20, 2026 •

Copy link
Copy Markdown
Member

h-a-n-a commented Aug 20, 2026

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

netlify Bot commented Aug 20, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit 3c104a7
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/6a86da2fcc525800087ac8f8
😎 Deploy Preview https://deploy-preview-10730--rolldown-rs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

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

@h-a-n-a h-a-n-a changed the title fix(dev): resolve in-flight ensureLatestBuildOutput when the engine closes fix(dev): resolve in-flight ensureLatestBuildOutput when the engine closes Aug 20, 2026
@h-a-n-a
h-a-n-a marked this pull request as ready for review August 20, 2026 07:59
@h-a-n-a
h-a-n-a requested a review from sapphi-red August 20, 2026 07:59

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 355c30071e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/rolldown_dev/src/dev_engine.rs Resolved
@h-a-n-a
h-a-n-a force-pushed the fix/dev-close-ensure-latest branch from 355c300 to faacfe1 Compare August 20, 2026 08:04
@codspeed

codspeed Bot commented Aug 20, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 7 untouched benchmarks
⏩ 10 skipped benchmarks1


Comparing fix/dev-close-ensure-latest (faacfe1) with main (6338175)

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. ↩

h-a-n-a commented Aug 20, 2026 •

Copy link
Copy Markdown
Member Author

Merge activity

  • Aug 20, 8:12 AM UTC: The merge label 'graphite: merge-when-ready' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Aug 20, 10:41 AM UTC: h-a-n-a added this pull request to the Graphite merge queue.
  • Aug 20, 10:49 AM UTC: Merged by the Graphite merge queue.

@sapphi-red sapphi-red 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.

Thanks!

… closes (#10730)

<!--
- What is this PR solving? Write a clear and concise description.
- Reference the issues it solves (e.g. `fixes #123`).
- What other alternatives have you explored?
- Are there any parts you think require more attention from reviewers?

Also, please make sure you do the following:

- Read the Contributing Guidelines at https://rolldown.rs/contribution-guide/.
- Check that there isn't already a PR that solves the problem the same way. If you find a duplicate, please help us review it.
- Update the corresponding documentation if needed.
- Include relevant tests that fail without this PR but pass with it. If the tests are not included, explain why.

Thank you for contributing to Rolldown!
-->

Closes #10729

Should fix https://github.com/vitejs/vite/actions/runs/32221446912/job/95972569681?pr=23302#step:15:38
@graphite-app
graphite-app Bot force-pushed the fix/dev-close-ensure-latest branch from faacfe1 to 3c104a7 Compare August 20, 2026 10:42
@graphite-app
graphite-app Bot merged commit 3c104a7 into main Aug 20, 2026
35 of 36 checks passed
@graphite-app
graphite-app Bot deleted the fix/dev-close-ensure-latest branch August 20, 2026 10:49
Brooooooklyn added a commit that referenced this pull request Aug 21, 2026
Union resolutions:

- dev_engine.rs ensure_latest_bundle_output: keep our futures oneshot
  and unbounded_send, adopt main's close-tolerant send handling (#10730).
- dev-engine.ts: keep both additions - our async-context callback
  helpers and main's DevEngineModuleGraph.
- dev-engine implementation.md: keep both new bullets in the
  close-returns-Ok list.

Main's #10717 replaced every BindingErrorsOr emitter with
BindingResult, so the branch-only dtsHeader alias had no producer left;
its one consumer was our packed-consumer type exercise. Both now use
BindingResult, and the dtsHeader is byte-identical to main's again.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01T34fMrYCf2V13Mg8BKmnda
@rolldown-guard rolldown-guard Bot mentioned this pull request Aug 26, 2026
shulaoda added a commit that referenced this pull request Aug 26, 2026
## [1.2.6] - 2026-08-26

### 🚀 Features

- minify: support property name mangling (#10374) by @Dunqing
- add `tsconfig: string` option to `transform` (#10727) by @sapphi-red
- rolldown_plugin_vite_transform: add `tsconfig` option (#10725) by @sapphi-red
- rolldown_plugin_vite_resolve: add top-level `tsconfig` option (#10724) by @sapphi-red
- dev: expose module graph queries on the dev engine handle (#10716) by @h-a-n-a

### 🐛 Bug Fixes

- dev: assign import bindings before initializing dependencies (#10783) by @h-a-n-a
- dev: copy star re-exports before initializing dependencies (#10761) by @h-a-n-a
- dev: register an empty exports object for a module without exports (#10772) by @h-a-n-a
- name the module when a `codeSplitting` group callback returns a wrong type (#10753) by @IWANABETHATGUY
- dev: map dev rename events like build watch (#10758) by @shulaoda
- clear resolution cache when `TsconfigCache::clear` is called (#10726) by @sapphi-red
- dev: resolve in-flight `ensureLatestBuildOutput` when the engine closes (#10730) by @h-a-n-a
- binding: replace undeclared BindingErrorsOr with BindingResult in hook types (#10717) by @h-a-n-a

### 🚜 Refactor

- rolldown_fs_watcher: collapse fs-watcher backends behind a single FsWatcher (#10735) by @shulaoda
- hoist invariants out of the `codeSplitting` group loop (#10744) by @IWANABETHATGUY

### 📚 Documentation

- document shared notify rename mapping (#10759) by @shulaoda
- update watch-mode internals for unified FsWatcher (#10736) by @shulaoda

### ⚡ Performance

- batch `codeSplitting` group `test` / `name` calls (#10745) by @IWANABETHATGUY
- deduplicate used symbol ref readers (#10742) by @Boshen
- reduce release debug formatting (#10728) by @Boshen
- enable compiler cache via `module.enableCompileCache()` (#10678) by @btea
- deduplicate regress codegen (#10732) by @Boshen

### 🧪 Testing

- define: add expected failure for default parameter scope (#10780) by @hyfdev
- use an absolute filename for transform tsconfig path (#10782) by @shulaoda

### ⚙️ Miscellaneous Tasks

- deps: upgrade oxc to 0.147.0 (#10767) by @camc314
- deps: update resolver dependencies (#10766) by @Boshen
- deps: update rollup submodule for tests to v4.62.5 (#10770) by @rolldown-guard[bot]
- deps: update dependency vite-plus to ^0.3.0 (#10757) by @renovate[bot]
- deps: update npm packages (#10750) by @renovate[bot]
- deps: update rust crates (#10748) by @renovate[bot]
- deps: update rust crate napi to v3.12.2 (#10738) by @renovate[bot]
- deps: update dependency rust to v1.98.0 (#10733) by @renovate[bot]
- wasi: cap each Node Test attempt with timeout to survive hangs (#10709) by @hyfdev

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]: in-flight ensureLatestBuildOutput rejects with UNHANDLEABLE_ERROR "channel closed" when the engine closes

2 participants