Use Timeout of --last or --use-pipelinerun/--use-taskrun for Start Commands#863
Use Timeout of --last or --use-pipelinerun/--use-taskrun for Start Commands#863tekton-robot merged 1 commit intotektoncd:masterfrom danielhelfand:timeout_last_usepr
Conversation
|
/lgtm Thanks 👍🏼🔥 |
|
I was going to ask about unit test but unit test asked for themselves 😅 |
Yeah, so I guess |
|
/hold If we use similar testing approaches as with |
|
/hold cancel |
| pipeline := Command(p) | ||
| got, _ := test.ExecuteCommand(pipeline, "start", pipelineName, | ||
| "--last", | ||
| "-r=git-repo=scaffold-git", |
There was a problem hiding this comment.
The unit test for tkn p start --last wasn't really testing the feature since it overwrites many runtime values. The point of the test is to see whether the last pipelinerun's values are used, so I removed everything except --last.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chmouel, vdemeester The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes #862
Closes #488
Changes
When using
tkn p startwith the--lastflag or--use-pipelinerunflag, the timeout of the previous value isn't applied as described in #862. This pull request updates bothtkn p startandtkn t startto use the timeout values of the previous PipelineRun or TaskRun.Submitter Checklist
These are the criteria that every PR should meet, please check them off as you
review them:
make checkmake generatedRelease Notes