-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Remove additional sources of nondeterminism from benchmark archive #2389
Conversation
qa/zcash/create_benchmark_archive.py
Outdated
'--owner=0', '--group=0', | ||
'--mtime=2017-05-17T00:00:00Z', | ||
'-c', '-T', '-'], stdin=sort.stdout, stdout=subprocess.PIPE) | ||
archive = subprocess.check_output(['gzip', '-9n'], stdin=tar.stdout) |
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.
@bitcartel suggested switching to xz
for better compression. Shall we?
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.
It appears to be fine for determinism, so I'll update the PR to use it and reviewers can confirm.
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.
Note that if we change this, we need to update CI again, because it expects .gz
when sending to the worker.
fyi - if benchmark folder already exists
|
@bitcartel I consider that acceptable, since this would only be run rarely by someone setting up this new benchmark. What do you think? |
I don't want to remove the benchmark folder automatically in case someone happened to be using it for something. The best we could do is clean up the error message, if we feel it isn't already clear enough. |
Ok, I think it's fine to leave as is. |
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.
ACK
The archive has also been moved from .tar.gz to .tar.xz for a 33% reduction in size. Closes zcash#2388.
aa3adaf
to
08dc788
Compare
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.
ACK
@zkbot r+ |
📌 Commit 08dc788 has been approved by |
…at-least Remove additional sources of nondeterminism from benchmark archive Closes #2388.
Closes #2388.