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

Add --timeout support to sign command #1379

Merged
merged 1 commit into from Feb 2, 2022
Merged

Conversation

saschagrunert
Copy link
Contributor

@saschagrunert saschagrunert commented Jan 31, 2022

Summary

We can now specify a global -t/--timeout option to specify a timeout for any command. It is implemented for sign for now, which resolves a leftover TODO.

As a follow-up we can consider adding support to other commands as well.

Ticket Link

None

Release Note

- Added global flag `--timeout`/`-t`, which defaults to 3 minutes. 
  This replaces the existing `--timeout` flags on
  `sign-blob`, `policy sign` and `attest`.
- Added `--timeout` supported to the `sign` command.

Copy link
Member

@cpanato cpanato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks nice

@dlorenc
Copy link
Member

dlorenc commented Jan 31, 2022

Looks like you have to run make docgen to update the docs!

@saschagrunert
Copy link
Contributor Author

Updated the PR, while we now can replace other --timeout flags for different subcommands.

@dlorenc
Copy link
Member

dlorenc commented Feb 2, 2022

Nice! Sorry I missed the "Approve and Run" thing here again.

@cpanato
Copy link
Member

cpanato commented Feb 2, 2022

@saschagrunert, there are some errors. Can you take a look?

We can now specify a global `-t`/`--timeout` option to specify a
timeout for any command. It is implemented for `sign` for now, which
resolves a leftover `TODO`.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
@saschagrunert
Copy link
Contributor Author

@saschagrunert, there are some errors. Can you take a look?

Yes, sure. The unit tests seemed to be a flake but I fixed the e2e tests. Can you please re-trigger the CI?

@cpanato
Copy link
Member

cpanato commented Feb 2, 2022

ready @dlorenc

@dlorenc dlorenc merged commit f97a146 into sigstore:main Feb 2, 2022
@saschagrunert saschagrunert deleted the timeout branch February 2, 2022 10:47
@github-actions github-actions bot added this to the v1.6.0 milestone Feb 2, 2022
hatmarch pushed a commit to hatmarch/cosign that referenced this pull request Apr 19, 2022
We can now specify a global `-t`/`--timeout` option to specify a
timeout for any command. It is implemented for `sign` for now, which
resolves a leftover `TODO`.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
mlieberman85 pushed a commit to mlieberman85/cosign that referenced this pull request May 6, 2022
We can now specify a global `-t`/`--timeout` option to specify a
timeout for any command. It is implemented for `sign` for now, which
resolves a leftover `TODO`.

Signed-off-by: Sascha Grunert <sgrunert@redhat.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.

None yet

3 participants