-
-
Notifications
You must be signed in to change notification settings - Fork 746
test: maxConcurrency and testTimeout should be configurable via cli options
#12231
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for rspack canceled.
|
There was a problem hiding this 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
--maxConcurrencywhich setsDEFAULT_MAX_CONCURRENTenvironment variable - Modified
creator.tsto readDEFAULT_MAX_CONCURRENTfrom environment and use it as the default max concurrent value - Set
testTimeoutto 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
- This property is overwritten by another property in the same object literal.
testTimeout: process.env.CI ? 60000 : 30000,
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📦 Binary Size-limit
🙈 Size remains the same at 47.48MB |
CodSpeed Performance ReportMerging #12231 will not alter performanceComparing Summary
Footnotes |
Summary
test
maxConcurrencyandtestTimeoutconfigurations should be configurable via cli optionsRelated links
Checklist