Skip to content

Make exported build cache deterministic#780

Merged
AkihiroSuda merged 2 commits into
moby:masterfrom
tonistiigi:deterministic-cache
Jan 19, 2019
Merged

Make exported build cache deterministic#780
AkihiroSuda merged 2 commits into
moby:masterfrom
tonistiigi:deterministic-cache

Conversation

@tonistiigi
Copy link
Copy Markdown
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.

Comment thread solver/llbsolver/ops/source.go Outdated
@tonistiigi tonistiigi force-pushed the deterministic-cache branch 2 times, most recently from 903d919 to 9aeb0ae Compare January 11, 2019 06:26
Comment thread solver/cachemanager.go Outdated
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
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