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

Improving CI speed with image caching #1918

Open
8 tasks
shaneutt opened this issue Oct 12, 2021 · 0 comments
Open
8 tasks

Improving CI speed with image caching #1918

shaneutt opened this issue Oct 12, 2021 · 0 comments

Comments

@shaneutt
Copy link
Contributor

shaneutt commented Oct 12, 2021

Problem Statement

A large portion of the time our CI runs take today are image pulls that happen inside ContainerD inside of KIND clusters.

Kind does not currently natively support loading image caches into ContainerD and so the effect is that images are pulled repeatedly (and in the case of docker registry images rate-limits can be quickly reached).

We should implement a mechanism in our CI to cache these images between builds in order to improve CI execution times.

Proposed Solution

  • pre-save images into a local CI cache for each image that needs to be used in testing
  • implement a KTF feature to enable kind load functionality to load the image archives on build

OR

  • implement a mechanism in upstream kind for mounting the ContainerD image directories on the host system
  • add KTF functionality for the image dir mount
  • add the mounted directory to actions/cache on build

OR

Acceptance Criteria

  • as a contributor the CI for my PR's runs quicker because less competitive container image downloads need to finish in order to start my tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant