-
Notifications
You must be signed in to change notification settings - Fork 787
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(tekton): Allow setting pipeline timeout and set default on PipelineRun to 240 hours #4251
fix(tekton): Allow setting pipeline timeout and set default on PipelineRun to 240 hours #4251
Conversation
/lgtm |
/test bdd |
/test lint |
/test lint |
/lgtm |
@@ -95,7 +95,7 @@ type Timeout struct { | |||
Unit TimeoutUnit `json:"unit,omitempty"` | |||
} | |||
|
|||
func (t Timeout) toDuration() (*metav1.Duration, error) { | |||
func (t *Timeout) ToDuration() (*metav1.Duration, error) { |
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.
exported method Timeout.ToDuration should have comment or be unexported
Codecov Report
@@ Coverage Diff @@
## master #4251 +/- ##
==========================================
- Coverage 43.19% 41.77% -1.43%
==========================================
Files 798 798
Lines 100096 100097 +1
==========================================
- Hits 43241 41820 -1421
- Misses 53255 54981 +1726
+ Partials 3600 3296 -304
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #4251 +/- ##
===========================================
+ Coverage 6.61% 31.25% +24.64%
===========================================
Files 680 680
Lines 90021 90029 +8
===========================================
+ Hits 5951 28141 +22190
+ Misses 83655 60510 -23145
- Partials 415 1378 +963
Continue to review full report at Codecov.
|
5ce3c83
to
bf1b325
Compare
/test bdd |
/test bdd |
/test integration |
/test lint |
/test bdd |
/test integration |
@abayer due for a rebase now ;-) |
status: {} |
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.
👍 thanks for the newline :-)
Starting in Tekton Pipelines v0.4.0, the default timeout for `TaskRun`s of 10 minutes when no timeout is specified is actually enforced. The only way to specify a timeout for a `TaskRun` is by setting a timeout on the `PipelineRun`, so until tektoncd/pipeline#978 and/or tektoncd/pipeline#979 are addressed, we should just set a ridiculously high timeout on all `PipelineRun`s. Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
bf1b325
to
5c6d090
Compare
aaaaand rebased. =) |
Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
5c6d090
to
5759395
Compare
@abayer: The following test failed, say
View all Builds for this Pull Request Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: carlossg, hferentschik, wbrefvem The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…neRun to 240 hours (jenkins-x#4251) * fix(tekton): Set a default PipelineRun timeout of 10 days Starting in Tekton Pipelines v0.4.0, the default timeout for `TaskRun`s of 10 minutes when no timeout is specified is actually enforced. The only way to specify a timeout for a `TaskRun` is by setting a timeout on the `PipelineRun`, so until tektoncd/pipeline#978 and/or tektoncd/pipeline#979 are addressed, we should just set a ridiculously high timeout on all `PipelineRun`s. Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com> * fix(tekton): Allow configuring Pipeline timeout Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
Submitter checklist
Description
Starting in Tekton Pipelines v0.4.0, the default timeout for
TaskRun
s of 10 minutes when no timeout is specified is actuallyenforced. The only way to specify a timeout for a
TaskRun
is bysetting a timeout on the
PipelineRun
, so untiltektoncd/pipeline#978 and/or
tektoncd/pipeline#979 are addressed, we
should just set a ridiculously high timeout on all
PipelineRun
s.But also, let's allow configuring top-level timeouts in the first place. The syntax has existed for ages already.
Special notes for the reviewer(s)
/assign @hferentschik
/assign @dwnusbaum
/assign @wbrefvem
/assign @carlossg
Which issue this PR fixes
fixes #4250