Uh oh!
There was an error while loading. Please reload this page.
trace_events: fix trace events JS API not writing traces - #24945
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
addaleax
commented
Dec 10, 2018
kjin
commented
Dec 10, 2018
@addaleax BTW, should a PR like this have a |
addaleax
commented
Dec 11, 2018
@kjin I think |
joyeecheung
commented
Dec 11, 2018
@kjin Currently core-validate-commit only supports |
richardlau
commented
Dec 11, 2018
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. |
@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. |
kjin
commented
Dec 11, 2018
@joyeecheung It looks like using |
richardlau
commented
Dec 11, 2018
@kjin You missed off the |
kjin
commented
Dec 11, 2018
@richardlau Thanks for the catch (again) :) |
addaleax
commented
Dec 15, 2018
Trott
left a comment
There was a problem hiding this comment.
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.)
kjin
commented
Dec 18, 2018
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. |
@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
kjin
commented
Jan 2, 2019
I've rebased to resolve conflicts. cc @addaleax |
vmarchaud
commented
Jan 30, 2019
@kjin could you rebase again so this PR can go forward ? Thanks ! |
kjin
commented
Feb 5, 2019
@vmarchaud I've rebased the PR! |
ofrobots
commented
Feb 14, 2019
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. Fixesnodejs#24944
ofrobots
commented
Feb 14, 2019
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. |
ofrobots
commented
Feb 14, 2019
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 <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
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 <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
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 <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com>
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