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

Show error when there is an invalid filtered task #2102

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

chmouel
Copy link
Member

@chmouel chmouel commented Aug 22, 2023

show an error on invalid task instead of looping forever (if -f is there) and show the available ones to make it easy to choose since name are not necessary obvious to know

Demo:

% tkn pr logs -n pipelines-as-code-ci push-generate-coverage-releaseyaml-689bs -t invalid
Error: passed filtered tasks: [invalid] is not available, available tasks are: [fetch unit codecov upload-release-yaml finally]

Release Note

- FIX: show an error and the tasks that can be filtered if there is an invalid task passed

@tekton-robot tekton-robot added the do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. label Aug 22, 2023
@tekton-robot tekton-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. labels Aug 22, 2023
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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:

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 added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 22, 2023
and show the available ones to make it easy to choose

Signed-off-by: Chmouel Boudjnah <[email protected]>
@chmouel chmouel force-pushed the error-on-invalid-filtered-tasks branch from 45de500 to 8daa1d1 Compare August 22, 2023 10:14
@jkandasa
Copy link
Member

/lgtm

@tekton-robot
Copy link
Contributor

@jkandasa: changing LGTM is restricted to collaborators

In response to this:

/lgtm

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.

@vdemeester
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 22, 2023
@tekton-robot tekton-robot merged commit a494d50 into tektoncd:main Aug 22, 2023
2 checks passed
@chmouel chmouel deleted the error-on-invalid-filtered-tasks branch August 22, 2023 15:06
vinamra28 added a commit that referenced this pull request Sep 8, 2023
#2090 | [Piyush Garg] Update release | 2023/08/01-18:00
#2094 | [dependabot[bot]] Bump golang.org/x/term from 0.10.0 to 0.11.0 | 2023/08/07-20:42
#2092 | [dependabot[bot]] Bump go.uber.org/zap from 1.24.0 to 1.25.0 | 2023/08/07-21:27
#2093 | [dependabot[bot]] Bump github.com/google/go-containerregistry from 0.15.2 to 0.16.1 | 2023/08/08-08:34
#2095 | [dependabot[bot]] Bump github.com/sigstore/sigstore from 1.7.1 to 1.7.2 | 2023/08/10-07:23
#2096 | [dependabot[bot]] Bump github.com/golangci/golangci-lint from 1.53.3 to 1.54.0 in /tools | 2023/08/10-08:35
#2098 | [dependabot[bot]] Bump github.com/theupdateframework/go-tuf from 0.6.0 to 0.6.1 | 2023/08/16-09:09
#2097 | [dependabot[bot]] Bump github.com/golangci/golangci-lint from 1.54.0 to 1.54.1 in /tools | 2023/08/17-07:33
#2101 | [dependabot[bot]] Bump github.com/golangci/golangci-lint from 1.54.1 to 1.54.2 in /tools | 2023/08/21-18:50
#2102 | [Chmouel Boudjnah] Show error when there is an invalid filtered task | 2023/08/22-14:34
null | [pratap0007] Bump tektoncd/pipeline to v0.50.0 LTS | 2023/08/24-11:24
null | [dependabot[bot]] Bump github.com/tektoncd/chains | 2023/08/24-13:36
null | [dependabot[bot]] Bump k8s.io/cli-runtime from 0.25.12 to 0.25.13 | 2023/08/24-14:38
null | [Zoran Regvart] Support for Manifest annotations in `bundle push` | 2023/08/28-06:44
null | [Piyush Garg] Bump triggers to v0.25.0 | 2023/08/29-11:18
null | [dependabot[bot]] Bump github.com/sigstore/sigstore from 1.7.2 to 1.7.3 | 2023/09/04-06:56
null | [dependabot[bot]] Bump golang.org/x/term from 0.11.0 to 0.12.0 | 2023/09/04-08:46
null | [Piyush Garg] Bump cosign to v2.2.0 and pin knative | 2023/09/04-13:32
null | [PuneetPunamiya] Bumps golang version to 1.20.7 | 2023/09/06-17:44
null | [PuneetPunamiya] Bumps Hub to v1.14.0 | 2023/09/07-20:12
null | [dependabot[bot]] Bump github.com/docker/docker | 2023/09/07-21:16
null | [dependabot[bot]] Bump github.com/docker/cli | 2023/09/08-02:08

Signed-off-by: vinamra28 <[email protected]>
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. lgtm Indicates that a PR is ready to be merged. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants