-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
trace_events: fix trace events JS API not writing traces #24945
Conversation
b2c0fd4
to
616d9a9
Compare
@addaleax BTW, should a PR like this have a |
@kjin I think |
@kjin Currently core-validate-commit only supports |
Does the test in the first commit fail unless the second commit is applied? If so then we probably want to squash on landing (or swap the ordering) to avoid issues with future git bisects. |
616d9a9
to
5233f8b
Compare
@joyeecheung I've seen a mix of @richardlau Yes, it does. Good idea, I'll do that. (It looks like the GitHub UI still shows them in the former order, though) @addaleax I fixed an issue in my test which should resolve the currently failing CI. |
@joyeecheung It looks like using |
@kjin You missed off the |
5233f8b
to
24ce0e4
Compare
@richardlau Thanks for the catch (again) :) |
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.
CI failures on Windows, AIX, and SmartOS all seem to be relevant. (Collaborators, feel free to dismiss this review once addressed. I'm only leaving this here to someone doesn't land this in error.)
On Windows there seems to be an issue with the temporary directory not being refreshed due to being a locked resource (EBUSY). I'm working through this and should hopefully get a fix in within the next day. |
24ce0e4
to
fde17fd
Compare
@Trott I believe I've fixed the issue (tested it on Windows). (It was because my test was trying to delete the temp directory when it was the parent process's cwd) |
test fixed; could use a re-review or two, though
I've rebased to resolve conflicts. cc @addaleax |
@kjin could you rebase again so this PR can go forward ? Thanks ! |
14796a8
to
eff875b
Compare
@vmarchaud I've rebased the PR! |
The Trace Events JS API isn't functional if none of --trace-events-enabled or --trace-event-categories is passed as a CLI argument. This commit fixes that. In addition, we currently don't test the trace_events JS API in the case where no CLI args are provided. This commit adds that test. Fixes nodejs#24944
The CI is green and this is good to go. However, I think the commits needs to be squashed. The latter is not a test-only change is dependent/overlapping with the former. |
eff875b
to
6d6d36f
Compare
Landed in 582c0d5 |
The Trace Events JS API isn't functional if none of --trace-events-enabled or --trace-event-categories is passed as a CLI argument. This commit fixes that. In addition, we currently don't test the trace_events JS API in the casewhere no CLI args are provided. This commit adds that test. Fixes #24944 PR-URL: #24945 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]>
The Trace Events JS API isn't functional if none of --trace-events-enabled or --trace-event-categories is passed as a CLI argument. This commit fixes that. In addition, we currently don't test the trace_events JS API in the casewhere no CLI args are provided. This commit adds that test. Fixes #24944 PR-URL: #24945 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]>
The Trace Events JS API isn't functional if none of --trace-events-enabled or --trace-event-categories is passed as a CLI argument. This commit fixes that. In addition, we currently don't test the trace_events JS API in the casewhere no CLI args are provided. This commit adds that test. Fixes #24944 PR-URL: #24945 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Ali Ijaz Sheikh <[email protected]>
Fixes #24944
I believe Inspector-based tracing probably faces the same issue, but I wasn't yet able to verify it because of a possibly unrelated V8 issue. So this PR only fixes the JS API.(edit: it seems that this does not affect inspector as it uses its own trace writer)Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes