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

Speed up asset compilation on CI #516

Open
dacook opened this issue Jul 1, 2024 · 0 comments
Open

Speed up asset compilation on CI #516

dacook opened this issue Jul 1, 2024 · 0 comments

Comments

@dacook
Copy link
Member

dacook commented Jul 1, 2024

What we should change and why (this is tech debt)

We currently have two types of assets, compiled with Sprockets and Webpacker.

All Webpacker assets are precompiled, while others are compiled on demand (perhaps only a few per spec?). I think we need to gather common time estimates to understand this better:

  • Webpacker: x seconds
  • Sprockets (all assets): x seconds

Context

Un-compiled sprockets assets caused a flaky spec: openfoodfoundation/openfoodnetwork#12552

Proposed solution

One option is to cache build temp files as referred here:
openfoodfoundation/openfoodnetwork#12580 (comment)
There doesn't seem to be a pre-built solution for this, and we'd need to handle expiry of old unused temp files. So it's probably not worth going down that path.

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