Skip to content

test(transform): group the transform-target fixtures and say why each exists - #10569

Merged
IWANABETHATGUY merged 1 commit into
mainfrom
test/group-transform-target-fixtures
Aug 3, 2026
Merged

IWANABETHATGUY merged 1 commit into
mainfrom
test/group-transform-target-fixtures

Conversation

@IWANABETHATGUY

Copy link
Copy Markdown
Member

Test-only follow-up to #10564. No source changes, and the snapshots are byte-identical — their contents do not encode the fixture path.

What

The three using fixtures added in #10564 sat as siblings under function/, told apart only by a suffix on the directory name:

explicit_resource_management_target/
explicit_resource_management_target_chrome/
explicit_resource_management_target_no_tsconfig/

They are now one group, following the advanced_chunks/ convention where the parent is a plain directory with no _config.json of its own, with each leaf named after the case it pins rather than after how it differs from its neighbour:

explicit_resource_management_target/
  es2024/              the ES-target gap the old gate fell through
  chrome133/           engine targets, which do not reduce to one ES version
  es2024_no_tsconfig/  the `Normal` transform-options variant

Why

Two things the old layout left implicit.

The es2024 fixture carried no _comment, and "target": "es2024" alone does not explain why that target. It is the one that exposed the bug: unicode-sets RegExp is supported from es2024 on, so a gate keyed on that single feature concluded "nothing left to lower" — while using is not supported until es2026 and does need lowering. Without the fix it emits using resource = acquireResource(); unchanged.

The _no_tsconfig comment said the variant differs from "every other fixture", which was true while the three were scattered and misleading once they are siblings. It now names what it actually pins: the same es2024 target on the Normal options variant, since tsconfig defaults to auto-discovery and puts the other two on Raw.

Each leaf now carries a _comment saying what it covers.

Test plan

  • cargo test -p rolldown --test integration — 1971 passed, 0 failed
  • The three fixtures pass at their new paths; no snapshot regeneration was needed

@netlify

netlify Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for rolldown-rs canceled.

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

@IWANABETHATGUY
IWANABETHATGUY marked this pull request as ready for review July 31, 2026 16:03
… exists

The three `using` fixtures added in #10564 sit as siblings under `function/`,
distinguished only by a suffix on the directory name, and the first carries no
`_comment` — `"target": "es2024"` alone does not convey why that target in
particular.

Nest them under one group, following the `advanced_chunks/` convention where the
parent is a plain directory with no `_config.json` of its own, and name each leaf
after the case it pins rather than after how it differs from its neighbour:

  explicit_resource_management_target/
    es2024/              the ES-target gap the old gate fell through
    chrome133/           engine targets, which do not reduce to one ES version
    es2024_no_tsconfig/  the `Normal` transform-options variant

Each leaf gets a `_comment` explaining what it covers. Snapshots are unchanged —
their contents do not encode the fixture path.
@IWANABETHATGUY
IWANABETHATGUY enabled auto-merge (squash) August 3, 2026 03:32
@IWANABETHATGUY
IWANABETHATGUY force-pushed the test/group-transform-target-fixtures branch from 9f64d99 to ffbf4fd Compare August 3, 2026 03:33
@IWANABETHATGUY
IWANABETHATGUY merged commit d70adaf into main Aug 3, 2026
32 of 33 checks passed
@IWANABETHATGUY
IWANABETHATGUY deleted the test/group-transform-target-fixtures branch August 3, 2026 03:38
@rolldown-guard rolldown-guard Bot mentioned this pull request Aug 3, 2026
shulaoda added a commit that referenced this pull request Aug 3, 2026
## [1.2.2] - 2026-08-03

### 🚀 Features

- code-splitting: support inlining of shared deps in dynamic entries (#10526) by @nicolo-ribaudo
- plugin: time the user callbacks configured on the options (#10509) by @IWANABETHATGUY

### 🐛 Bug Fixes

- dev: force `cleanDir` off in dev mode (#10579) by @shulaoda
- dev: keep `?rolldown-lazy` proxy ids out of user `resolveId` hooks (#10580) by @btea
- initialize re-exported wrapped ESM modules at the entry chunk (#10567) by @hyfdev
- link: resolve circular star reexports as null (#10445) by @Nic-Polumeyv
- transform: transformer gate skips newer syntax that oxc can lower (#10564) by @sekyungk
- code-splitting: materialize consumer-local barrel routing when the order-wrap plan is empty (#10544) by @hyfdev
- plugin: measure plugin hooks in JavaScript, report them from Rust (#10508) by @IWANABETHATGUY
- plugin: include external dynamic imports in chunk metadata (#10557) by @hyfdev
- plugin: report plugin timings after closeBundle has run (#10521) by @IWANABETHATGUY
- browser: avoid using node builtin modules (#10542) by @sapphi-red

### 🚜 Refactor

- plugin: give the build's own clocks their own type (#10520) by @shulaoda

### 📚 Documentation

- correct stale `buildStart` comment in `ScanStageCache::merge` (#10577) by @shulaoda
- update outdated pluginutils references (#10574) by @dogledogle

### ⚡ Performance

- external: drop the runtime import from chunks that never wrap (#10517) by @IWANABETHATGUY
- plugin: clock the build only when it is being measured (#10558) by @IWANABETHATGUY

### 🧪 Testing

- vite-tests: drop the dead `@rolldown/pluginutils` pnpm override (#10575) by @IWANABETHATGUY
- transform: group the transform-target fixtures and say why each exists (#10569) by @IWANABETHATGUY
- dev: fix hmr-hot-update-hook-vite fixture on Windows (#10565) by @h-a-n-a
- dev: match Vite's renamed full-reload log (#10547) by @shulaoda

### ⚙️ Miscellaneous Tasks

- deps: update napi (#10576) by @renovate[bot]
- deps: bump `@napi-rs/wasm-runtime` to 1.2.2 (#10570) by @shulaoda
- deps: update npm packages (#10583) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to ^0.28.0 (#10588) by @renovate[bot]
- deps: update taiki-e/install-action action to v2.85.5 (#10587) by @renovate[bot]
- deps: update codspeedhq/action action to v5 (#10584) by @renovate[bot]
- deps: update github actions (#10582) by @renovate[bot]
- deps: update rust crates (#10581) by @renovate[bot]
- deps: update dependency vite-plus to v0.2.7 (#10568) by @renovate[bot]
- deps: update dependency rolldown-plugin-dts to v0.27.14 (#10531) by @renovate[bot]
- deps: update pnpm to v11.17.0 (#10571) by @renovate[bot]
- deps: update @napi-rs/wasm-runtime to 1.2.1 (#10545) by @sapphi-red

### ❤️ New Contributors

* @sekyungk made their first contribution in [#10564](#10564)
* @nicolo-ribaudo made their first contribution in [#10526](#10526)

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.

2 participants