-
Notifications
You must be signed in to change notification settings - Fork 30k
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
lib: disable default memory leak warning for AbortSignal #55816
lib: disable default memory leak warning for AbortSignal #55816
Conversation
(I'm not allowed to add the notable-change label, so someone else will have to do that) |
@jasnell wdyt? |
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.
While I prefer having the warning in place, I won't block and the code change LGTM
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55816 +/- ##
==========================================
+ Coverage 87.92% 88.00% +0.08%
==========================================
Files 654 656 +2
Lines 187815 188984 +1169
Branches 35830 35997 +167
==========================================
+ Hits 165139 166323 +1184
+ Misses 15878 15832 -46
- Partials 6798 6829 +31
|
The commit message should be under subsystem |
@jazelly what's the correct course of action here? |
Yes, the commit needs to be amended to pass the GHA, so that we can run CI.
Technically, you just need one more approval / request re-review from the approvers after force pushing. |
f967e1a
to
e0125f3
Compare
@jazelly Okay, thank you for clarifying - I've adjusted the commit message! Apart from the commit message, the commits are identical |
The first-line commit message needs to be less than 72 characters. Can you please update the commit? More detailed guideline can be found here. Sorry, probably should've link that in my previous message. |
I followed that guide 😓
✅ description is 51 characters, plus the
✅ everything lowercase except for
From the suffix:
which is why I came up with Looking at this, it seems I failed on the subsequent lines - one line is 76 chars long. I probably trusted my local editor which warns at 80. Fixing... |
This change sets the default `kMaxEventTargetListeners` property for `AbortSignal` instances to 0, disabling the check per default, to enable users to write isomorphic library code. If desirable, the max event target listeners check can still be enabled for individual `AbortSignal` instances by calling `setMaxListeners` on them. Refs: nodejs#54758
e0125f3
to
d0579b6
Compare
@jazelly I've run the check locally via git rev-parse HEAD~0 | xargs npx -q core-validate-commit --no-validate-metadata --tap and it seems to pass now. |
Landed in c1ccade |
This change sets the default `kMaxEventTargetListeners` property for `AbortSignal` instances to 0, disabling the check per default, to enable users to write isomorphic library code. If desirable, the max event target listeners check can still be enabled for individual `AbortSignal` instances by calling `setMaxListeners` on them. Refs: #54758 PR-URL: #55816 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
This change sets the default
kMaxEventTargetListeners
property forAbortSignal
instances to 0, disabling the check per default, to enable users to write isomorphic library code.If desirable, the max event target listeners check can still be enabled for individual
AbortSignal
instances by callingsetMaxListeners
on them.Refs: #54758
I ran all the test I believe are relevant locally, but I can't run the full test suite as I'm working on a managed Mac and can't change firewall rules, so the test suite just explodes on me with popups.