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: checks on napi factory wrap’s finalization by legendecas · Pull Request #22612 · nodejs/node

Conversation

@legendecas

@legendecas legendecas commented Aug 31, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Member

Expect closing #22396

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 added node-api Issues and PRs related to Node-API. test Issues and PRs related to Node.js core tests and test infrastructure. labels Aug 31, 2018
@BridgeAR

BridgeAR commented Aug 31, 2018

Copy link
Copy Markdown
Member

@nodejs/n-api PTAL

All reactions

Sorry, something went wrong.

Uh oh!

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

gabrielschulhof
gabrielschulhof previously approved these changes Aug 31, 2018
View reviewed changes
gabrielschulhof
gabrielschulhof reviewed Aug 31, 2018
View reviewed changes

@gabrielschulhof gabrielschulhof left a comment

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.

I'm actually not sure that we need this PR given that we already test for this in https://github.com/nodejs/node/blob/master/test/addons-napi/8_passing_wrapped/test.js.

Sorry, something went wrong.

Uh oh!

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

All reactions
@gabrielschulhof
gabrielschulhof dismissed their stale review August 31, 2018 15:06

Change unneeded. See comment.

@gabrielschulhof

gabrielschulhof commented Aug 31, 2018

Copy link
Copy Markdown
Contributor

Nevertheless, I don't have any strong objections to landing this.

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof

gabrielschulhof commented Aug 31, 2018 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

@legendecas I suppose for completeness you could instead, in https://github.com/nodejs/node/blob/master/test/addons-napi/8_passing_wrapped/test.js, change the storage of obj2 from const to let and then add

obj2 = null;
global.gc();
assert.strictEqual(addon.finalizeCount(), 2);

That would round out that test nicely.

All reactions

Sorry, something went wrong.

Uh oh!

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

@legendecas
legendecas force-pushed the master branch from af96023 to 94285f0 Compare August 31, 2018 16:40
@legendecas

legendecas commented Aug 31, 2018

Copy link
Copy Markdown
Member Author

@gabrielschulhof thanks for reviewing😁. amended.

It's true that finalizer has been checked in 8_passing_wrapped, however it could be more reasonable to take more checks.

All reactions

Sorry, something went wrong.

Uh oh!

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

gabrielschulhof
gabrielschulhof approved these changes Sep 3, 2018
View reviewed changes
jasnell
jasnell approved these changes Sep 4, 2018
View reviewed changes
@gabrielschulhof

gabrielschulhof commented Sep 4, 2018

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof

gabrielschulhof commented Sep 4, 2018

Copy link
Copy Markdown
Contributor

Resumed CI as: https://ci.nodejs.org/job/node-test-pull-request/17016/

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof

gabrielschulhof commented Sep 4, 2018

Copy link
Copy Markdown
Contributor

Resumed again as CI: https://ci.nodejs.org/job/node-test-pull-request/17017/

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof

gabrielschulhof commented Sep 5, 2018

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@BridgeAR BridgeAR added the author ready PRs with CI started, the required approvals, and no outstanding review comments. label Sep 5, 2018
@gabrielschulhof

gabrielschulhof commented Sep 6, 2018

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@legendecas
test: checks on napi factory wrap’s finalization
c128fc1
Fixes: nodejs#22396
@legendecas
legendecas force-pushed the master branch from 94285f0 to c128fc1 Compare September 11, 2018 02:38
@gabrielschulhof

gabrielschulhof commented Sep 12, 2018

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof

gabrielschulhof commented Sep 12, 2018

Copy link
Copy Markdown
Contributor

Another new CI: https://ci.nodejs.org/job/node-test-pull-request/17145/

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof

gabrielschulhof commented Sep 12, 2018

Copy link
Copy Markdown
Contributor

Resumed CI as: https://ci.nodejs.org/job/node-test-pull-request/17152/

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof

gabrielschulhof commented Sep 13, 2018

Copy link
Copy Markdown
Contributor

Landed in 1cee085.

All reactions

Sorry, something went wrong.

Uh oh!

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

@gabrielschulhof gabrielschulhof closed this Sep 13, 2018
gabrielschulhof pushed a commit that referenced this pull request Sep 13, 2018
@legendecas Gabriel Schulhof
test: checks on napi factory wrap’s finalization
1cee085
Fixes: #22396
PR-URL: #22612
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
targos pushed a commit that referenced this pull request Sep 14, 2018
@legendecas @targos
test: checks on napi factory wrap’s finalization
2b3b205
Fixes: #22396
PR-URL: #22612
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
@targos targos mentioned this pull request Sep 18, 2018
Release proposal: v10.11.0 #22932
Merged
targos pushed a commit that referenced this pull request Sep 19, 2018
@legendecas @targos
test: checks on napi factory wrap’s finalization
6e5cd4d
Fixes: #22396
PR-URL: #22612
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
targos pushed a commit that referenced this pull request Sep 20, 2018
@legendecas @targos
test: checks on napi factory wrap’s finalization
bd6b2ab
Fixes: #22396
PR-URL: #22612
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
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
@gabrielschulhof gabrielschulhof gabrielschulhof 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. node-api Issues and PRs related to Node-API. 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

@legendecas @BridgeAR @gabrielschulhof @jasnell @nodejs-github-bot
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.