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 flag --use-pipelinerun to start the rerun with a specific pr #682

Conversation

chmouel
Copy link
Member

@chmouel chmouel commented Feb 5, 2020

Add the flag --use-pipelinerun which like --last would reuse a PR but instead of
the last one it would use the specified one.

What is the use case? When using trigger/webhook I get different PR created for some pull-request that goes to the trigger service.
I'd like to rerun a specific failed run for a PR without having to copy past all the params manually.

Since the failed PR is not necessary the last one, as multiple concurrent of them can be running.

Closes #679

Changes

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes tests (if functionality changed/added)
  • Includes docs (if user facing)
  • Regenerate the manpages and docs with make docs and make man if needed.
  • Run the code checkers with make check
  • Commit messages follow commit message best practices

See the contribution guide
for more details.

Release Notes

release-note

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Feb 5, 2020
@chmouel chmouel force-pushed the issue-679-rerun-pipeline-with-a-specific-pipelinerun-params/res branch from d6c7198 to 91a900c Compare February 5, 2020 17:37
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/helper/pipelinerun/pipelinerun.go 87.5% 60.9% -26.6

@chmouel chmouel force-pushed the issue-679-rerun-pipeline-with-a-specific-pipelinerun-params/res branch from 91a900c to f368228 Compare February 5, 2020 17:38
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/helper/pipelinerun/pipelinerun.go 87.5% 60.9% -26.6

@chmouel chmouel changed the title Add flag --use-pipelinerun to start to rerun with a specific pr Add flag --use-pipelinerun to start the rerun with a specific pr Feb 5, 2020
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/helper/pipelinerun/pipelinerun.go 87.5% 60.9% -26.6

@chmouel
Copy link
Member Author

chmouel commented Feb 5, 2020

I am not sure why the coverage doesnt detect that I implicitly use the newly written GetPipeline in my test 🤷‍♂

@chmouel chmouel force-pushed the issue-679-rerun-pipeline-with-a-specific-pipelinerun-params/res branch from f368228 to 69d60a3 Compare February 5, 2020 17:43
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/helper/pipelinerun/pipelinerun.go 87.5% 60.9% -26.6

@chmouel chmouel force-pushed the issue-679-rerun-pipeline-with-a-specific-pipelinerun-params/res branch from 69d60a3 to 5d904aa Compare February 5, 2020 21:25
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/helper/pipelinerun/pipelinerun.go 87.5% 60.9% -26.6

Add the flag --use-pipelinerun which like --last would reuse a PR but instead of
the last one it would use the specified one.

Closes tektoncd#679

Signed-off-by: Chmouel Boudjnah <chmouel@redhat.com>
@chmouel chmouel force-pushed the issue-679-rerun-pipeline-with-a-specific-pipelinerun-params/res branch from 5d904aa to c0bf1c5 Compare February 5, 2020 21:34
@tekton-robot
Copy link
Contributor

The following is the coverage report on pkg/.
Say /test pull-tekton-cli-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/helper/pipelinerun/pipelinerun.go 87.5% 60.9% -26.6

@vdemeester
Copy link
Member

/meow

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 6, 2020
@tekton-robot
Copy link
Contributor

@vdemeester: cat image

In response to this:

/meow

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.

Copy link
Contributor

@piyush-garg piyush-garg left a comment

Choose a reason for hiding this comment

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

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Feb 6, 2020
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: piyush-garg, vdemeester

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:
  • OWNERS [piyush-garg,vdemeester]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tekton-robot tekton-robot merged commit 458c176 into tektoncd:master Feb 6, 2020
vdemeester added a commit that referenced this pull request Feb 28, 2020
#674 | [Piyush Garg] Update readme for 0.7.1 release | 2020/02/04-09:25
#678 | [Vincent Demeester] Bump gotest.tools/v3 dep to 3.0.1 | 2020/02/05-02:08
#609 | [Chmouel Boudjnah] Start doing testing against nightly | 2020/02/05-09:50
#676 | [Daniel Helfand] --all option for tkn taskrun delete | 2020/02/05-12:10
#682 | [Chmouel Boudjnah] Add flag --use-pipelinerun to start to rerun with a target pr | 2020/02/06-03:07
#677 | [Piyush Garg] Improve release docs | 2020/02/06-08:25
#681 | [Chmouel Boudjnah] Add --output by name for TaskRuns | 2020/02/10-02:32
#681 | [Chmouel Boudjnah] Add --output by name for TriggerBinding | 2020/02/10-02:32
#692 | [Daniel Helfand] add tkn cluster delete --all | 2020/02/10-04:22
#694 | [Piyush Garg] Add --step flag for taskrun logs | 2020/02/10-09:30
null | [Daniel Helfand] --all option for tkn el delete | 2020/02/10-15:01
null | [Daniel Helfand] --all option for tkn resource delete | 2020/02/10-15:24
null | [Daniel Helfand] -all option for tkn condition delete | 2020/02/10-15:25
null | [16yuki0702] Fix bug about Complete logs not shown for failed TaskRun related issue is #587 | 2020/02/10-15:38
null | [Daniel Helfand] --all option for tkn pipelinerun delete | 2020/02/10-16:37
null | [Chmouel Boudjnah] Shows --- for empty values on "DEFAULT VALUES" column | 2020/02/11-02:38
null | [Chmouel Boudjnah] Makefile fixes | 2020/02/11-05:20
null | [Chmouel Boudjnah] Update github pull request templates | 2020/02/11-05:20
null | [Chmouel Boudjnah] Add pipeline version information | 2020/02/12-01:36
null | [Daniel Helfand] --all option for tkn triggertemplate delete | 2020/02/12-01:49
null | [Chmouel Boudjnah] Fix help command | 2020/02/12-03:22
null | [Chmouel Boudjnah] Fix yaml errors | 2020/02/12-08:00
null | [Chmouel Boudjnah] Update presubmit jobs to use make lint | 2020/02/12-08:00
null | [Chmouel Boudjnah] Add support for filtering by label on pipelinerun | 2020/02/12-08:19
null | [Chmouel Boudjnah] Add support for filtering by label on taskruns | 2020/02/12-08:19
null | [Daniel Helfand] --all option for tkn triggerbinding delete | 2020/02/12-16:03
null | [Chmouel Boudjnah] Add --last support to `tkn pr logs` | 2020/02/13-01:51
null | [Daniel Helfand] nil check for lr.Stream for taskrun logs | 2020/02/13-02:08
null | [Pradeep Kumar] Fix typo | 2020/02/14-06:44
null | [Chmouel Boudjnah] Modify test names as they are pipelinerun not pipeline tests | 2020/02/14-12:30
null | [Chmouel Boudjnah] Add --last flag to tkn taskrun logs | 2020/02/14-12:30
null | [Daniel Helfand] --prefix-name option for tkn pipeline start | 2020/02/17-03:32
null | [Daniel Helfand] add warning for --all flags for pipeline and task delete | 2020/02/17-03:33
null | [Vincent Demeester] Update golangci-lint target 🍵 | 2020/02/18-03:38
null | [Chmouel Boudjnah] Generate manpages at the same time as make docs | 2020/02/18-04:42
null | [Chmouel Boudjnah] Make sure golden files have been generated | 2020/02/18-04:42
null | [Pradeep Kumar] Adds timeout to pipeline start | 2020/02/18-07:50
null | [Chmouel Boudjnah] Add fuzzyfinder library | 2020/02/18-09:08
null | [Chmouel Boudjnah] Add fuzzy finder selection for pipelinerun and taskrun | 2020/02/18-09:08
null | [Chmouel Boudjnah] Increase default limit when using with fzf | 2020/02/18-09:08
null | [16yuki0702] Refactoring log writer. related issue is #708 | 2020/02/19-02:24
null | [Vincent Demeester] Use -mod=vendor for golangci-lint too 👼 | 2020/02/19-03:36
null | [Vincent Demeester] Fix linting on pkg/log 🚈 | 2020/02/19-03:36
null | [Chmouel Boudjnah] Add --use-taskrun for taskrun | 2020/02/19-07:26
null | [Daniel Helfand] show sidecar names with tkn tr desc | 2020/02/24-06:08
null | [Daniel Helfand] add warning message for tkn task start --timeout | 2020/02/26-02:18
null | [16yuki0702] Refactoring log reader. related issue is #748 | 2020/02/26-08:14
null | [Daniel Helfand] --prefix-name option for tkn task start | 2020/02/27-02:03
null | [Daniel Helfand] add error message for deletion when args=0 and no --all flag | 2020/02/27-02:15
null | [Vincent Demeester] Remove trigger alias for start subcommands 🚉 | 2020/02/27-07:37
null | [Chmouel Boudjnah] Add --keep to --all, to keep the last N pipelineruns | 2020/02/27-09:32
null | [Vincent Demeester] Add --keep to --all, to keep the last N taskruns | 2020/02/27-09:32
null | [Vincent Demeester] Enhance the error message for --keep ⌨ | 2020/02/27-09:32
null | [Vincent Demeester] Pin the go version in the release pipeline 🖊 | 2020/02/27-11:03
null | [Vincent Demeester] Use -mod=vendor during the release 👼 | 2020/02/27-11:59

Signed-off-by: Vincent Demeester <vdemeest@redhat.com>
@chmouel chmouel deleted the issue-679-rerun-pipeline-with-a-specific-pipelinerun-params/res branch June 27, 2021 05:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cla: yes lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rerun pipeline with a specific pipelinerun params/resources
5 participants