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 combined remote resolvers binary #5391

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

abayer
Copy link
Contributor

@abayer abayer commented Aug 29, 2022

Changes

Part of #4710

/kind feature

Submitter Checklist

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

  • Has Docs included if any changes are user facing
  • Has Tests included if any functionality added or changed
  • 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)
  • Release notes contains the string "action required" if the change requires additional action from users switching to the new release

Release Notes

NONE

@abayer abayer added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 29, 2022
@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Aug 29, 2022
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 29, 2022
@abayer
Copy link
Contributor Author

abayer commented Aug 29, 2022

/assign @vdemeester @lbernick @jerop @dibyom

@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/apis/config/feature_flags.go 81.8% 79.7% -2.2
pkg/resolution/resolver/bundle/resolver.go 25.0% 50.0% 25.0
pkg/resolution/resolver/framework/configstore.go 30.0% 26.1% -3.9
pkg/resolution/resolver/git/resolver.go 84.1% 85.9% 1.8
pkg/resolution/resolver/hub/resolver.go 65.0% 70.8% 5.8

@abayer
Copy link
Contributor Author

abayer commented Aug 29, 2022

/retest

1 similar comment
@abayer
Copy link
Contributor Author

abayer commented Aug 29, 2022

/retest

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.

Few comments

  • Any reason for not making the bundle resolver disabled (even though it would be enabled by default) ? I think one of the main reason for resolvers is to be able to selectively decide which resolvers are enable and which are not (https://github.com/tektoncd/community/blob/main/teps/0060-remote-resource-resolution.md)
  • Naive question : any reason to go for several feature-flags instead of one called enable-resolvers: [] that would take a list of resolvers ? It might be harder to document and validate maybe, but it could be nice as well.

@abayer
Copy link
Contributor Author

abayer commented Aug 30, 2022

It's got a feature flag - it's just reusing the existing enable-tekton-oci-bundles one rather than getting a new one.

  • Naive question : any reason to go for several feature-flags instead of one called enable-resolvers: [] that would take a list of resolvers ? It might be harder to document and validate maybe, but it could be nice as well.

Good question. I'd lean towards enable-foo-resolver flags rather than a list - not as ergonomic, maybe, but much simpler for users since they don't need to know the exact name of the resolver, they just need to change a flag from false to true. But I'm persuadable. =)

@abayer
Copy link
Contributor Author

abayer commented Aug 30, 2022

/test check-pr-has-kind-label

@tekton-robot
Copy link
Collaborator

@abayer: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

  • /test pull-tekton-pipeline-alpha-integration-tests
  • /test pull-tekton-pipeline-build-tests
  • /test pull-tekton-pipeline-integration-tests
  • /test tekton-pipeline-unit-tests

The following commands are available to trigger optional jobs:

  • /test pull-tekton-pipeline-go-coverage

Use /test all to run all jobs.

In response to this:

/test check-pr-has-kind-label

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

It's got a feature flag - it's just reusing the existing enable-tekton-oci-bundles one rather than getting a new one.

  • Naive question : any reason to go for several feature-flags instead of one called enable-resolvers: [] that would take a list of resolvers ? It might be harder to document and validate maybe, but it could be nice as well.

Good question. I'd lean towards enable-foo-resolver flags rather than a list - not as ergonomic, maybe, but much simpler for users since they don't need to know the exact name of the resolver, they just need to change a flag from false to true. But I'm persuadable. =)

Fair enough 🙃 then I would lean to add enable-bundle-resolver as enable-tekton-oci-bundles will be deprecated 👼🏼 Just to be more consistent.

Code LGTM 👼🏼
/approve

@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 Aug 30, 2022
@lbernick
Copy link
Member

thanks Andrew! would you mind updating the commit message to say that the hub resolver, git resolver, and bundle resolver are being added, and some detail on the feature flags being used? happy to LGTM once vincent's comment is resolved

@abayer abayer force-pushed the resolution-resolvers-binary branch from 1140aaa to 5b0457a Compare August 30, 2022 14:02
@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/apis/config/feature_flags.go 81.8% 79.7% -2.2
pkg/resolution/resolver/bundle/resolver.go 25.0% 50.0% 25.0
pkg/resolution/resolver/framework/configstore.go 30.0% 26.1% -3.9
pkg/resolution/resolver/git/resolver.go 84.1% 85.9% 1.8
pkg/resolution/resolver/hub/resolver.go 65.0% 70.8% 5.8

@abayer abayer force-pushed the resolution-resolvers-binary branch from 5b0457a to 297012f Compare August 30, 2022 14:09
@abayer
Copy link
Contributor Author

abayer commented Aug 30, 2022

@lbernick Done!

@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/apis/config/feature_flags.go 81.8% 79.0% -2.8
pkg/resolution/resolver/bundle/resolver.go 25.0% 50.0% 25.0
pkg/resolution/resolver/framework/configstore.go 30.0% 26.1% -3.9
pkg/resolution/resolver/git/resolver.go 84.1% 85.9% 1.8
pkg/resolution/resolver/hub/resolver.go 65.0% 70.8% 5.8

@lbernick
Copy link
Member

hmm @abayer I thought you fixed the cloud events flake? it's back 😢

@abayer
Copy link
Contributor Author

abayer commented Aug 30, 2022

/retest

@lbernick It's actually a different flake in the same test. =) The previous ones were duplicate events, this is a more general events-related flake timing out waiting for all the events to be delivered. It popped up sometimes before the duplicate event fix, and I've seen it show up on TestSendKubernetesEvents too. It's less frequent than the duplicate events flakes we used to see on cloud events, at least...

@lbernick
Copy link
Member

ah ok sg-- also it looks like your commit message refers to enable-tekton-oci-bundles instead of enable-bundle-resolver

@abayer
Copy link
Contributor Author

abayer commented Aug 30, 2022

ah ok sg-- also it looks like your commit message refers to enable-tekton-oci-bundles instead of enable-bundle-resolver

Whoops, fixing - enable-tekton-oci-bundles will still work, but yeah, the docs etc should reference enable-bundle-resolver.

Part of tektoncd#4710

This adds the `hub`, `git`, and `bundles` resolvers. The individual resolvers can be enabled via the `enable-hub-resolver`, `enable-git-resolver`, and `enable-bundles-resolver` feature flags.

Signed-off-by: Andrew Bayer <andrew.bayer@gmail.com>
@abayer abayer force-pushed the resolution-resolvers-binary branch from 297012f to b53e0d8 Compare August 30, 2022 14:53
@abayer
Copy link
Contributor Author

abayer commented Aug 30, 2022

@lbernick Fixed, and switched to enable-bundles-resolver since bundles is the resolver value for the resolver, so might as well be consistent.

@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/apis/config/feature_flags.go 81.8% 79.0% -2.8
pkg/resolution/resolver/bundle/resolver.go 25.0% 50.0% 25.0
pkg/resolution/resolver/framework/configstore.go 30.0% 26.1% -3.9
pkg/resolution/resolver/git/resolver.go 84.1% 85.9% 1.8
pkg/resolution/resolver/hub/resolver.go 65.0% 70.8% 5.8

@abayer
Copy link
Contributor Author

abayer commented Aug 30, 2022

/retest

@lbernick
Copy link
Member

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 30, 2022
@tekton-robot tekton-robot merged commit 9d9aa9d into tektoncd:main Aug 30, 2022
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/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. 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.

6 participants