Skip to content

Conversation

@LingyuCoder
Copy link
Contributor

Summary

This PR systematically reviews and processes configCases test filters without support-related checks:

Enabled Tests (10 test.filter.js removed)

Successfully removed filters for tests that now pass:

  • clean/dry: Clean plugin dry run test
  • externals/import-assertion & import-attributes: Import assertions/attributes support
  • loader/type-module: ES module loader type handling
  • module/check-defaults: Module default config validation
  • plugins/environment-plugin: Environment plugin functionality
  • All 3 rule-set tests: simple, chaining, simple-use-array-fn
  • split-chunks/runtime-chunk: Runtime chunk splitting

Documented Failures (16 test.filter.js updated)

Added error documentation for tests that still fail:

  • Asset module issues: custom conditions, ignore patterns, error handling
  • Plugin limitations: LibManifestPlugin, ContextExclusionPlugin not exposed
  • Resolver issues: magic comments in dynamic imports
  • Split chunks and sharing: configuration mismatches
  • Other: CssModule readableIdentifier, LazySet implementation, etc.

Note

Tests with WASM environment checks (!process.env.WASM) were preserved as they require specific runtime conditions.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings December 10, 2025 13:41
@netlify
Copy link

netlify bot commented Dec 10, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 23951a3
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/69397c171eac8e00088b46b2

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Dec 10, 2025
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 improves the test infrastructure by systematically processing configCases test filters. It enables 10 tests that now pass by removing their test.filter.js files, and adds documentation comments to 16 test.filter.js files that still have failing tests to better explain why they fail.

  • Enables 10 previously filtered tests that now pass (clean/dry, externals import assertions/attributes, loader/type-module, module/check-defaults, plugins/environment-plugin, and all rule-set tests)
  • Documents 16 failing tests with structured comments explaining the specific failure reasons
  • Maintains consistent test filtering while improving code documentation and transparency

Reviewed changes

Copilot reviewed 26 out of 26 changed files in this pull request and generated 18 comments.

Show a summary per file
File Description
tests/rspack-test/configCases/utils/lazy-set/test.filter.js Added documentation explaining LazySet implementation issue
tests/rspack-test/configCases/split-chunks/runtime-chunk/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/split-chunks/no-options/test.filter.js Added documentation explaining missing splitChunks plugin
tests/rspack-test/configCases/split-chunks/entry-point-error/test.filter.js Added documentation for expected error emission issue
tests/rspack-test/configCases/sharing/consume-multiple-versions-ignore-warnings/test.filter.js Added documentation for warnings not being properly ignored
tests/rspack-test/configCases/rule-set/simple/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/rule-set/simple-use-array-fn/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/rule-set/chaining/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/resolve/issue-11335-context-module/test.filter.js Added documentation for magic comments issue
tests/rspack-test/configCases/resolve/context-resolve-with-ignore/test.filter.js Added documentation for magic comments issue
tests/rspack-test/configCases/plugins/lib-manifest-plugin/test.filter.js Added documentation explaining LibManifestPlugin not exposed
tests/rspack-test/configCases/plugins/environment-plugin/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/parsing/optional/test.filter.js Added documentation linking to potential fix PR
tests/rspack-test/configCases/module/check-defaults/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/loader/type-module/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/externals/import-attributes/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/externals/import-assertion/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/css-extract/rebuild-module/test.filter.js Added documentation for worker crash issue
tests/rspack-test/configCases/context-modules/exclusion/test.filter.js Added documentation explaining ContextExclusionPlugin not implemented
tests/rspack-test/configCases/clean/dry/test.filter.js Removed filter - test now passes
tests/rspack-test/configCases/chunk-index/recalc-index/test.filter.js Added documentation for CssModule readableIdentifier issue
tests/rspack-test/configCases/builtin-lightningcss-loader/report-warning/test.filter.js Added documentation for compilation errors
tests/rspack-test/configCases/asset-modules/query-and-custom-condition/test.filter.js Added documentation with issue link
tests/rspack-test/configCases/asset-modules/ignore/test.filter.js Added documentation with issue link
tests/rspack-test/configCases/asset-modules/errored/test.filter.js Added documentation for empty CSS asset issue
tests/rspack-test/configCases/asset-modules/custom-condition/test.filter.js Added documentation with issue link

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

Rsdoctor Bundle Diff Analysis

Found 5 project(s) in monorepo.

📁 react-10k

Path: ../build-tools-performance/cases/react-10k/dist/rsdoctor-data.json

📌 Baseline Commit: 4058f2676f | PR: #12408

Metric Current Baseline Change
📊 Total Size 5.7 MB 5.7 MB 0 B (0.0%)
📄 JavaScript 5.7 MB 5.7 MB 0 B (0.0%)
🎨 CSS 21.0 B 21.0 B 0 B (0.0%)
🌐 HTML 0 B 0 B N/A
📁 Other Assets 0 B 0 B N/A

📦 Download Diff Report: react-10k Bundle Diff

📁 react-1k

Path: ../build-tools-performance/cases/react-1k/dist/rsdoctor-data.json

📌 Baseline Commit: 4058f2676f | PR: #12408

Metric Current Baseline Change
📊 Total Size 823.6 KB 823.6 KB 0 B (0.0%)
📄 JavaScript 823.6 KB 823.6 KB 0 B (0.0%)
🎨 CSS 0 B 0 B N/A
🌐 HTML 0 B 0 B N/A
📁 Other Assets 0 B 0 B N/A

📦 Download Diff Report: react-1k Bundle Diff

📁 react-5k

Path: ../build-tools-performance/cases/react-5k/dist/rsdoctor-data.json

📌 Baseline Commit: 4058f2676f | PR: #12408

Metric Current Baseline Change
📊 Total Size 2.7 MB 2.7 MB 0 B (0.0%)
📄 JavaScript 2.7 MB 2.7 MB 0 B (0.0%)
🎨 CSS 21.0 B 21.0 B 0 B (0.0%)
🌐 HTML 0 B 0 B N/A
📁 Other Assets 0 B 0 B N/A

📦 Download Diff Report: react-5k Bundle Diff

📁 rome

Path: ../build-tools-performance/cases/rome/dist/rsdoctor-data.json

📌 Baseline Commit: 4058f2676f | PR: #12408

Metric Current Baseline Change
📊 Total Size 984.3 KB 984.3 KB 0 B (0.0%)
📄 JavaScript 984.3 KB 984.3 KB 0 B (0.0%)
🎨 CSS 0 B 0 B N/A
🌐 HTML 0 B 0 B N/A
📁 Other Assets 0 B 0 B N/A

📦 Download Diff Report: rome Bundle Diff

📁 ui-components

Path: ../build-tools-performance/cases/ui-components/dist/rsdoctor-data.json

📌 Baseline Commit: 4058f2676f | PR: #12408

Metric Current Baseline Change
📊 Total Size 2.1 MB 2.1 MB 0 B (0.0%)
📄 JavaScript 2.0 MB 2.0 MB 0 B (0.0%)
🎨 CSS 83.0 KB 83.0 KB 0 B (0.0%)
🌐 HTML 0 B 0 B N/A
📁 Other Assets 0 B 0 B N/A

📦 Download Diff Report: ui-components Bundle Diff

Generated by Rsdoctor GitHub Action

@github-actions
Copy link
Contributor

github-actions bot commented Dec 10, 2025

📦 Binary Size-limit

Comparing 23951a3 to refactor: use atomic_refcell for async_module_artifact (#12408) by hardfist

🙈 Size remains the same at 47.72MB

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 10, 2025

CodSpeed Performance Report

Merging #12412 will not alter performance

Comparing test/enable-config-cases-tests (23951a3) with main (4058f26)

Summary

✅ 17 untouched

@LingyuCoder LingyuCoder requested a review from 9aoy December 11, 2025 02:12
@9aoy 9aoy merged commit 5802807 into main Dec 11, 2025
75 of 77 checks passed
@9aoy 9aoy deleted the test/enable-config-cases-tests branch December 11, 2025 02:48
@github-actions github-actions bot mentioned this pull request Dec 11, 2025
2 tasks
@CPunisher CPunisher mentioned this pull request Dec 17, 2025
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants