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

Fix StepAction support in Cluster resolver #8382

Merged

Conversation

AverageMarcus
Copy link
Contributor

@AverageMarcus AverageMarcus commented Nov 11, 2024

Changes

Fix StepAction support in Cluster resolver

Fixes #8381

Submitter Checklist

As the author of this PR, please check off the items in this checklist:

  • Has Docs if any changes are user facing, including updates to minimum requirements e.g. Kubernetes version bumps
  • Has Tests included if any functionality added or changed
  • pre-commit Passed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including functionality, content, code)
  • Has a kind label. You can add one by adding a comment on this PR that contains /kind <type>. Valid types are bug, cleanup, design, documentation, feature, flake, misc, question, tep
  • Release notes block below has been updated with any user facing changes (API changes, bug fixes, changes requiring upgrade notices or deprecation warnings). See some examples of good release notes.
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

Fix StepAction support in Cluster resolver

@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 11, 2024
@tekton-robot
Copy link
Collaborator

Hi @AverageMarcus. Thanks for your PR.

I'm waiting for a tektoncd member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@AverageMarcus
Copy link
Contributor Author

/kind bug

@tekton-robot tekton-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 11, 2024
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/resolution/resolver/cluster/resolver.go 69.3% 80.3% 10.9

@afrittoli
Copy link
Member

/ok-to-test

@tekton-robot tekton-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 11, 2024
Copy link
Member

@afrittoli afrittoli left a comment

Choose a reason for hiding this comment

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

Thanks!
I'm not too familiar with this section of the codebase, but in principle it looks good to me. I think this qualifies as a feature rather than a bug - the documented support today is for task and pipeline, this adds step action, which makes sense. Would you mind updating the docs as part of this PR? https://github.com/tektoncd/pipeline/blob/main/docs/cluster-resolver.md

@afrittoli afrittoli added kind/feature Categorizes issue or PR as related to a new feature. and removed kind/bug Categorizes issue or PR as related to a bug. labels Nov 11, 2024
@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/resolution/resolver/cluster/resolver.go 69.3% 80.3% 10.9

Copy link
Member

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

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

Oh waw, how did I miss that 😮‍💨 .
@afrittoli I would consider this as a bug, as it is supposed to be implemented (it's just that this part of the validation was missing 😱 )

@tekton-robot
Copy link
Collaborator

[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 Nov 11, 2024
@afrittoli
Copy link
Member

Oh waw, how did I miss that 😮‍💨 . @afrittoli I would consider this as a bug, as it is supposed to be implemented (it's just that this part of the validation was missing 😱 )

Well it matches the current docs https://github.com/tektoncd/pipeline/blob/main/docs/cluster-resolver.md... but I'm also ok to merge this and update the docs in a separate PR as long as they go out in the same release

@vdemeester
Copy link
Member

Oh waw, how did I miss that 😮‍💨 . @afrittoli I would consider this as a bug, as it is supposed to be implemented (it's just that this part of the validation was missing 😱 )

Well it matches the current docs https://github.com/tektoncd/pipeline/blob/main/docs/cluster-resolver.md... but I'm also ok to merge this and update the docs in a separate PR as long as they go out in the same release

oh waw I missed a lot of things 🤦🏼 my PR got merged too quickly 🎃 😓

@vdemeester
Copy link
Member

/retest

@AverageMarcus
Copy link
Contributor Author

I can update the docs too, give me a moment. :)

@AverageMarcus
Copy link
Contributor Author

I have updated the docs and I've also refactored the PR slightly to make the supported kinds more obvious so they can be easily updated in the future.

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/resolution/resolver/cluster/resolver.go 69.3% 80.3% 10.9

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage-df to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/resolution/resolver/cluster/resolver.go 69.3% 80.4% 11.1

@tekton-robot
Copy link
Collaborator

The following is the coverage report on the affected files.
Say /test pull-tekton-pipeline-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/resolution/resolver/cluster/resolver.go 69.3% 80.4% 11.1

Copy link
Member

@afrittoli afrittoli left a comment

Choose a reason for hiding this comment

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

Thank you!
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 11, 2024
@vdemeester
Copy link
Member

/retest

@tekton-robot tekton-robot merged commit 2204786 into tektoncd:main Nov 11, 2024
14 checks passed
@AverageMarcus AverageMarcus deleted the step-action-cluster-resolver branch November 11, 2024 19:01
@vdemeester
Copy link
Member

@afrittoli I think we should backport this to 0.65. The reason is that it appears in the changelog of v0.63.0 as a new feature supported, which… doesn't work (hence the initial kind/bug). How does that sound ?

@afrittoli
Copy link
Member

Sounds good to me, feel free to change the label back if you prefer. I thought the feature label would give it more prominence in the release notes, but we can highlight it as a bug fix too

@vdemeester
Copy link
Member

/kind bug
/cherry-pick release-v0.65.x

@tekton-robot tekton-robot added the kind/bug Categorizes issue or PR as related to a bug. label Nov 12, 2024
@tekton-robot
Copy link
Collaborator

@vdemeester: new pull request created: #8387

In response to this:

/kind bug
/cherry-pick release-v0.65.x

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.

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. kind/bug Categorizes issue or PR as related to a bug. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cluster Resolver doesn't correctly support StepActions
4 participants