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

Optimise CI #515

Open
dacook opened this issue Jun 24, 2024 · 1 comment
Open

Optimise CI #515

dacook opened this issue Jun 24, 2024 · 1 comment

Comments

@dacook
Copy link
Member

dacook commented Jun 24, 2024

There are potential ideas to reduce CI resources and runtime:

name potential savings effort
Cache assets for precompilation (see openfoodfoundation/openfoodnetwork#12580 (comment)) high
Cache node_modules folder (openfoodfoundation/openfoodnetwork#12581) 5 seconds medium
Parallelise setup tasks high
  • might be able to set up db without Bundler
  • can run bundler and yarn in parallel
  • can run Webpacker and Sprockets compilation in parallel too?

Context

This was triggered when trying to solve a flaky spec by precompiling sprockets assets: openfoodfoundation/openfoodnetwork#12552
It has now been worked around, but we may need to investigate again one day.

@dacook
Copy link
Member Author

dacook commented Jun 24, 2024

I'm just organising these ideas here so we can move on. I don't think there's high value in investigating it right now.

As much as I'm tempted to micro-optimise, we should avoid doing anything unless there's a pre-built solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Candidates
Development

No branches or pull requests

1 participant