-
Notifications
You must be signed in to change notification settings - Fork 24
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
feature_request(conflict): grunt-critical + grunt-pageres + grunt-load-config #65
Comments
@bezoerb , is any ideas how to fix it? Thanks. |
Hey @Kristinita, thanks for the detailed report. I will have to look into this in detail. I already checked the I'm checking the master branch now to see if i can find something. |
Sorry... i could not find anything reasonable. |
Status: Need more info 🤔 1. QuestionsExcuse me, I didn’t understand what you were doing. Please let me know what can I do to better clarify the problem? Could you please advise how you get 14 and 16.1 seconds? 2. About MCVEI remind you that I have reproduced my problem on Travis CI. Travis CI builds: You can find details in these builds. 3. master branch
If you talk about master branch of my “SashaGruntDebugging” repository, then it was created 2,5 years ago to demonstrate a different problem, not related to grunt-critical. Thanks. |
I think i did the same things you did on Travis CI: I wasn't able to reproduce your problem on my local hardware. This makes it somehow impossible for me to debug the time difference you are experiencing I checked the master branch of your |
1. Summary
If I use grunt-critical + grunt-pageres + grunt-load-config:
grunt-critical 2.0.0 is more than 10x slower than 1.1.3.
2. Details
2.1. Real project
My AppVeyor build was not completed in 1 hour — quota per build job. Although before that the build time did not exceed 25 minutes; see for example my next build. AppVeyor hangs on the grunt-critical task.
I ran the grunt-critical task for my project on the local machine.
2.2. Puppeteer
If I use grunt-critical and grunt-pageres:
Chromium is installed 2 times.
See output of
npm install
command for my MCVE:3. MCVE
Forming the MCVE turned out to be a long job.
You can see it in
KiraCritical
branch of my demo/debugging repository:Gruntfile.coffee
:Part of
package.json
:.travis.yml
:And some real HTML and CSS files.
4. Behavior
4.1. Expected
Without conflicting plugins grunt-critical 2.0.0 completed the task in 18.8 seconds.
4.2. Current
If we add to our
Gruntfile.coffee
the line:require('time-grunt') grunt + require('load-grunt-config') grunt grunt.loadNpmTasks 'grunt-critical'
grunt-critical completed the same task in 4 minutes 27.6 seconds.
5. Don’t offer
5.1. “It not my issue, update grunt-pageres subdependencies”
Possibly, updating subdependencies of critical and/or pageres won’t fix the problem. In the future, it is possible that critical and pageres will have different versions of Puppeteer → Chromium will be installed 2 times again → problem from my issue may repeat.
It would be nice to have such a solution so that this problem doesn’t recur in the future.
Thanks.
The text was updated successfully, but these errors were encountered: