Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(window): support window test #3321

Merged
merged 40 commits into from
May 30, 2023
Merged

Conversation

suxin2017
Copy link
Collaborator

@suxin2017 suxin2017 commented May 29, 2023

Related issue (if exists)

Summary

馃 Generated by Copilot at d8a308b

This pull request improves the compatibility of the rspack library and its tests with Windows. It normalizes the asset paths, enforces the line endings, fixes the environment variables, and adjusts the GitHub workflows to run the tests on Windows. It uses the cross-env package and a helper function transformWindowPath to handle the platform differences.

Walkthrough

馃 Generated by Copilot at d8a308b

  • Add cross-env package to various scripts to set environment variables correctly on Windows (link, link, link)
  • Remove false && condition from if statement in .github/workflows/reusable-build.yml to enable test for x86_64-pc-windows-msvc target (link)
  • Switch test matrix from x86_64-unknown-linux-gnu to x86_64-pc-windows-msvc in .github/workflows/test.yml to focus on Windows tests (link)
  • Add transformWindowPath function to readAssets.js to replace forward slashes with backslashes in asset paths on Windows (link, link)
  • Reduce number of configs and concurrent compilations in MultiCompiler.test.ts to avoid memory issues and timeouts on Windows (link, link)
  • Add rules to .gitattributes to enforce LF line endings for some files and folders (link)

@suxin2017 suxin2017 changed the title Window test chore(window): support window test May 30, 2023
@suxin2017 suxin2017 marked this pull request as ready for review May 30, 2023 03:37
@suxin2017 suxin2017 marked this pull request as draft May 30, 2023 07:40
@suxin2017 suxin2017 marked this pull request as ready for review May 30, 2023 08:12
hardfist
hardfist previously approved these changes May 30, 2023
package.json Show resolved Hide resolved
@hardfist hardfist enabled auto-merge May 30, 2023 10:24
@hardfist hardfist added this pull request to the merge queue May 30, 2023
Merged via the queue into web-infra-dev:main with commit 97a38f6 May 30, 2023
17 checks passed
@suxin2017 suxin2017 deleted the window-test branch June 30, 2023 02:43
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.

None yet

2 participants