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: add gc tracking API to common, refactor pummel net test + move it to parallel by addaleax · Pull Request #21794 · nodejs/node

Conversation

@addaleax

@addaleax addaleax commented Jul 13, 2018

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

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

All reactions
addaleax added 2 commits July 13, 2018 18:38
@addaleax
test: add gc tracking to common API
0642e68
@addaleax
test: refactor test-net-connect-memleak, move to parallel
96c1b99
This enables the test to run as part of the regular test suite.
@addaleax
addaleax requested a review from Trott July 13, 2018 16:39
@nodejs-github-bot

nodejs-github-bot commented Jul 13, 2018

Copy link
Copy Markdown
Collaborator

@addaleax build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/264/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 Jul 13, 2018
@addaleax addaleax added the net Issues and PRs related to the net subsystem. label Jul 13, 2018
@addaleax addaleax mentioned this pull request Jul 13, 2018
test: fix pummel/test-net-connect-memleak #21658
Closed
2 tasks done
Trott
Trott approved these changes Jul 13, 2018
View reviewed changes
@Trott

Trott commented Jul 13, 2018

Copy link
Copy Markdown
Member

Any chance these changes also apply to the other two memleak tests in pummel? (test/pummel/test-vm-memleak.js and/or test/pummel/test-tls-connect-memleak.js)

Also, we should probably run a stress test just to make sure we're not introducing unreliable tests into the parallel directory. I'll do it once this gets another review or two and the above question is resolved. Or if you want to do it, cool. Just include -j96 --repeat 192 or something like that in the RUN_TESTS parameter before you list out the test or tests to be stressed. Probably best to keep RUN_TIMES to 100 in that case. Running the test 19200 should be plenty. :-D

addaleax reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@addaleax
test: refactor test-tls-connect-memleak, move to parallel
ed98029
This enables the test to run as part of the regular test suite.
@addaleax

addaleax commented Jul 13, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member Author

Any chance these changes also apply to the other two memleak tests in pummel? (test/pummel/test-vm-memleak.js and/or test/pummel/test-tls-connect-memleak.js)

Yes – not sure about the VM test but the TLS one is definitely of the same kind. Added a similar commit for the TLS test :)

Also, we should probably run a stress test just to make sure we're not introducing unreliable tests into the parallel directory. I'll do it once this gets another review or two and the above question is resolved. Or if you want to do it, cool. Just include -j96 --repeat 192 or something like that in the RUN_TESTS parameter before you list out the test or tests to be stressed. Probably best to keep RUN_TIMES to 100 in that case. Running the test 19200 should be plenty. :-D

Locally, all 3 tests happily pass -j96 --repeat 192.

Regular CI: https://ci.nodejs.org/job/node-test-pull-request/15859/
Stress test CI: https://ci.nodejs.org/job/node-stress-single-test/1960/ (edit: ✔️ )
Regular CI again: https://ci.nodejs.org/job/node-test-pull-request/15868/

All reactions

Sorry, something went wrong.

Uh oh!

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

vsemozhetbyt
vsemozhetbyt reviewed Jul 13, 2018
View reviewed changes
Comment thread test/common/README.md

Indicates whether 'opensslCli' is supported.

### onGC(target, listener)

@vsemozhetbyt vsemozhetbyt Jul 13, 2018

Copy link
Copy Markdown
Contributor

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.

Should this section go before the opensslCli(), ABC-wise?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread test/common/README.md Outdated
### onGC(target, listener)
* `target` [<Object>]
* `listener` [<Object>]
* `listener.ongc` [<Function>]

@vsemozhetbyt vsemozhetbyt Jul 13, 2018

Copy link
Copy Markdown
Contributor

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.

`listener.ongc` -> `ongc` for consistency with other doc cases?

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread test/common/README.md Outdated
a full `setImmediate()` invocation passes.

`listener` is an object to make it easier to use a closure; the target object
should not be in scope when `listener.ongc` is created.

@vsemozhetbyt vsemozhetbyt Jul 13, 2018

Copy link
Copy Markdown
Contributor

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.

`listener.ongc` -> `listener.ongc()`?

Sorry, something went wrong.

Uh oh!

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

All reactions
@addaleax
fixup! test: add gc tracking to common API
24bd33b
@addaleax

addaleax commented Jul 13, 2018

Copy link
Copy Markdown
Member Author

@vsemozhetbyt Thanks, done in 24bd33b :)

vsemozhetbyt reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

jasnell
jasnell approved these changes Jul 13, 2018
View reviewed changes
@addaleax

addaleax commented Jul 16, 2018

Copy link
Copy Markdown
Member Author

Landed in d94950e...9a34c5b

All reactions

Sorry, something went wrong.

Uh oh!

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

@addaleax addaleax closed this Jul 16, 2018
@addaleax
addaleax deleted the pummel-net-connect-memleak branch July 16, 2018 18:52
addaleax added a commit that referenced this pull request Jul 16, 2018
@addaleax
test: add gc tracking to common API
d37a477
PR-URL: #21794
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
addaleax added a commit that referenced this pull request Jul 16, 2018
@addaleax
test: refactor test-net-connect-memleak, move to parallel
d06142a
This enables the test to run as part of the regular test suite.

PR-URL: #21794
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
addaleax added a commit that referenced this pull request Jul 16, 2018
@addaleax
test: refactor test-tls-connect-memleak, move to parallel
9a34c5b
This enables the test to run as part of the regular test suite.

PR-URL: #21794
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
targos pushed a commit that referenced this pull request Jul 16, 2018
@addaleax @targos
test: add gc tracking to common API
b338ff5
PR-URL: #21794
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
targos pushed a commit that referenced this pull request Jul 16, 2018
@addaleax @targos
test: refactor test-net-connect-memleak, move to parallel
174a9db
This enables the test to run as part of the regular test suite.

PR-URL: #21794
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
targos pushed a commit that referenced this pull request Jul 16, 2018
@addaleax @targos
test: refactor test-tls-connect-memleak, move to parallel
6b72583
This enables the test to run as part of the regular test suite.

PR-URL: #21794
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
@targos targos mentioned this pull request Jul 17, 2018
v10.7.0 proposal #21851
Merged
This was referenced Jul 18, 2018
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#207
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#208
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#209
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#210
Closed
2018-07-18 Version 10.7.0 (Current) @targos beevelop/docker-nodejs#211
Closed
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
@Trott Trott Trott approved these changes
+1 more reviewer
@vsemozhetbyt vsemozhetbyt vsemozhetbyt 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

net Issues and PRs related to the net subsystem. 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.

Uh oh!

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

5 participants

@addaleax @nodejs-github-bot @Trott @jasnell @vsemozhetbyt
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.