-
Notifications
You must be signed in to change notification settings - Fork 85
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
ots upgrade of multiple timestamps halted by single incomplete timestamp #71
Comments
A workaround is to use ls -t --reverse v/*/*.ots | xargs ots upgrade |
I just checked, and the GNU
In other words, failures don't cause subsequent actions to fail; Anyone else care to weigh in? @RCasatta ? |
I agree to match standard commands semantics, so exit 0 in the highlighted code, we should probably change also the message to something like "Temporary failure! Timestamp not yet complete" |
Agreed. Incomplete timestamps are not really a failure in the way that an invalid timestamp would be. What is the desired exit code for the following grey areas?
|
I guess we better do whatever |
@dhimmel Thinking about this more, I think the multiple timestamp upgrade functionality was a mistake that overly complicates the design; better for the user to use |
I agree it complicates the design, but I lean towards OTS dealing with that complexity versus the user. In the Manubot use case, upgrades will always be batched. Batches will likely consist of Multi-timestamp functionality in the python OTS CLI is nice because it's cross-platform and will greatly reduce the implementation burden users face to upgrade multiple timestamps. I don't have a strong opinions on how the OTS API should work. Perhaps there should be an Semi-related, what's the API for upgrading a single timestamp from within python (not using the CLI)? Is the Python API stable or should users always interact with the OTS via the CLI? |
The Manubot uses OpenTimestamps during continuous deployment to timestamp scholarly manuscripts. The
.ots
files are saved in directories and can be upgraded at a later date.To upgrade, I ran the following command:
The support for upgrading multiple files at once was very convenient. However, the command exits as soon as a single failure occurs. In my case, one of the timestamps had yet to be confirmed, resulting in:
This triggered the program to exit as per:
opentimestamps-client/otsclient/cmds.py
Lines 379 to 381 in 2bffedb
As a result, many timestamps were not upgraded that could have been upgraded. Would it make sense to not exit on failure and to proceed with additional inputs?
The text was updated successfully, but these errors were encountered: