-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add core-validate-commit to node-test-pull-request #793
Comments
Use a stronger criterion to identify objects in the prototype chain that store pointers to native data that were added by previous calls to `napi_wrap()`. Whereas the old criterion for identifying `napi_wrap()`-injected prototype chain objects was to consider an object with an internal field count of 1 to be such an object, the new criterion is to consider an object with an internal field count of 2 such that the second field holds a `v8::External` which itself contains a pointer to a global static string unique to N-API to be a `napi_wrap()`-injected prototype chain object. This greatly reduces the possibility of returning a pointer that was not previously added with `napi_wrap()`, and it allows us to recognize that an object has already undergone `napi_wrap()` and we can thus prevent a chain of wrappers only the first of which is accessible from appearing in the prototype chain, as would be the result of multiple calls to `napi_wrap()` using the same object. PR-URL: #13872 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Timothy Gu <[email protected]>
+1 I remember some discussion around this, but I can't find it. @evanlucas do you remember? If it was simply not ready at the time, is it now? |
The job is there, it just needs to be included (as long as it's working). I see that @evanlucas has access to it. |
@mhdawson in reply to nodejs/node@d5b397c#commitcomment-23061905 I use it as a sanity check before landing. It'll fail before then anyway as it won't find the |
I am -1 with this change as proposed. This will fail for all the PRs on the first go, because they lack reviews and a PR url. It will just increase the amount of nit-picking, as we will likely require to fix those details by the author, while we currently fix them on landing. If we can disable those checks for the job, then I am +1. |
P.S. if it could be added as a warning to the linter job that might be better. Or if at some point we make a |
You can pass the The job that is there works pretty well. It can be run against a single commit or all of the commits for a PR. It becomes tricky with fixup commits though... |
|
@fhinkel I’ll try to get around to fixing that. |
Closing as stale, but if anyone wants to take this up feel free to reopen. |
We are running |
Was thinking we should probably add core-validate-commit to node-test-pull-request to automate checks on the commit message.
The text was updated successfully, but these errors were encountered: