Uh oh!
There was an error while loading. Please reload this page.
Fixes: https://github.com/nodejs/node/issues/29975 - #29976
Conversation
Trott
commented
Oct 14, 2019
Welcome @aug2uag and thanks for the pull request! A more descriptive commit message would be welcome. Maybe something like this? src: remove unnecessary header filesrc/node_stat_watcher.cc imports `env.h` but it is not necessary to do so.Fixes: https://github.com/nodejs/node/issues/29975(Bonus points for adding an explanation as to why it's not necessary to import it!) |
Trott
commented
Oct 14, 2019
joyeecheung
commented
Oct 14, 2019
This file uses cc @addaleax@bnoordhuis@danbev any opinions on this? |
aug2uag
commented
Oct 14, 2019
Thank you @Trott ! I'm sorry I didn't realize the consequences of no comment. I'm very new to contributing and your comment is very helpful to me. |
bnoordhuis
commented
Oct 14, 2019
Instead of removing env.h it should probably be changed to include env-inl.h, that's the predominant pattern in our code base. src/module_wrap.cc and src/node_report_module.cc could also be updated. |
nodejs-github-bot
commented
Oct 15, 2019
nodejs-github-bot
commented
Oct 15, 2019
nodejs-github-bot
commented
Oct 15, 2019
nodejs-github-bot
commented
Oct 15, 2019
nodejs-github-bot
commented
Oct 15, 2019
nodejs-github-bot
commented
Oct 15, 2019
nodejs-github-bot
commented
Oct 15, 2019
Trott
commented
Oct 15, 2019
Getting a clean CI on this will probably require landing #29979 first. |
aug2uag
commented
Oct 15, 2019
is that an IE render issue? doctool/test-doctool-html.js may have some issues with the HTML or mismatch issue with MD. test-doctool-html.js:100 doesn't close |
aug2uag
commented
Oct 15, 2019
Apologies, I wasn't intending to push the changes to lib/_stream_writable.js and I don't know how to revert my changes. |
Trott
commented
Oct 15, 2019
@aug2uag The problem likely is that you are opening this pull request against your own master branch. Create a different branch and open a PR against that branch so you can keep your PR changes separate from each other. |
aug2uag
commented
Oct 15, 2019
the breaking html was necessary in doctest, sorry about that this PR should be Ok minus the first commit message i was unable to re-amend |
aug2uag
commented
Oct 16, 2019
@Trott is the CI on this broken from the commit message or something else? |
nodejs-github-bot
commented
Oct 16, 2019
Trott
commented
Oct 16, 2019
Just the commit message. If you can rebase and fix it, great. But if not, whoever lands this can also fix it. |
aug2uag
commented
Oct 22, 2019
@Trott update ready |
There was a problem hiding this comment.
Sorry, I should have explained it more clearly last time. Compilation units (*.cc files) use env-inl.h but header files should normally use plain env.h because they only need the declarations, not inline definitions. My apologies!
edit: that also means src/node_stat_watcher.cc should keep including env-inl.h.
There was a problem hiding this comment.
@bnoordhuisnode_stat_watcher.h and node_stat_watcher.cc both import env.h
should this be (1) left as is or (2) only remove env.h from implementation file or (3) change implementation import to env-inl.h while keeping env.h in the header file or other? just a little confusing
There was a problem hiding this comment.
Thank you and for your patience, very sorry about all the above.
bnoordhuis
left a comment
There was a problem hiding this comment.
LGTM, thanks! Do you want to update src/module_wrap.cc and src/node_report_module.cc too?
nodejs-github-bot
commented
Oct 27, 2019
addaleax
commented
Nov 30, 2019
@aug2uag Looks like you created a merge commit here rather than rebasing? Our CI doesn’t really deal well with those… |
aug2uag
commented
Nov 30, 2019
Anna, sorry I just did the same with the other 29988 (i missed your comment here) .. there were the conflicts that I thought needed to be committed-- i didn't mean to cause you trouble. |
aug2uag
commented
Nov 30, 2019
@addaleax i tried rebasing but getting that changes are up to date, dunno what to do |
addaleax
commented
Nov 30, 2019
@aug2uag Are you rebasing against nodejs/node’s Also, somebody else can do the rebase for you if you prefer. |
aug2uag
commented
Nov 30, 2019
@addaleax that was it thank you, i followed the prompts and ended up pushing again-- i hope the CI and team aren't too upset here |
addaleax
commented
Nov 30, 2019
@aug2uag Nobody’s upset, don’t worry about that :) It looks like some other unrelated changes from another PR have slipped in there, though? |
aug2uag
commented
Dec 1, 2019
@addaleax thanks, also for your great presentations. it's extraordinary to be interacting with you all on this project. i'm here in case there's anything i can do on my part |
nodejs-github-bot
commented
Dec 1, 2019
gireeshpunathil
commented
Dec 1, 2019
the failure |
gireeshpunathil
commented
Dec 1, 2019
while trying to land this, I get |
aug2uag
commented
Dec 1, 2019
@gireeshpunathil it may be artifacts from my misuse of git, the change may be merged from a clean start if it helps |
gireeshpunathil
commented
Dec 1, 2019
@aug2uag - no worries at all; I don't think that is the case, but I even don't know how to solve it. Let us wait till some one comes to resolve it! |
PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
addaleax
commented
Dec 1, 2019
Landed in 5473ceb :)
You pointed to the URL for the issue, not the PR 🙂 |
The entire commit message is |
change src/node_stat_watcher.cc to import `env-inl.h` instead of `env.h`. PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
It's a holiday weekend in the U.S. (and the middle of the night in the Americas), and the weekend everywhere else (well, except in two time zones where it's before 2AM on Monday morning), and things are slow so I force-pushed this as the commit message: |
addaleax
commented
Dec 1, 2019
@Trott thanks for noticing and fixing this! |
change src/node_stat_watcher.cc to import `env-inl.h` instead of `env.h`. PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
change src/node_stat_watcher.cc to import `env-inl.h` instead of `env.h`. PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
change src/node_stat_watcher.cc to import `env-inl.h` instead of `env.h`. PR-URL: #29976 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes