FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: fix flaky test-http-highwatermark by apapirovski · Pull Request #17949 · nodejs/node · GitHub

/ node Public

test: fix flaky test-http-highwatermark - #17949

Closed
apapirovski wants to merge 2 commits into
nodejs:masterfrom
apapirovski:fix-test-http-highwatermark
Closed

test: fix flaky test-http-highwatermark#17949
apapirovski wants to merge 2 commits into
nodejs:masterfrom
apapirovski:fix-test-http-highwatermark

Conversation

apapirovski commented Jan 2, 2018
edited
Loading

Copy link
Copy Markdown
Contributor

The current version of the test is dependent on the requests coming in before the data is successfully sent & read. Make write size much larger and delay the read on the other side a bit to get rid of the flakiness.

Fixes: #17857

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

test

apapirovski added the test Issues and PRs related to the tests. label Jan 2, 2018

apapirovski commented Jan 2, 2018
edited
Loading

Copy link
Copy Markdown
Contributor Author

Copy link
Copy Markdown
Contributor

@apapirovski Would you be able to run a stress test on OSX for this, it seems like that was the platform it was failing on most often

cc @Trott

apapirovski commented Jan 2, 2018
edited
Loading

Copy link
Copy Markdown
Contributor Author

Sure. Here it is: https://ci.nodejs.org/job/node-stress-single-test/1596/

(Although I'm on OS X so I already ran it locally.)

Edit: New one after making a minor tweak based on the feedback below: https://ci.nodejs.org/job/node-stress-single-test/1606/

c.write('GET / HTTP/1.1\r\n\r\n');
c.write('GET / HTTP/1.1\r\n\r\n');
c.write('GET / HTTP/1.1\r\n\r\n',
() => setImmediate(() => c.on('data', () => {})));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nit: c.resume()? It removes the noop.

apapirovski added the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jan 3, 2018

BridgeAR commented Jan 5, 2018

Copy link
Copy Markdown
Member

Another minimal CI to verify the fixup: https://ci.nodejs.org/job/node-test-commit-light/99/

BridgeAR added the fast-track PRs that do not need to wait for 48 hours to land. label Jan 5, 2018
BridgeAR pushed a commit to BridgeAR/node that referenced this pull request Jan 5, 2018
PR-URL: nodejs#17949
Fixes: nodejs#17857
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

BridgeAR commented Jan 5, 2018

Copy link
Copy Markdown
Member

Landed in a51944d

BridgeAR closed this Jan 5, 2018
apapirovski deleted the fix-test-http-highwatermark branch January 5, 2018 02:23
MylesBorins pushed a commit that referenced this pull request Jan 8, 2018
PR-URL: #17949
Fixes: #17857
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
MylesBorins pushed a commit that referenced this pull request Jan 9, 2018
PR-URL: #17949
Fixes: #17857
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
MylesBorins pushed a commit that referenced this pull request Jan 9, 2018
PR-URL: #17949
Fixes: #17857
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
MylesBorins mentioned this pull request Jan 10, 2018
TimothyGu removed the author ready PRs that have at least one approval, no outstanding review comments, and a CI started. label Jan 13, 2018
MylesBorins pushed a commit that referenced this pull request Jan 24, 2018
PR-URL: #17949
Fixes: #17857
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>

OrKoN commented Jan 25, 2020

Copy link
Copy Markdown
Contributor

@apapirovski @BridgeAR I have opened a PR for a different issue #30184 in which this test is the only one failing and I don't see an obvious reason why. I'd appreciate if you could take a look to see if there is smth wrong in my PR or the test #30184

This file contains hidden or 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fast-track PRs that do not need to wait for 48 hours to land. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Investigate flaky test-http-hightwatermark

7 participants


Back | FazBrowse Home | New Git URL