-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
process: print versions by sort #46428
process: print versions by sort #46428
Conversation
I'm trying to use |
This comment was marked as outdated.
This comment was marked as outdated.
fd4a77b
to
affc744
Compare
This comment was marked as outdated.
This comment was marked as outdated.
I'm confused that why build CI all crashed today |
There was a GitHub issue with tarball sha's today that caused stuff all over the place to break. The rolled it back this afternoon. Pretty sure that's what hit us today. |
Could you also add a test? |
I will do it later |
ive updated the test case |
This comment was marked as outdated.
This comment was marked as outdated.
src/node_report.cc
Outdated
@@ -793,11 +793,24 @@ static void PrintComponentVersions(JSONWriter* writer) { | |||
std::stringstream buf; | |||
|
|||
writer->json_objectstart("componentVersions"); | |||
std::vector<std::pair<std::string, std::string>> versions_vec; |
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.
Performance isn't as important here but consider using the same technique for consistency.
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.
I think json_keyvalue(k, v)
has no implement for std::string_view
cdc159d
to
a6df4cb
Compare
0a314ab
to
73a1163
Compare
nodejs ci is disabled for now. how can I run it before merge the pr |
You'll have to wait until the embargo is lifted and CI reenabled. |
Commit Queue failed- Loading data for nodejs/node/pull/46428 ✔ Done loading data for nodejs/node/pull/46428 ----------------------------------- PR info ------------------------------------ Title process: print versions by sort (#46428) Author Himself65 (@Himself65) Branch Himself65:20230130-sort-versions -> nodejs:main Labels c++, process, author ready, needs-ci Commits 5 - process: print versions by sort - fixup!: code - fixup!: code - fixup!: format - fixup!: format Committers 1 - himself65 PR-URL: https://github.com/nodejs/node/pull/46428 Fixes: https://github.com/nodejs/node/issues/45630 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Darshan Sen ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/46428 Fixes: https://github.com/nodejs/node/issues/45630 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Darshan Sen -------------------------------------------------------------------------------- ℹ This PR was created on Mon, 30 Jan 2023 18:42:25 GMT ✔ Approvals: 3 ✔ - Anna Henningsen (@addaleax): https://github.com/nodejs/node/pull/46428#pullrequestreview-1304619046 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/46428#pullrequestreview-1282238933 ✔ - Darshan Sen (@RaisinTen) (TSC): https://github.com/nodejs/node/pull/46428#pullrequestreview-1284199496 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-02-18T17:34:16Z: https://ci.nodejs.org/job/node-test-pull-request/49699/ - Querying data for job/node-test-pull-request/49699/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ No git cherry-pick in progress ✔ No git am in progress ✔ No git rebase in progress -------------------------------------------------------------------------------- - Bringing origin/main up to date... From https://github.com/nodejs/node * branch main -> FETCH_HEAD ✔ origin/main is now up-to-date - Downloading patch for 46428 From https://github.com/nodejs/node * branch refs/pull/46428/merge -> FETCH_HEAD ✔ Fetched commits as 4ba860ee693d..73a1163802da -------------------------------------------------------------------------------- [main 2d9275ad6b] process: print versions by sort Author: himself65 Date: Fri Feb 3 17:04:23 2023 -0600 3 files changed, 42 insertions(+), 9 deletions(-) [main ab24f3f61c] fixup!: code Author: himself65 Date: Fri Feb 3 17:19:54 2023 -0600 2 files changed, 21 insertions(+), 13 deletions(-) [main 66f67104ab] fixup!: code Author: himself65 Date: Sat Feb 4 15:10:17 2023 -0600 1 file changed, 1 insertion(+), 1 deletion(-) [main 881db7bec2] fixup!: format Author: himself65 Date: Sat Feb 4 15:10:32 2023 -0600 1 file changed, 2 insertions(+), 1 deletion(-) [main cb6ee4df18] fixup!: format Author: himself65 Date: Sat Feb 4 15:40:33 2023 -0600 1 file changed, 1 insertion(+), 1 deletion(-) ✔ Patches applied There are 5 commits in the PR. Attempting autorebase. Rebasing (2/10)https://github.com/nodejs/node/actions/runs/4212781930 |
Landed in 070246f |
Co-authored-by: James M Snell <jasnell@gmail.com> Co-authored-by: Anna Henningsen <github@addaleax.net> PR-URL: nodejs#46428 Fixes: nodejs#45630 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
Fixes: #45630