-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Always pass NODE_OPTIONS with max-http-header-size #5452
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
02f5917
cli: set NODE_OPTIONS=--max-http-header-size=1024*1024 on spawn
flotwig 3521065
electron: remove redundant max-http-header-size
flotwig b08ee27
server: add useCli option to make e2e tests go thru cli
flotwig 35f864c
server: add test for XHR with body > 100kb via CLI
flotwig 96983f3
Merge remote-tracking branch 'origin/develop' into issue-5431-431-error
flotwig 33df694
clean up conditional
flotwig 0975407
cli: don't pass --max-http-header-size in dev w node < 11.10
flotwig eab3ddf
add original_node_options to restore o.g. user node_options
flotwig e63a9bc
force no color
flotwig 5547022
Merge branch 'develop' into issue-5431-431-error
flotwig a14b2b7
Merge branch 'develop' into issue-5431-431-error
flotwig File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
exports['lib/exec/spawn .start forces colors and streams when supported 1'] = { | ||
"FORCE_COLOR": "1", | ||
"DEBUG_COLORS": "1", | ||
"MOCHA_COLORS": "1", | ||
"FORCE_STDIN_TTY": "1", | ||
"FORCE_STDOUT_TTY": "1", | ||
"FORCE_STDERR_TTY": "1", | ||
"NODE_OPTIONS": "--max-http-header-size=1048576" | ||
} | ||
|
||
exports['lib/exec/spawn .start does not force colors and streams when not supported 1'] = { | ||
"FORCE_COLOR": "0", | ||
"DEBUG_COLORS": "0", | ||
"FORCE_STDIN_TTY": "0", | ||
"FORCE_STDOUT_TTY": "0", | ||
"FORCE_STDERR_TTY": "0", | ||
"NODE_OPTIONS": "--max-http-header-size=1048576" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/** | ||
* Once the Electron process is launched, restore the user's original NODE_OPTIONS | ||
* environment variables from before the CLI added extra NODE_OPTIONS. | ||
* | ||
* This way, any `node` processes launched by Cypress will retain the user's | ||
* `NODE_OPTIONS` without unexpected modificiations that could cause issues with | ||
* user code. | ||
*/ | ||
|
||
export function reset () { | ||
// @ts-ignore | ||
if (process.versions.electron && typeof process.env.ORIGINAL_NODE_OPTIONS === 'string') { | ||
process.env.NODE_OPTIONS = process.env.ORIGINAL_NODE_OPTIONS | ||
|
||
delete process.env.ORIGINAL_NODE_OPTIONS | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,5 @@ describe "e2e xhr", -> | |
spec: "xhr_spec.coffee" | ||
snapshot: true | ||
expectedExitCode: 0 | ||
useCli: true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Will the new max-header log in DEBUG logs for all of our users? Cause I'd like any new options to be logged in their DEBUG logs for future debugging.
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.
It is not logged anywhere :/ But, it should always be passed, as this is the only condition where it wouldn't be.