-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
[ci] make use of composer install cache to make parallel jobs faster #12695
Conversation
…and re-use the same cache
@TomasVotruba this makes sense. I retriggered the CI pipeline to see the effect |
Thanks 👍 I've checked the CI jobs on my PR and they were extreemely long. I thought it's the databse, but the composer was taking 1-2 minutes in most cases. I use this Github action everywhere for past 5 years. |
Good to go ✔️ |
can you elaborate on extremely long CI jobs? as the caching merely removed 10 - 20 seconds |
The 1 m 22 seconds is way too much for composer install, even for 248 packages. I think the caching might kick-in later, as 1st run has to trigger it. To compare, Rector has 93 packages to install - https://github.com/rectorphp/rector-src/actions/runs/6085162917/job/16508611947, including patching +10 files It's done in 13 seconds. I'll check for the bottleneck further, to keep scope of this PR narrow and easy to merge 👍 |
the cache is active, see screenshot of the run and the cache. But still a no-brainer improvement! 🥳 |
Exactly 😆 |
@TomasVotruba I was just looking to the capabilities of the that github Action, to check if it could also run the so good to go! |
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.
Great idea! 💡
Thanks for quick merge 🥳 |
fyi, I did some measuring with rector on the mautic code-base and found some low hanging fruits.
memory wise you should now be able to run rector without a ever climbing RAM usage (not yet released) |
No description provided.