GeezerVison is showing github.com — test: fix flaky timeout-request body and headers tests by Linkgoron · Pull Request #38045 · nodejs/node
Conversation
Linkgoron
commented
Apr 2, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
fix the flaky test-http-server-request-timeout-delayed-body and test-http-server-request-timeout-delayed-headers tests which sometimes fail on slow systems. This happened to me today on the raspberry pi CI, and I could reproduce this locally by running /tools/test.py -j250 --repeat=1000 test/parallel/test-http-server-request-timeout-delayed-body.js. I could not reproduce the issue after my fix.
The reason, I believe, is that sometimes it takes more than a second for the request to "reach" the server. I've changed the tests to delay the body/headers sending to only happen when we're sure that a connection was made with the server.
EDIT:
Also added the same fix to:
test/parallel/test-http-server-request-timeout-interrupted-body.js
test/parallel/test-http-server-request-timeout-interrupted-headers.js
test/parallel/test-http-server-request-timeout-upgrade.js
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Linkgoron
changed the title
test: fix flaky timeout-delayed-body and headers tests
test: fix flaky timeout-request body and headers tests
Apr 3, 2021
Linkgoron
commented
Apr 3, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
Added the same fix to 3 other tests that check requestTimeout. There's also an open issue for flakiness in test-http-request-timeout-keepalive (which I didn't change), but I think that the flakiness there is caused by a different problem.
|
benjamingr reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
fix the flaky test-http-server-request-timeout-delayed-body
and test-http-server-request-timeout-delayed-headers which
sometimes fail on slow systems.
PR-URL: nodejs#38045
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Linkgoron reacted with hooray emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
targos
pushed a commit
that referenced
this pull request
May 1, 2021
fix the flaky test-http-server-request-timeout-delayed-body
and test-http-server-request-timeout-delayed-headers which
sometimes fail on slow systems.
PR-URL: #38045
Reviewed-By: Benjamin Gruenbaum <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewers
Trott
Trott approved these changes
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
author ready
PRs with CI started, the required approvals, and no outstanding review comments.
flaky-test
Issues and PRs involving tests that fail intermittently in CI.
needs-ci
PRs that need a full CI run.
test
Issues and PRs related to Node.js core tests and test infrastructure.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|