-
Notifications
You must be signed in to change notification settings - Fork 278
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
ci(e2e): fix e2e all-test action error #2738
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,7 @@ const Config = ({ testDir, baseURL, storageState, devServerCommon }) => | |
: { | ||
command: devServerCommon, | ||
url: baseURL, | ||
reuseExistingServer: !process.env.CI, | ||
reuseExistingServer: !!process.env.CI, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification The review comment's suggestion is valid and should be implemented Looking at the codebase, the Key impacts found in the codebase:
The suggested change to 🔗 Analysis chainEnsure correct boolean interpretation of the Currently, - reuseExistingServer: !!process.env.CI,
+ reuseExistingServer: process.env.CI === 'true', Let me verify how the 🏁 Scripts executedThe following scripts were executed for the analysis: Error: No shell scripts found Script: #!/bin/bash
# Search for usage of process.env.CI in the codebase
rg "process\.env\.CI" -A 2 -B 2
Length of output: 2212 Script: #!/bin/bash
# Search for any configuration or documentation related to CI environment variable
fd "CI" --type f --exec grep -l "CI" {} \;
Length of output: 43 Script: #!/bin/bash
# Look for any tests or configuration files that might set or use CI environment variable
rg "CI.*=.*['\"](true|false)" -A 2 -B 2
Length of output: 423 |
||
stdout: 'pipe' | ||
}, | ||
projects: [ | ||
|
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.
The change from
!process.env.CI
to!!process.env.CI
alters the logic to reuse the existing server only when the CI environment variable is truthy. This is a critical fix for ensuring correct behavior in CI environments.