meilisearch/MeiliSearch

Improve Docker CI speed with cache

Aperta

#3782 aperta il 25 mag 2023

 (2 commenti) (0 reazioni) (0 assegnatari)Rust (2542 fork)batch import
contribution acceptedgithub actionshelp wantedmaintenanceOLD

Metriche repository

Star
 (57.572 stelle)
Metriche merge PR
 (Merge medio 11g 20h) (41 PR mergiate in 30 g)

Descrizione

Currently, our Docker CI is really long to compute: around 1h30

A contributor implemented Docker cache on this PR to improve the speed. However, it did not work.

As I described here, if I run the CI twice on the same commit, the cache is taken into account. But if I run the CI on two different commits (1 line of code changed) the CI lasts 1h30 again, no cache used at all.

The contributor suggested some improvements we should do here, but the team is not a Docker expert and cannot prioritize it at the moment.

So any help or contributions are welcomed! ❤️

Also, if you have any other ideas to improve the speed of the CI that is not a cache solution, you are also more than welcome to open a PR 😁

Guida contributor