Skip to content

build: fix early exit in script build-node#8617

Merged
graphite-app[bot] merged 1 commit intomainfrom
03-10-build_fix_race_condition_in_script_build-node
Mar 10, 2026
Merged

build: fix early exit in script build-node#8617
graphite-app[bot] merged 1 commit intomainfrom
03-10-build_fix_race_condition_in_script_build-node

Conversation

@h-a-n-a
Copy link
Member

@h-a-n-a h-a-n-a commented Mar 10, 2026

When debugging rolldown, script build-node, which hasn't completed yet, sometimes exit earlier than build-types-check, causing an issue where dts checks are not able to pass. Claude helps me find an issue related to an early exit issue in oxnode. In this PR, I temprarily replaced the script with direct invocation of @oxc-node/core to fix the issue.
I've created an issue at oxc-project/oxc-node#493

Note: I've just changed the script that affects my workflow and kept the others as-is.

Copy link
Member Author

h-a-n-a commented Mar 10, 2026


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

netlify bot commented Mar 10, 2026

Deploy Preview for rolldown-rs ready!

Name Link
🔨 Latest commit b821838
🔍 Latest deploy log https://app.netlify.com/projects/rolldown-rs/deploys/69afece9b6a2760008333612
😎 Deploy Preview https://deploy-preview-8617--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.

@h-a-n-a h-a-n-a changed the title build: fix race condition in script build-node build: fix in script build-node Mar 10, 2026
@h-a-n-a h-a-n-a changed the title build: fix in script build-node build: fix earily exit Mar 10, 2026
@h-a-n-a h-a-n-a changed the title build: fix earily exit build: fix earily exit in script build-node Mar 10, 2026
@h-a-n-a h-a-n-a changed the title build: fix earily exit in script build-node build: fix early exit in script build-node Mar 10, 2026
@h-a-n-a h-a-n-a marked this pull request as ready for review March 10, 2026 10:00
Copilot AI review requested due to automatic review settings March 10, 2026 10:00
Copy link
Member Author

h-a-n-a commented Mar 10, 2026

Merge activity

  • Mar 10, 10:00 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.
  • Mar 10, 10:05 AM UTC: h-a-n-a added this pull request to the Graphite merge queue.
  • Mar 10, 10:09 AM UTC: Merged by the Graphite merge queue.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to prevent intermittent early exits in the build-node workflow by replacing the oxnode wrapper invocation with a direct node invocation that preloads @oxc-node/core/register.

Changes:

  • Replaced the build-node script from oxnode -C dev ./build.ts to a node --import @oxc-node/core/register ... invocation.

@h-a-n-a h-a-n-a requested review from hyf0 and shulaoda March 10, 2026 10:03
When debugging rolldown, script `build-node` sometimes exit earlier than `build-types-check` , causing an issue where dts checks are not able to pass. Claude helps me find an issue related to an early exit issue in oxnode. In this PR, I temprarily replaced the script with direct invocation of `@oxc-node/core` to fix the issue.
I've created an issue at oxc-project/oxc-node#493

Note: I've just changed the script that affects my workflow and kept the others as-is.
@graphite-app graphite-app bot force-pushed the 03-10-build_fix_race_condition_in_script_build-node branch from 6681829 to b821838 Compare March 10, 2026 10:05
@graphite-app graphite-app bot merged commit b821838 into main Mar 10, 2026
31 checks passed
@graphite-app graphite-app bot deleted the 03-10-build_fix_race_condition_in_script_build-node branch March 10, 2026 10:09
This was referenced Mar 11, 2026
shulaoda added a commit that referenced this pull request Mar 11, 2026
## [1.0.0-rc.9] - 2026-03-11

### 💥 BREAKING CHANGES

- rename exported BindingMagicString to RolldownMagicString (#8626) by @IWANABETHATGUY

### 🚀 Features

- rolldown: add isRolldownMagicString property for reliable native detection (#8614) by @IWANABETHATGUY
- cli: align object type with rollup (#8598) by @h-a-n-a

### 🐛 Bug Fixes

- rust: circular inter-chunk imports when external dynamic imports exist (#8596) by @Dunqing
- update minify default docs from `false` to `'dce-only'` (#8620) by @shulaoda

### 💼 Other

- fix early exit in script build-node (#8617) by @h-a-n-a

### 🚜 Refactor

- binding: remove outdated TODO comment in MagicString to_string() (#8613) by @IWANABETHATGUY

### 📚 Documentation

- add viteplus alpha announcement banner (#8615) by @mdong1909
- update VitePress theme to 4.8.2 for narrow-screen layout regression (#8612) by @Copilot

### ⚡ Performance

- merge 4 integration test binaries into 1 (#8610) by @Boshen

### 🧪 Testing

- replace heavy filename_with_hash test with targeted hash fixtures (#8597) by @Boshen

### ⚙️ Miscellaneous Tasks

- ci: remove redundant `--no-run` build step from cargo-test (#8623) by @Boshen
- rust: use `cargo-shear` to toggle Cargo.toml [lib] test = bool (#8622) by @Boshen
- deps: update test262 submodule for tests (#8611) by @sapphi-red
- skip macOS CI jobs on pull requests (#8608) by @Copilot
- add rust cache to repo validation job (#8607) by @Boshen
- skip running empty bin test targets (#8605) by @Boshen
- skip building examples in cargo-test to reduce build time (#8603) by @Boshen
- switch plain workflow checkouts to taiki-e action (#8601) by @Boshen
- skip Windows CI jobs on PRs (#8600) by @Boshen
- remove unused asset module (#8594) by @shulaoda

### ◀️ Revert

- "docs: add viteplus alpha announcement banner (#8615)" (#8616) by @shulaoda

Co-authored-by: shulaoda <165626830+shulaoda@users.noreply.github.com>
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