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

Upgraded Remote Resolution Framework #7910

Merged
merged 1 commit into from
May 14, 2024

Conversation

chitrangpatel
Copy link
Contributor

@chitrangpatel chitrangpatel commented Apr 24, 2024

This PR implements an updated resolver framework with slight updates. This is to avoid backwards incompatibility while implementing TEP-0154.

The current framework works directly with Params. For example, the interface has ValidateParams and Resolve methods which take in Params as arguments. Now that we also need to pass in a URL, we need to add new methods and change function signatures which leads to API incompatibility with existing custom resolvers. As a result, when users upgrade to new version of Tekton Pipelines, they will be forced to implement new methods because of the interface changes.

This PR tries to make it future proof such that if we add new fields to the ResolutionRequestSpec, it will be handled without the need to break users.

Changes

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

Upgraded remote resolution framework.

/kind misc

@tekton-robot tekton-robot added kind/misc Categorizes issue or PR as a miscellaneuous one. 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. labels Apr 24, 2024
@chitrangpatel
Copy link
Contributor Author

/assign @wlynch

@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
internal/resolution/resource/crd_resource.go Do not exist 83.3%
internal/resolution/resource/name.go Do not exist 76.2%
internal/resolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 100.0%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 0.0%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 100.0%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 50.0%

@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
internal/resolution/resource/crd_resource.go Do not exist 83.3%
internal/resolution/resource/name.go Do not exist 76.2%
internal/resolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/internal/resolutionrequest.go 50.0% 0.0% -50.0
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 50.0%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 50.0%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 100.0%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 100.0%

@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
internal/remote/oci/resolver.go Do not exist 71.4%
internal/remote/resolution/error.go Do not exist 33.3%
internal/remote/resolution/request.go Do not exist 100.0%
internal/remote/resolution/resolver.go Do not exist 86.2%
internal/resolution/resource/crd_resource.go Do not exist 83.3%
internal/resolution/resource/name.go Do not exist 76.2%
internal/resolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/common/context.go Do not exist 92.9%
pkg/resolution/resolver/common/errors.go Do not exist 17.6%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 50.0%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 100.0%
pkg/resolution/resolver/internal/resolutionrequest.go Do not exist 25.0%

@tekton-robot tekton-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Apr 26, 2024
@chitrangpatel chitrangpatel requested a review from wlynch April 26, 2024 22:54
@tekton-robot tekton-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesnt merit a release note. labels Apr 26, 2024
@chitrangpatel chitrangpatel changed the title Remote Resolution Refactor Upgraded Remote Resolution Framework Apr 26, 2024
@JeromeJu JeromeJu self-assigned this Apr 29, 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/remote/v2/oci/resolver.go Do not exist 0.0%
pkg/remote/v2/resolution/error.go Do not exist 33.3%
pkg/remote/v2/resolution/request.go Do not exist 100.0%
pkg/remote/v2/resolution/resolver.go Do not exist 86.2%
pkg/resolution/v2/common/context.go Do not exist 0.0%
pkg/resolution/v2/common/errors.go Do not exist 5.9%
pkg/resolution/v2/resolver/bundle/bundle.go Do not exist 72.2%
pkg/resolution/v2/resolver/bundle/params.go Do not exist 92.0%
pkg/resolution/v2/resolver/bundle/resolver.go Do not exist 96.3%
pkg/resolution/v2/resolver/cluster/resolver.go Do not exist 83.5%
pkg/resolution/v2/resolver/framework/configstore.go Do not exist 47.8%
pkg/resolution/v2/resolver/framework/controller.go Do not exist 55.2%
pkg/resolution/v2/resolver/framework/fakeresolver.go Do not exist 92.1%
pkg/resolution/v2/resolver/framework/reconciler.go Do not exist 73.1%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 63.6%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 0.0%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 0.0%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 0.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 0.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/git/resolver.go Do not exist 85.3%
pkg/resolution/v2/resolver/http/resolver.go Do not exist 92.5%
pkg/resolution/v2/resolver/hub/resolver.go Do not exist 77.4%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 0.0%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 50.0%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 100.0%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 100.0%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 50.0%
pkg/resolution/v2/resource/crd_resource.go Do not exist 83.3%
pkg/resolution/v2/resource/name.go Do not exist 77.3%
pkg/resolution/v2/resource/request.go Do not exist 100.0%
test/resolution/resolution.go Do not exist 65.4%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 65.4%
test/resolution/resolution.go Do not exist 0.0%
test/resolution/v2/resolution.go Do not exist 34.6%
test/resolution/v2/resolution.go Do not exist 15.4%
test/resolution/v2/resolution.go Do not exist 0.0%

@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/remote/v2/oci/resolver.go Do not exist 0.0%
pkg/remote/v2/resolution/error.go Do not exist 33.3%
pkg/remote/v2/resolution/request.go Do not exist 100.0%
pkg/remote/v2/resolution/resolver.go Do not exist 86.2%
pkg/resolution/v2/common/context.go Do not exist 0.0%
pkg/resolution/v2/common/errors.go Do not exist 5.9%
pkg/resolution/v2/resolver/bundle/bundle.go Do not exist 72.2%
pkg/resolution/v2/resolver/bundle/params.go Do not exist 92.0%
pkg/resolution/v2/resolver/bundle/resolver.go Do not exist 96.3%
pkg/resolution/v2/resolver/cluster/resolver.go Do not exist 83.5%
pkg/resolution/v2/resolver/framework/configstore.go Do not exist 47.8%
pkg/resolution/v2/resolver/framework/controller.go Do not exist 55.2%
pkg/resolution/v2/resolver/framework/fakeresolver.go Do not exist 92.1%
pkg/resolution/v2/resolver/framework/reconciler.go Do not exist 73.1%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 63.6%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 0.0%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 0.0%
pkg/resolution/v2/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 0.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 0.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/framework/testing/featureflag.go Do not exist 50.0%
pkg/resolution/v2/resolver/git/resolver.go Do not exist 85.3%
pkg/resolution/v2/resolver/http/resolver.go Do not exist 92.5%
pkg/resolution/v2/resolver/hub/resolver.go Do not exist 77.4%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 100.0%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 50.0%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 100.0%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 50.0%
pkg/resolution/v2/resolver/internal/resolutionrequest.go Do not exist 0.0%
pkg/resolution/v2/resource/crd_resource.go Do not exist 83.3%
pkg/resolution/v2/resource/name.go Do not exist 77.3%
pkg/resolution/v2/resource/request.go Do not exist 100.0%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 65.4%
test/resolution/resolution.go Do not exist 65.4%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 0.0%
test/resolution/v2/resolution.go Do not exist 15.4%
test/resolution/v2/resolution.go Do not exist 34.6%
test/resolution/v2/resolution.go Do not exist 0.0%

@chitrangpatel chitrangpatel added this to the Pipeline v0.60 milestone Apr 29, 2024
@chitrangpatel
Copy link
Contributor Author

/assign @afrittoli if you have a chance, PTAL!

pkg/remote/v2/oci/resolver.go Outdated Show resolved Hide resolved
@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/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/resolution/resolver/bundle/resolver.go 96.3% 95.9% -0.4
pkg/resolution/resolver/cluster/resolver.go 83.3% 81.3% -2.0
pkg/resolution/resolver/framework/controller.go 55.2% 59.4% 4.2
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 91.5% -0.3
pkg/resolution/resolver/framework/testing/fakecontroller.go 65.5% 63.1% -2.3
pkg/resolution/resolver/framework/testing/fakecontroller.go Do not exist 0.0%
pkg/resolution/resolver/framework/testing/fakecontroller.go Do not exist 62.1%
pkg/resolution/resolver/framework/testing/fakecontroller.go Do not exist 0.0%
pkg/resolution/resolver/framework/testing/fakecontroller.go Do not exist 31.1%
pkg/resolution/resolver/framework/testing/fakecontroller.go Do not exist 64.1%
pkg/resolution/resolver/framework/testing/fakecontroller.go Do not exist 64.1%
pkg/resolution/resolver/git/resolver.go 85.2% 86.1% 0.9
pkg/resolution/resolver/http/resolver.go 92.4% 93.3% 1.0
pkg/resolution/resolver/hub/resolver.go 77.2% 78.3% 1.1
pkg/resolution/resource/crd_resource.go 83.3% 85.1% 1.7
test/resolution/resolution.go Do not exist 29.2%
test/resolution/resolution.go Do not exist 17.7%
test/resolution/resolution.go Do not exist 35.4%
test/resolution/resolution.go Do not exist 12.5%

@chitrangpatel chitrangpatel requested a review from wlynch May 1, 2024 18:45
@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
docs/resolver-template/cmd/resolver/main.go Do not exist 75.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/remote/resolution/resolver.go 86.2% 87.5% 1.3
pkg/remoteresolution/remote/resolution/request.go Do not exist 100.0%
pkg/remoteresolution/remote/resolution/resolver.go Do not exist 82.6%
pkg/remoteresolution/resolver/bundle/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/cluster/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/controller.go Do not exist 65.6%
pkg/remoteresolution/resolver/framework/fakeresolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/reconciler.go Do not exist 73.1%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 32.7%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 63.6%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/git/resolver.go Do not exist 92.3%
pkg/remoteresolution/resolver/http/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/hub/resolver.go Do not exist 50.0%
pkg/remoteresolution/resource/crd_resource.go Do not exist 94.7%
pkg/remoteresolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/bundle/resolver.go 96.3% 96.6% 0.3
pkg/resolution/resolver/framework/controller.go 55.2% 54.4% -0.8
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 92.5% 0.6
pkg/resolution/resolver/git/resolver.go 85.2% 85.3% 0.1
pkg/resolution/resolver/http/resolver.go 92.4% 92.5% 0.1
pkg/resolution/resolver/hub/resolver.go 77.2% 77.5% 0.3
pkg/resolution/resource/crd_resource.go 83.3% 84.4% 1.1
pkg/resolution/resource/name.go 76.2% 54.3% -21.9
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 16.7%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 0.0%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 0.0%

@tektoncd tektoncd deleted a comment from tekton-robot May 13, 2024
@tektoncd tektoncd deleted a comment from tekton-robot May 13, 2024
@tektoncd tektoncd deleted a comment from tekton-robot May 13, 2024
@tektoncd tektoncd deleted a comment from tekton-robot May 13, 2024
@tektoncd tektoncd deleted a comment from tekton-robot May 13, 2024
@tektoncd tektoncd deleted a comment from tekton-robot May 13, 2024
@tektoncd tektoncd deleted a comment from tekton-robot May 13, 2024
@tektoncd tektoncd deleted a comment from tekton-robot May 13, 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
docs/resolver-template/cmd/resolver/main.go Do not exist 75.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/remote/resolution/resolver.go 86.2% 87.5% 1.3
pkg/remoteresolution/remote/resolution/request.go Do not exist 100.0%
pkg/remoteresolution/remote/resolution/resolver.go Do not exist 82.6%
pkg/remoteresolution/resolver/bundle/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/cluster/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/controller.go Do not exist 65.6%
pkg/remoteresolution/resolver/framework/fakeresolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/reconciler.go Do not exist 73.1%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 31.8%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/git/resolver.go Do not exist 92.3%
pkg/remoteresolution/resolver/http/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/hub/resolver.go Do not exist 50.0%
pkg/remoteresolution/resource/crd_resource.go Do not exist 94.7%
pkg/remoteresolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/bundle/resolver.go 96.3% 96.6% 0.3
pkg/resolution/resolver/framework/controller.go 55.2% 54.4% -0.8
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 92.5% 0.6
pkg/resolution/resolver/git/resolver.go 85.2% 85.3% 0.1
pkg/resolution/resolver/http/resolver.go 92.4% 92.5% 0.1
pkg/resolution/resolver/hub/resolver.go 77.2% 77.5% 0.3
pkg/resolution/resource/crd_resource.go 83.3% 84.4% 1.1
pkg/resolution/resource/name.go 76.2% 54.3% -21.9
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 16.7%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 0.0%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 0.0%

@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
docs/resolver-template/cmd/resolver/main.go Do not exist 75.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/remote/resolution/resolver.go 86.2% 87.5% 1.3
pkg/remoteresolution/remote/resolution/request.go Do not exist 100.0%
pkg/remoteresolution/remote/resolution/resolver.go Do not exist 82.6%
pkg/remoteresolution/resolver/bundle/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/cluster/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/controller.go Do not exist 65.6%
pkg/remoteresolution/resolver/framework/fakeresolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/reconciler.go Do not exist 73.1%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 31.8%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/git/resolver.go Do not exist 92.3%
pkg/remoteresolution/resolver/http/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/hub/resolver.go Do not exist 50.0%
pkg/remoteresolution/resource/crd_resource.go Do not exist 94.7%
pkg/remoteresolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/bundle/resolver.go 96.3% 96.6% 0.3
pkg/resolution/resolver/framework/controller.go 55.2% 54.4% -0.8
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 92.5% 0.6
pkg/resolution/resolver/git/resolver.go 85.2% 85.3% 0.1
pkg/resolution/resolver/http/resolver.go 92.4% 92.5% 0.1
pkg/resolution/resolver/hub/resolver.go 77.2% 77.5% 0.3
pkg/resolution/resource/crd_resource.go 83.3% 84.4% 1.1
pkg/resolution/resource/name.go 76.2% 54.3% -21.9
test/remoteresolution/resolution.go Do not exist 16.7%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 0.0%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 0.0%

@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
docs/resolver-template/cmd/resolver/main.go Do not exist 75.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/remote/resolution/resolver.go 86.2% 87.5% 1.3
pkg/remoteresolution/remote/resolution/request.go Do not exist 100.0%
pkg/remoteresolution/remote/resolution/resolver.go Do not exist 82.6%
pkg/remoteresolution/resolver/bundle/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/cluster/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/controller.go Do not exist 65.6%
pkg/remoteresolution/resolver/framework/fakeresolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/reconciler.go Do not exist 73.1%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 31.8%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/git/resolver.go Do not exist 92.3%
pkg/remoteresolution/resolver/http/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/hub/resolver.go Do not exist 50.0%
pkg/remoteresolution/resource/crd_resource.go Do not exist 94.7%
pkg/remoteresolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/bundle/resolver.go 96.3% 96.6% 0.3
pkg/resolution/resolver/framework/controller.go 55.2% 54.4% -0.8
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 92.5% 0.6
pkg/resolution/resolver/git/resolver.go 85.2% 85.3% 0.1
pkg/resolution/resolver/http/resolver.go 92.4% 92.5% 0.1
pkg/resolution/resolver/hub/resolver.go 77.2% 77.5% 0.3
pkg/resolution/resource/crd_resource.go 83.3% 84.4% 1.1
pkg/resolution/resource/name.go 76.2% 54.3% -21.9
test/remoteresolution/resolution.go Do not exist 16.7%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 0.0%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 0.0%

@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
docs/resolver-template/cmd/resolver/main.go Do not exist 75.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/remote/resolution/resolver.go 86.2% 87.5% 1.3
pkg/remoteresolution/remote/resolution/request.go Do not exist 100.0%
pkg/remoteresolution/remote/resolution/resolver.go Do not exist 82.6%
pkg/remoteresolution/resolver/bundle/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/cluster/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/controller.go Do not exist 65.6%
pkg/remoteresolution/resolver/framework/fakeresolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/reconciler.go Do not exist 73.1%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 31.8%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/git/resolver.go Do not exist 92.3%
pkg/remoteresolution/resolver/http/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/hub/resolver.go Do not exist 50.0%
pkg/remoteresolution/resource/crd_resource.go Do not exist 94.7%
pkg/remoteresolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/bundle/resolver.go 96.3% 96.6% 0.3
pkg/resolution/resolver/framework/controller.go 55.2% 54.4% -0.8
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 92.5% 0.6
pkg/resolution/resolver/git/resolver.go 85.2% 85.3% 0.1
pkg/resolution/resolver/http/resolver.go 92.4% 92.5% 0.1
pkg/resolution/resolver/hub/resolver.go 77.2% 77.5% 0.3
pkg/resolution/resource/crd_resource.go 83.3% 84.4% 1.1
pkg/resolution/resource/name.go 76.2% 54.3% -21.9
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 16.7%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 0.0%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 0.0%

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 @chitrangpatel - only a few comments

docs/how-to-write-a-resolver.md Outdated Show resolved Hide resolved
docs/how-to-write-a-resolver.md Show resolved Hide resolved
pkg/remoteresolution/doc.go Outdated Show resolved Hide resolved
docs/resolver-template/cmd/resolver/main.go Outdated Show resolved Hide resolved
pkg/remoteresolution/resolver/framework/fakeresolver.go Outdated Show resolved Hide resolved
pkg/resolution/resource/name.go Show resolved Hide resolved
@chitrangpatel chitrangpatel force-pushed the resolver-refactor branch 2 times, most recently from 4c1e478 to 0a88237 Compare May 14, 2024 17:20
This PR implements an updated resolver framework with slight updates. This is to avoid backwards incompatibility while implementing [TEP-0154](tektoncd/community#1138).

The current framework only works with Params. e.g. The interface has ValidateParams and Resolve which takes in Params. Now that we also need to pass in a `URL`, we need to add new methods and change function signatures which leads to API incompatibility with existing custom resolvers. As a result, when users upgrade to new version of Tekton Pipelines, they will be forced to be compatible with the new format because of the interface changes.

This PR tries to make it future proof such that if we add new fields to the ResolutionSpec, it will be handled without the need to break users.
@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
docs/resolver-template/cmd/resolver/main.go Do not exist 75.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/remote/resolution/resolver.go 86.2% 87.5% 1.3
pkg/remoteresolution/remote/resolution/request.go Do not exist 100.0%
pkg/remoteresolution/remote/resolution/resolver.go Do not exist 82.6%
pkg/remoteresolution/resolver/bundle/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/cluster/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/controller.go Do not exist 65.6%
pkg/remoteresolution/resolver/framework/fakeresolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/reconciler.go Do not exist 73.1%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 63.6%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 32.7%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/git/resolver.go Do not exist 92.3%
pkg/remoteresolution/resolver/http/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/hub/resolver.go Do not exist 50.0%
pkg/remoteresolution/resource/crd_resource.go Do not exist 94.7%
pkg/remoteresolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/bundle/resolver.go 96.3% 96.6% 0.3
pkg/resolution/resolver/framework/controller.go 55.2% 54.4% -0.8
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 92.5% 0.6
pkg/resolution/resolver/git/resolver.go 85.2% 85.3% 0.1
pkg/resolution/resolver/http/resolver.go 92.4% 92.5% 0.1
pkg/resolution/resolver/hub/resolver.go 77.2% 77.5% 0.3
pkg/resolution/resource/crd_resource.go 83.3% 84.4% 1.1
pkg/resolution/resource/name.go 76.2% 55.3% -20.9
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 16.7%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 0.0%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 0.0%

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 @chitrangpatel - looks good!
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label May 14, 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
docs/resolver-template/cmd/resolver/main.go Do not exist 75.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/remote/resolution/resolver.go 86.2% 87.5% 1.3
pkg/remoteresolution/remote/resolution/request.go Do not exist 100.0%
pkg/remoteresolution/remote/resolution/resolver.go Do not exist 82.6%
pkg/remoteresolution/resolver/bundle/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/cluster/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/controller.go Do not exist 65.6%
pkg/remoteresolution/resolver/framework/fakeresolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/reconciler.go Do not exist 73.1%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 63.6%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 32.7%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/git/resolver.go Do not exist 92.3%
pkg/remoteresolution/resolver/http/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/hub/resolver.go Do not exist 50.0%
pkg/remoteresolution/resource/crd_resource.go Do not exist 94.7%
pkg/remoteresolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/bundle/resolver.go 96.3% 96.6% 0.3
pkg/resolution/resolver/framework/controller.go 55.2% 54.4% -0.8
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 92.5% 0.6
pkg/resolution/resolver/git/resolver.go 85.2% 85.3% 0.1
pkg/resolution/resolver/http/resolver.go 92.4% 92.5% 0.1
pkg/resolution/resolver/hub/resolver.go 77.2% 77.5% 0.3
pkg/resolution/resource/crd_resource.go 83.3% 84.4% 1.1
pkg/resolution/resource/name.go 76.2% 55.3% -20.9
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 16.7%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 0.0%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 0.0%

@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
docs/resolver-template/cmd/resolver/main.go Do not exist 75.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/remote/resolution/resolver.go 86.2% 87.5% 1.3
pkg/remoteresolution/remote/resolution/request.go Do not exist 100.0%
pkg/remoteresolution/remote/resolution/resolver.go Do not exist 82.6%
pkg/remoteresolution/resolver/bundle/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/cluster/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/controller.go Do not exist 65.6%
pkg/remoteresolution/resolver/framework/fakeresolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/reconciler.go Do not exist 73.1%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 63.6%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 32.7%
pkg/remoteresolution/resolver/git/resolver.go Do not exist 92.3%
pkg/remoteresolution/resolver/http/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/hub/resolver.go Do not exist 50.0%
pkg/remoteresolution/resource/crd_resource.go Do not exist 94.7%
pkg/remoteresolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/bundle/resolver.go 96.3% 96.6% 0.3
pkg/resolution/resolver/framework/controller.go 55.2% 54.4% -0.8
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 92.5% 0.6
pkg/resolution/resolver/git/resolver.go 85.2% 85.3% 0.1
pkg/resolution/resolver/http/resolver.go 92.4% 92.5% 0.1
pkg/resolution/resolver/hub/resolver.go 77.2% 77.5% 0.3
pkg/resolution/resource/crd_resource.go 83.3% 84.4% 1.1
pkg/resolution/resource/name.go 76.2% 55.3% -20.9
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 16.7%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 0.0%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 0.0%

@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
docs/resolver-template/cmd/resolver/main.go Do not exist 75.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 100.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 50.0%
pkg/internal/resolution/resolutionrequest.go Do not exist 0.0%
pkg/reconciler/pipelinerun/resources/pipelineref.go 93.5% 93.6% 0.1
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.3% 0.1
pkg/remote/resolution/resolver.go 86.2% 87.5% 1.3
pkg/remoteresolution/remote/resolution/request.go Do not exist 100.0%
pkg/remoteresolution/remote/resolution/resolver.go Do not exist 82.6%
pkg/remoteresolution/resolver/bundle/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/cluster/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/controller.go Do not exist 65.6%
pkg/remoteresolution/resolver/framework/fakeresolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/framework/reconciler.go Do not exist 73.1%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 32.7%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 63.6%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 58.2%
pkg/remoteresolution/resolver/framework/testing/fakecontroller.go Do not exist 65.5%
pkg/remoteresolution/resolver/git/resolver.go Do not exist 92.3%
pkg/remoteresolution/resolver/http/resolver.go Do not exist 100.0%
pkg/remoteresolution/resolver/hub/resolver.go Do not exist 50.0%
pkg/remoteresolution/resource/crd_resource.go Do not exist 94.7%
pkg/remoteresolution/resource/request.go Do not exist 100.0%
pkg/resolution/resolver/bundle/resolver.go 96.3% 96.6% 0.3
pkg/resolution/resolver/framework/controller.go 55.2% 54.4% -0.8
pkg/resolution/resolver/framework/fakeresolver.go 91.9% 92.5% 0.6
pkg/resolution/resolver/git/resolver.go 85.2% 85.3% 0.1
pkg/resolution/resolver/http/resolver.go 92.4% 92.5% 0.1
pkg/resolution/resolver/hub/resolver.go 77.2% 77.5% 0.3
pkg/resolution/resource/crd_resource.go 83.3% 84.4% 1.1
pkg/resolution/resource/name.go 76.2% 55.3% -20.9
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 16.7%
test/remoteresolution/resolution.go Do not exist 70.8%
test/remoteresolution/resolution.go Do not exist 0.0%
test/resolution/resolution.go Do not exist 15.4%
test/resolution/resolution.go Do not exist 34.6%
test/resolution/resolution.go Do not exist 0.0%

@tekton-robot tekton-robot merged commit ea1fa7a into tektoncd:main May 14, 2024
13 checks passed
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/misc Categorizes issue or PR as a miscellaneuous one. 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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants