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

Make exported build cache deterministic #780

Merged
merged 2 commits into from
Jan 19, 2019

Conversation

tonistiigi
Copy link
Member

Improves #615 #777

  • Avoid exporting local cache keys based on random seed because they would be regenerated on every run.
  • Keep original creation date when copying record from remote store to local instead of using the current time.

Its possible there are still some edge cases that can be improved but these require extra debugging. This should cover most of it. Some cases where uploaded cache changes over time are by-design as if over time new metadata is determined that applies to same record, we want to upload that data as well.

@tonistiigi tonistiigi force-pushed the deterministic-cache branch 2 times, most recently from 903d919 to 9aeb0ae Compare January 11, 2019 06:26
solver/cachemanager.go Outdated Show resolved Hide resolved
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.

2 participants