-
Notifications
You must be signed in to change notification settings - Fork 30k
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
Add remark dependencies #17320
Add remark dependencies #17320
Conversation
I posit that there should be a simpler way. My concern is also with first time contributors who will have a 12% larger repo, and (from my experiance) 30% slower git operations. I'd be happy to review any edge-cases, and assist in trying to figure out the best way to achieve optimal usability of remark and ESLint without needing to burden the repo. Where can I find examples? If we want to be extra cautious in the meanwhile I agree that rolling back remark from the |
From the previous PR:
It would be good to understand the issue more. Did #17224 fix the gitignore issue? Is git not obeying its own gitignore for the package-lock.json? If we're hitting it in this case, we're probably going to hit it again in the future. I understand these were seen on other people's laptops so debugging is not ideal, maybe in future Code-and-Learns we should focus more on sitting down to debug these edge-cases we come across, in my experience it's a really good way to flush out obscure issues in the contributing flow. |
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.
IMHO #17330 fixes the issue in a more direct way.
I’d say the
|
P.S. I did not block #16635. I suggested an alternative which was adopted instead. |
@addaleax I agree that there are several fragile "tricks" in the Makefile. That is why I'm requesting extra scrutiny in drastic changes. I'm not sure why the |
I was reading https://larsxschneider.github.io/2016/09/21/large-git-repos which has some insight into when git will slow down for various reasons. It is suggesting that > 100k files generally acceptable without performance issues.
@refack do you have some benchmarks or numbers you can provide showing that this increase in file count is causing a slow down in day to day operations? Specific operations and performance differences would be helpful. You mention 30% slower operations above, I would be very interested in seeing this in practice. |
@refack if I'm following the chart above it is in regards to time it takes to start webpack? It seems really odd that the extra 2k files double the start up time... |
cd ../.. | ||
|
||
# Install dmn if it is not in path. | ||
type -P dmn || npm install -g dmn |
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 we don't need this one if dmn has been installed globally in L23?
@refack What is the chart measuring? The time it takes to open the node core in Webstorm? Can Webstorm be configured to ignore certain folders unless specifically told not to when you are actually making changes in those folders? (I always do that in vscode with |
@refack ping |
Webstorm is indexing only javascript files so those extra 1800 files which are mostly javascript and If we consider this a pressing issue #17330 offers an improvement to the status quo, and does not preclude adding all the deps later. |
@refack But does it have to index those files if the user is not actually making changes related to the tools? I think the |
@refack I'm going to emphasize what joyee is saying... if we are talking bootup / index of a specific editor this can be setup to be ignored in the settings of that editor. The original reason you blocked was due to git performance, do you have any perf related to that |
eb99e08
to
8b058b2
Compare
I've rebased off master. As we still do not have consensus on this I am tagging for TSC agenda so that we can discuss on Wednesday |
8b058b2
to
913d769
Compare
I am still very much +1 on this. I was just getting ready to land #17428 and linting wouldn’t pass because – for whatever reason – I think it’s really not great for merging PRs to be broken – even if a workaround is as simple as recreating package-lock.json – because of something like this. |
Closing in lieu of a PR incoming from @refack to move the remark linter out of the main testing pipeline |
Cross-ref #17587 |
This is an alternative to #17315 which uses a script
tools/updates-remark.sh
to update the dependenciesit also processes those folders with dmn and
npm dedupe
resulting in about 15% less files being tracked