GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: fix unreliable test-gc-http-client by Trott · Pull Request #23145 · nodejs/node

Conversation

@Trott

@Trott Trott commented Sep 28, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Calling global.gc() in multiple places leads to unreliability. Call it
in the interval only.

Fixes: #22336

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nodejs-github-bot

nodejs-github-bot commented Sep 28, 2018

Copy link
Copy Markdown
Collaborator

@Trott build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/1049/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nodejs-github-bot nodejs-github-bot added the test Issues and PRs related to Node.js core tests and test infrastructure. label Sep 28, 2018
@Trott Trott mentioned this pull request Sep 28, 2018
Investigate flaky test-gc-http-client-timeout #23066
Closed
@Trott

Trott commented Sep 28, 2018

Copy link
Copy Markdown
Member Author

Would like to fast-track this. 👍 if you approve.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott Trott added the fast-track PRs proposed for a shorter-than-standard waiting period before landing. label Sep 28, 2018
@Trott

Trott commented Sep 28, 2018

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/17497/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

addaleax
addaleax approved these changes Sep 28, 2018
View reviewed changes
@targos

targos commented Sep 28, 2018

Copy link
Copy Markdown
Member

Does it really fix #23066? It's not modifying the test in question.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

targos
targos approved these changes Sep 28, 2018
View reviewed changes
@targos

targos commented Sep 28, 2018

Copy link
Copy Markdown
Member

Please remove the "Fixes:" link from the commit message.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

targos
targos previously requested changes Sep 28, 2018
View reviewed changes

@targos targos left a comment

Copy link
Copy Markdown
Member

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.

Sorry, this test is not fixed for me

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@addaleax

addaleax commented Sep 28, 2018

Copy link
Copy Markdown
Member

@targos Just to be clear, your red X is about the Fixes: tag, not the diff itself, right? Because I think this is definitely an improvement.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos

targos commented Sep 28, 2018

Copy link
Copy Markdown
Member

After applying this change, I ran: ./tools/test.py --repeat 100 test/sequential/test-gc-http-client.js

The test always fails before the 30th execution.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@targos
targos dismissed their stale review September 28, 2018 14:28

might be an improvement, but doesn't fix flakyness

@Trott Trott mentioned this pull request Sep 28, 2018
Investigate flaky parallel/test-gc-http-client #22336
Closed
@Trott
Trott force-pushed the fix-23066 branch from 4d88b6b to f847403 Compare September 28, 2018 18:04
@Trott
test: fix unreliable test-gc-http-client
8741af6
Calling `global.gc()` in multiple places leads to unreliability. Call it
in the interval only.

Fixes: nodejs#22336
@Trott
Trott force-pushed the fix-23066 branch from f847403 to 8741af6 Compare September 28, 2018 18:07
@Trott

Trott commented Sep 28, 2018

Copy link
Copy Markdown
Member Author

Stress test this PR: https://ci.nodejs.org/job/node-stress-single-test/2031/

Stress test master: https://ci.nodejs.org/job/node-stress-single-test/2032/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Sep 28, 2018

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/17498/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lpinca
lpinca approved these changes Sep 28, 2018
View reviewed changes
@Trott

Trott commented Sep 28, 2018

Copy link
Copy Markdown
Member Author

Given CI stress test results (8 failures in 1000 runs on master vs. 0 failures in 1000 runs with this PR), I'm inclined to believe that "Fixes:" is correct here, except for @targos reporting that it is still happening locally...

@targos Is there any chance at all that you were testing against master and not this PR or something like that? Can you share a gist of you at least some of your output and also what platform/OS you're on?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Sep 28, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

ARM rebuild: https://ci.nodejs.org/job/node-test-commit-arm/18818/ ✔️

Windows rebuild: https://ci.nodejs.org/job/node-test-commit-windows-fanned/21109/ ✔️

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

trivikr
trivikr approved these changes Sep 29, 2018
View reviewed changes
@targos

targos commented Sep 29, 2018

Copy link
Copy Markdown
Member

@Trott

@targos Is there any chance at all that you were testing against master and not this PR or something like that? Can you share a gist of you at least some of your output and also what platform/OS you're on?

I'm certain that I am testing against this PR applied on top of master.
Gist (truncated after 10 runs): https://gist.github.com/targos/2b9fd900456e64a6fd2f7245d9e18125

My platform is Linux (Fedora 28)

If this fixes the issue on CI, I'm not blocking it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Sep 29, 2018

Copy link
Copy Markdown
Member Author

@targos Thanks! Interesting! I think your gist is different than what we're seeing in CI, I think, because Done: always gets up to 300/300 and it's Collected: that stalls. But for you, it looks like Done: stalled... Any chance there's some firewall throttling going on or something like that?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

thefourtheye
thefourtheye approved these changes Sep 29, 2018
View reviewed changes
@Trott Trott added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 30, 2018
@refack

refack commented Oct 1, 2018

Copy link
Copy Markdown
Contributor

Resume CI (just for good measure): https://ci.nodejs.org/job/node-test-commit/21949/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Oct 2, 2018

Copy link
Copy Markdown
Member Author

Windows timed out so will definitely remove the Fixes, just like @targos suggested. (Stress tests showing failures on master and clean runs with this PR were run on AIX.)

ARM rebuild: https://ci.nodejs.org/job/node-test-commit-arm/18888/

Windows rebuild: https://ci.nodejs.org/job/node-test-commit-windows-fanned/21186/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

jasnell
jasnell approved these changes Oct 2, 2018
View reviewed changes
@Trott

Trott commented Oct 2, 2018

Copy link
Copy Markdown
Member Author

Windows rebuild: https://ci.nodejs.org/job/node-test-commit-windows-fanned/21188/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott

Trott commented Oct 2, 2018

Copy link
Copy Markdown
Member Author

Landed in 87ea0ca

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Trott Trott closed this Oct 2, 2018
Trott added a commit to Trott/io.js that referenced this pull request Oct 2, 2018
@Trott
test: improve test-gc-http-client
87ea0ca
Calling `global.gc()` in multiple places leads to unreliability. Call it
in the interval only.

PR-URL: nodejs#23145
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@joyeecheung joyeecheung mentioned this pull request Oct 2, 2018
CI failures: 20180927-20181002 nodejs/reliability#18
Closed
targos pushed a commit that referenced this pull request Oct 3, 2018
@Trott @targos
test: improve test-gc-http-client
9b30a63
Calling `global.gc()` in multiple places leads to unreliability. Call it
in the interval only.

PR-URL: #23145
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: Trivikram Kamat <[email protected]>
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@targos targos mentioned this pull request Oct 7, 2018
Release proposal: v10.12.0 #23313
Merged
This was referenced Oct 10, 2018
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#225
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#239
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#226
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#240
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#227
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#241
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#242
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#228
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#243
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#229
Closed
@Trott
Trott deleted the fix-23066 branch January 13, 2022 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@jasnell jasnell jasnell approved these changes
@addaleax addaleax addaleax approved these changes
@lpinca lpinca lpinca approved these changes
@trivikr trivikr trivikr approved these changes
+2 more reviewers
@thefourtheye thefourtheye thefourtheye approved these changes
@targos targos targos left review comments
Reviewers whose approvals may not affect merge requirements

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. fast-track PRs proposed for a shorter-than-standard waiting period before landing. test Issues and PRs related to Node.js core tests and test infrastructure.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Investigate flaky parallel/test-gc-http-client

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@Trott @nodejs-github-bot @targos @addaleax @refack @jasnell @thefourtheye @lpinca @trivikr
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.