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

ci: Add missing step for image caching #1114

Merged
merged 1 commit into from
Dec 9, 2022

Conversation

mqasimsarfraz
Copy link
Member

@mqasimsarfraz mqasimsarfraz commented Nov 10, 2022

It seems that we are missing step to move the image cache to correct location as per example. Also, the cache sizes key=Linux-docker-{core,default}- seem to be indicating we aren't using cache for docker images. Only useful for re-triggers of all steps.

Testing:

Cache sizes seems to be of the expected sizes with new keys.

@mqasimsarfraz mqasimsarfraz marked this pull request as ready for review November 10, 2022 17:23
@burak-ok
Copy link
Member

I think that the cache should be shared between all commits to maximize the advantages of caching

@mqasimsarfraz
Copy link
Member Author

I think that the cache should be shared between all commits to maximize the advantages of caching

Yeah, makes sense. Found one more issue regarding hashFiles not working as expected so fixing it should make sure caching will be updated in case Dockerfiles are changed.

@mqasimsarfraz mqasimsarfraz force-pushed the qasim/add-missing-cache-step branch 2 times, most recently from 81a03f0 to f534e95 Compare November 11, 2022 14:43
Copy link
Member

@eiffel-fl eiffel-fl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems cool, I just have some questions because I want to be sure we will test the image corresponding to the PR:

.github/workflows/inspektor-gadget.yml Outdated Show resolved Hide resolved
.github/workflows/inspektor-gadget.yml Show resolved Hide resolved
@mqasimsarfraz mqasimsarfraz force-pushed the qasim/add-missing-cache-step branch 2 times, most recently from b72f8ef to 193c8f3 Compare December 5, 2022 09:42
It seems that we are missing step to move the image cache to correct
location as per, https://docs.docker.com/build/ci/github-actions/examples/#local-cache
Copy link
Member

@eiffel-fl eiffel-fl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for it and sorry for the river of question but I wanted to be sure we did not introduce a mistake!

@mqasimsarfraz
Copy link
Member Author

Thank you for it and sorry for the river of question but I wanted to be sure we did not introduce a mistake!

Thanks for the review. Those questions were super important because I understand buildkit better now 😄

I will keep this PR open for a bit in case someone else wants to review as well!

@mqasimsarfraz
Copy link
Member Author

Thanks for the review.

@mqasimsarfraz mqasimsarfraz merged commit 32cae1d into main Dec 9, 2022
@mqasimsarfraz mqasimsarfraz deleted the qasim/add-missing-cache-step branch December 9, 2022 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants