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

fix(ci): make filename changes change file hash in docker cache #2839

Merged
merged 8 commits into from
Sep 18, 2024

Conversation

corneliusroemer
Copy link
Contributor

@corneliusroemer corneliusroemer commented Sep 18, 2024

partially resolves #2838

Previously the way we calculated hashes only used file content - not file names, which can matter.

Now we create and add a hash of all relevant file names and use that as input for the docker cache hash.

This change needs to be mirrored to all workflows that use this caching strategy to avoid filename renames not changing the hash.

@corneliusroemer
Copy link
Contributor Author

Alright, now this worked - so file names are now taken into account in the hash for backend

We should roll this out to the other cache builds as well.

@corneliusroemer corneliusroemer changed the title fix: make filename changes change file hash fix(ci): make filename changes change file hash in docker cache Sep 18, 2024
@corneliusroemer corneliusroemer enabled auto-merge (squash) September 18, 2024 17:02
@corneliusroemer corneliusroemer added the review please PR waiting for final review label Sep 18, 2024
@corneliusroemer corneliusroemer merged commit da67189 into main Sep 18, 2024
15 checks passed
@corneliusroemer corneliusroemer deleted the fix-hash-filename branch September 18, 2024 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review please PR waiting for final review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Renaming file is not enough to change the docker image cache hash in our CI
2 participants