Skip to content

ci: re-enable the Windows test-build job - #659

Merged
fi3ework merged 2 commits into
v4from
ci/v4-reenable-windows
Nov 27, 2026
Merged

fi3ework merged 2 commits into
v4from
ci/v4-reenable-windows

Conversation

@fi3ework

@fi3ework fi3ework commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Summary

Re-enable the windows-latest (26.x) entry in .github/workflows/ci.yaml that was temporarily disabled in 136465d6 (tracked in #601), and fix a Windows ESM file:// URL import bug uncovered in rspack-mock-plugin.test.ts once Windows tests ran again:

# .github/workflows/ci.yaml
           - os: macos-latest
             node-version: 26.x
-          # TODO(#601): Re-enable once Storybook 11 emits a platform-agnostic
-          # `webpackInclude` on Windows (picomatch 4 currently leaves it
-          # POSIX-only, so the stories context is empty there).
-          # - os: windows-latest
-          #   node-version: 26.x
+          - os: windows-latest
+            node-version: 26.x
# packages/builder-rsbuild/tests/plugins/rspack-mock-plugin.test.ts
-import real from ${JSON.stringify(automockLoader)}
+import real from ${JSON.stringify(pathToFileURL(automockLoader).href)}

Upstream Storybook fixed the picomatch v4 Windows webpackInclude bug in https://redirect.github.com/storybookjs/storybook/pull/37344 (2b0874cc, shipped in v11.0.0-beta.2 and included in our current v11.0.0-rc.1). Because packages/builder-rsbuild/prebundle.config.mjs externalizes storybook/internal/common, toImportFn invokes the fixed globToRegexp at runtime.

Evidence

  • Before:
    • test-build (windows-latest, 26.x) was disabled in 136465d6 after PR feat!: adopt Storybook 11 stable docgenServer feature #594 failed with empty story contexts on Windows.
    • First Windows CI run (45944124797) passed all sandbox builds and 32/33 unit test files (confirming #601 is resolved), failing only in rspack-mock-plugin.test.ts where the generated automock-wrapper.mjs emitted a raw D:\... path in an ESM import (Received protocol 'd:').
  • After:
    • packages/builder-rsbuild/tests/plugins/rspack-mock-plugin.test.ts converts automockLoader via pathToFileURL(...).href (df280789).
    • Local checks passed: pnpm exec rs test packages/builder-rsbuild/tests/plugins/rspack-mock-plugin.test.ts (16/16), pnpm check (408 lint/type, 624 fmt), pnpm check-dependency-version.
    • GitHub Actions test-build (windows-latest, 26.x) re-triggered on df280789.

Merge Danger

Door: Two-way

Reverting restores the commented matrix entry with zero runtime code impact.

Blast Radius: CI-only

Affects GitHub Actions workflow execution on v4 and one unit test helper; adds test-build (windows-latest, 26.x) back into the ci-passed gate.

Storybook 11.0.0-beta.2+ (storybookjs/storybook#37344) passes `windows: process.platform === 'win32'` to picomatch in `globToRegexp`, fixing the POSIX-only `webpackInclude` bug tracked in #601.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T05:10:21.635690Z 8968584 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@fi3ework
fi3ework merged commit 94093bd into v4 Nov 27, 2026
6 checks passed
@fi3ework
fi3ework deleted the ci/v4-reenable-windows branch November 27, 2026 05:28
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.

1 participant