Skip to content

Conversation

@9aoy
Copy link
Contributor

@9aoy 9aoy commented Nov 18, 2025

Summary

test maxConcurrency and testTimeout configurations should be configurable via cli options

image

Related links

Checklist

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

Copilot AI review requested due to automatic review settings November 18, 2025 08:07
@9aoy 9aoy requested a review from LingyuCoder as a code owner November 18, 2025 08:07
@netlify
Copy link

netlify bot commented Nov 18, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 43834b3
🔍 Latest deploy log https://app.netlify.com/projects/rspack/deploys/691c29330ab615000886d5ff

@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label Nov 18, 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 adds CLI configurability for maxConcurrency and testTimeout test options. The maxConcurrency option can now be passed via --maxConcurrency CLI argument, and testTimeout is set to a fixed 300 seconds in the config.

  • Added CLI argument parsing for --maxConcurrency which sets DEFAULT_MAX_CONCURRENT environment variable
  • Modified creator.ts to read DEFAULT_MAX_CONCURRENT from environment and use it as the default max concurrent value
  • Set testTimeout to 300000ms (5 minutes) in the test config, overriding the previous conditional timeout
  • Removed hardcoded timeout fallback (300000ms) in the test creator

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
tests/rspack-test/rstest.config.ts Added CLI argument parsing for --maxConcurrency and set fixed testTimeout to 300000ms
packages/rspack-test-tools/src/test/creator.ts Updated DEFAULT_MAX_CONCURRENT to read from environment variable and removed hardcoded timeout fallback
Comments suppressed due to low confidence (1)

tests/rspack-test/rstest.config.ts:40

	testTimeout: process.env.CI ? 60000 : 30000,

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

@github-actions
Copy link
Contributor

📦 Binary Size-limit

Comparing 43834b3 to fix: swc-loader should not respect .swcrc (#12222) by CPunisher

🙈 Size remains the same at 47.48MB

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 18, 2025

CodSpeed Performance Report

Merging #12231 will not alter performance

Comparing test-maxConcurrency (43834b3) with main (2f78a97)1

Summary

✅ 17 untouched

Footnotes

  1. No successful run was found on main (b531d85) during the generation of this report, so 2f78a97 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@9aoy 9aoy enabled auto-merge (squash) November 18, 2025 10:19
@9aoy 9aoy merged commit 3fc7bf2 into main Nov 18, 2025
104 of 108 checks passed
@9aoy 9aoy deleted the test-maxConcurrency branch November 18, 2025 10:19
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