-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
v7.x: cherry-pick tracing related fixes #11634
Conversation
Initialize `InternalTraceBuffer::id_` the last. PR-URL: nodejs#10416 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Remove `external_buffer_` from `InternalTraceBuffer` as it seems not to be used anywhere. PR-URL: nodejs#10416 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
PR-URL: nodejs#10507 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This fixes an incorrect deletion of the `TracingController` instance, which in some environments could cause an error about an invalid pointer passed to `free()`. The `TracingController` instance is actually owned by a `unique_ptr` member of the platform, so calling `platform::SetTracingController(nullptr)` is the correct way to delete it. But before that, the `TraceBuffer` must be deleted in order for the tracing loop to exit; that is accomplished by calling `TracingController::Initialize(nullptr)`. PR-URL: nodejs#10623 Reviewed-By: Matthew Loring <mattloring@google.com> Reviewed-By: Michaël Zasso <targos@protonmail.com>
I noticed that only one header from src/tracing is included in the sources list in node.gyp. Not sure if this is intentional or not so I wanted to bring it up just in case this was overlooked. PR-URL: nodejs#10851 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Italo A. Casas <me@italoacasas.com>
Move the include from src/node.h to src/node_internals.h. trace_event.h is not shipped in binary-only and headers-only tarballs, making it currently impossible to build add-ons against them. PR-URL: nodejs#10959 Refs: nodejs/citgm#226 (comment) Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matthew Loring <mattloring@google.com> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Change test-trace-event such that it checks that all expected values are within the same trace object rather than scattered across multiple trace objects. PR-URL: nodejs#11065 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Evan Lucas <evanlucas@me.com> Reviewed-By: James M Snell <jasnell@gmail.com>
CI: https://ci.nodejs.org/job/node-test-pull-request/6640/ Those are all clean cherry-picks and tests pass on my computer. /cc @nodejs/release @nodejs/ctc |
Waiting for CI, to start the release |
@targos any idea how I miss this? CI and CITGM were green on the proposal. Should I be looking for something else? |
@italoacasas See nodejs/testing#15. Perhaps CITGM could have caught this? |
@italoacasas .... no worries. We definitely need to make sure that CITGM is set up to catch these kinds of things. This also demonstrates that few of us who do test releases rarely touch native modules in our own tests, which likely needs to be fixed also. Let's definitely make sure 7.7.1 get's out today. |
I'm still seeing failure locally even after rebuilding with this PR in place. |
@italoacasas Yeah, no worries. I'm absolutely not blaming you here. Something is missing in the process and we will have to find a solution. @ilovezfs it looks like it's still using 7.7.0 headers somehow: https://gist.github.com/ilovezfs/b87b1b16f10229c1856a02b4512b021f#file-gistfile1-txt-L8513 |
@targos it's 7.7.0 with this PR cherry-picked on top. Here's a full log: |
@ilovezfs see https://gist.github.com/ilovezfs/b87b1b16f10229c1856a02b4512b021f#file-gistfile1-txt-L8579-L8580 |
@targos Ah, OK! Thanks for taking a look. |
Tests are still running on pi1. The rest is green. |
@targos good to go? |
Also Fixes: #11627 |
Test failed on arm:
|
That test does not seem to have anything to do with native modules, so may just have been a flake. |
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.
Rubber stamp LGTM as its a clean cherry-pick and the test failure on Arm ran/passed on 2 of the 3 arm variants and the test does not look related to any of the changes being made.
@nodejs/collaborators @nodejs/ctc anyone else want to LGTM the backport? |
Landed.. working in the release. |
Refs: #11628