Uh oh!
There was an error while loading. Please reload this page.
tools: add remark dependencies - #16635
Conversation
joyeecheung
commented
Oct 31, 2017
MylesBorins
left a comment
There was a problem hiding this comment.
LGTM
were there any other files not included in the initial PR?
watilde
commented
Oct 31, 2017
No, only
|
There was a problem hiding this comment.
This will try to rebuild on non-macOS every time right? I think fsevents is only needed on macOS, so this could be:
if [ "$(OSTYPE)"= darwin -a!-d tools/remark-cli/node_modules/fsevents/lib ];then\ There was a problem hiding this comment.
That seems to be right. I will replace this line with your comment.
There was a problem hiding this comment.
I've replaced. CI also gets green :)
There was a problem hiding this comment.
Actually can you change if to @if, so it doesn't print the output (see #16551).
There was a problem hiding this comment.
I expect it's not actually necessary to build. It's only used by Chokidar and that has a fallback.
There was a problem hiding this comment.
In that case @watilde maybe just remove this and see whether it still works.
There was a problem hiding this comment.
I just removed the line and it's still working. As Ben mentioned, chokidar handles fsevents as an optional dependency. Let's go with it :)
refack
commented
Oct 31, 2017
question: can we |
MylesBorins
commented
Nov 1, 2017
Have we done a review of the licenses of the dependencies? |
watilde
commented
Nov 1, 2017
MylesBorins
commented
Nov 1, 2017
I just used license-checker to review licenses nothing looks out of the ordinary |
refack
left a comment
There was a problem hiding this comment.
Blocking for discussion about optimal dependency managment and CI
I could be wrong, but it looks to me like these were installed with:
but I think we can get a much reduced number of files (and packages) and a working installation with:
|
Trott
commented
Nov 1, 2017
I hate to ask, but have we done this for other things where we ship |
refack
commented
Nov 1, 2017
IMHO the current solution is good (keeping just a "recipe" for installing), we need to optimize the CI machine. |
refack
commented
Nov 1, 2017
I had same question, discussion in #16640 & #16637 (comment) |
watilde
commented
Nov 2, 2017
What I did was: |
Trott
commented
Nov 2, 2017
I was basing my comment on the fact that I saw something listed in |
richardlau
commented
Nov 2, 2017
If we commit something into this repository that came from somewhere else then we have made a copy and are redistributing. At the very least we should be reviewing the license(s) to check that we conform. |
watilde
commented
Nov 2, 2017
@Trott oops, no worries that's a good point! I just did double-check of |
watilde
commented
Nov 6, 2017
Rebased and fixed conflicts. |
Trott
commented
Nov 7, 2017
This would have fixed some issues we had at Code + Learn yesterday. Without this, initial |
watilde
commented
Nov 7, 2017
@refack Do we still need to block? It would be nice if we can continue the discussion regardless of whether the patch is shipped or not :) |
gibfahn
commented
Nov 7, 2017
@watilde I think @refacks -1 is because we haven't discussed whether including |
Trott
commented
Nov 8, 2017
@watilde Looks like there's a conflict. Can you rebase? |
refack
commented
Nov 8, 2017
@watilde sorry, I'm strongly -1 for adding 2000 new files. It's also sort of "irreversible" since git will always remember these files even if we revert this 🤷♂️ Are there other benefits besides faster CI? |
MylesBorins
commented
Nov 8, 2017
@refack we have done this with every other dependency, it seems like we need a higher level policy around this if we are going to block specifically on this one |
apapirovski
commented
Nov 8, 2017
If this is going to happen, it should happen in the same way it did for eslint. So there should be a script |
refack
commented
Nov 8, 2017
@MylesBorins In terms of |
refack
commented
Nov 8, 2017
Another data point, the tarball release rule removes these directories: Line 833 in d597317 |
watilde
commented
Nov 8, 2017
Rebased and fixed conflicts. @refack The other issue is that It's true that it's really difficult to review, but even if we do not add |
apapirovski
left a comment
There was a problem hiding this comment.
Making it more explicit.
... there should be a script tools/update-remark.sh and we should also run dmn to clean the dependencies. Most of that script could probably be copied with just changing eslint for remark.
If this already exists please let me know. It's almost impossible to check the files changes with 2200 files added.
refack
commented
Nov 8, 2017
@watilde I agree it's a trade off between speed and size/complexity of the workspace. I just found out that the lint target is conditional on Lines 1082 to 1107 in d597317 Another option is to use a strategy like |
MylesBorins
commented
Nov 8, 2017
So it sounds like we are asking for a few different things
This pull request was opened because the current remark linter that landed broke the ability to test our builds in the tarball Since we are not reaching consensus about adding the dependencies today would it be possible to open another PR that at the very least fixes the testing while we figure this out? For the two tasks asked above, an update script and better management of deps... I don't think it is fair to hold this specific dependency to a higher standard than any other we have in the tree. If we want to block on that notion, we can, but we should open another conversation to discuss fixing this problem against all vendored dependencies in the repo |
@MylesBorins I don't think there's anything else in And I think it's reasonable to want this to be done the first time this is added to git because then we don't have to forever carry around files that shouldn't have made it in in the first place. |
MylesBorins
commented
Nov 8, 2017
@apapirovski that seems reasonable in regards to the script and running Either way we should prioritize fixing the test first, I'll see if I can get something together |
gibfahn
commented
Nov 8, 2017
I thought it was opened to fix #16628, which isn't a test failure (just a slowdown in the linter CI job). Which test failure is that?
An alternative option would be a |
refack
commented
Nov 8, 2017
Sure, why didn't you ask sooner 😁 #16893 |
refack
commented
Nov 8, 2017
So for this scenario the |
Summary
Fixes#16628.
cc @gibfahn@maclover7
Checklist
make -j4 testAffected core subsystem(s)
build, tools