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

Optimize CI, add cache #352

Open
6 tasks
Syndesi opened this issue Dec 10, 2024 · 0 comments
Open
6 tasks

Optimize CI, add cache #352

Syndesi opened this issue Dec 10, 2024 · 0 comments
Labels
CI Improving CI/CD pipelines. Enhancement Improving existing functionalities. Performance Improving general performance.
Milestone

Comments

@Syndesi
Copy link
Member

Syndesi commented Dec 10, 2024

The current CI does not take advantage of caching. This is especially a problem for the "Build Docker Image" step, which takes around 11 minutes.

The following changes should be tested and implemented:

  • Enable Docker image cache for non-main branches.
  • Build the Docker image automatically once per week.
  • Rebuild the Docker image after a change got merged into main which affects the Docker image.
  • Use the cached Docker image in non-main CI runs when there are no changes to the Docker image itself.
  • Keep building the image from scratch on non-main CI runs when there are changes to the Docker image.
  • Investigate which kind of changes affect the Docker image, e.g.:
    • Changes to docker/
    • Changes to composer.json should not require a newly built image automatically, as Composer dependencies are installed inside the test CI automatically. If Composer dependencies require changes to the Docker image, then the Dockerfile itself has to be updated itself, which triggers a change to docker/, which already rebuilds the image.
@Syndesi Syndesi added Enhancement Improving existing functionalities. Performance Improving general performance. CI Improving CI/CD pipelines. labels Dec 10, 2024
@Syndesi Syndesi added this to the 0.2.0 milestone Dec 10, 2024
@Syndesi Syndesi mentioned this issue Dec 10, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Improving CI/CD pipelines. Enhancement Improving existing functionalities. Performance Improving general performance.
Projects
Status: No status
Development

No branches or pull requests

1 participant