-
-
Notifications
You must be signed in to change notification settings - Fork 221
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: Make artifact bundle creation deterministic #1652
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well the add_file
API is still order dependent thats why you have to sort.
It used to use a default timestamp
which was obviously not deterministic, but now we are just writing files with a deterministic timestamp. Looks like I never pushed that fix / update to symbolic. I remember I did try it locally for sure.
Should we fix that in |
Well you also don’t want to buffer everything in RAM before you write it out to file… I guess that is one of the main reasons that |
Building an artifact bundle is currently nondeterministic. This is because of two factors:
symbolic
in which the order in which you add files to a source bundle matters.This adds a failing test and then fixes the problem by updating
symbolic
and presorting source files.