Skip to content
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

Investigate github action pipelines to cut CI costs #621

Open
piotrwitek opened this issue Apr 6, 2023 · 0 comments
Open

Investigate github action pipelines to cut CI costs #621

piotrwitek opened this issue Apr 6, 2023 · 0 comments
Labels

Comments

@piotrwitek
Copy link
Contributor

I had a look on your pipelines. Yes, they are taking some considerable time and are executed often.
In general the pipeline seems well written and uses best practices like using matrix.
However, each per-matrix execution will duplicate the entire job. In our case this means that we are executing long-lasting steps like installing dependencies twice, and it takes 3.5-4 minutes to do it per step. It obviously doubles for each browser.
So in general it looks the following way for the billing:
chrome run ~ 7-8 minutes
firefox run ~ 9-10 minutes
The total billable time is 18 minutes.
The total billable time for installing dependencies is 7-8 minutes.
With 4 browsers it will be clearly more.
I don't currently see a better way to optimize it except removing the matrix and doing npm run sequentially. This will increase the overall job execution time, but will decrease the billable time. Also this will require some steps tuning like if always() in order to run tests even if the previous one has failed.

@piotrwitek piotrwitek self-assigned this Apr 6, 2023
@piotrwitek piotrwitek removed their assignment Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant