Skip to content

added multi-backend support#302

Merged
tekton-robot merged 1 commit into
tektoncd:mainfrom
pxp928:multi-backend
Dec 10, 2021
Merged

added multi-backend support#302
tekton-robot merged 1 commit into
tektoncd:mainfrom
pxp928:multi-backend

Conversation

@pxp928

@pxp928 pxp928 commented Dec 7, 2021

Copy link
Copy Markdown
Member

Changes made to allow for multiple backend to be selected. If none are selected, that artifact is disabled. Work in progress. Tests need to be altered or rewritten based on how the solution is implemented. Continuation of PR #297

Issue #279 and #288

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 7, 2021
@tekton-robot

Copy link
Copy Markdown

Hi @pxp928. 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.

Details

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.

@tekton-robot tekton-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Dec 7, 2021
@pxp928 pxp928 force-pushed the multi-backend branch 2 times, most recently from a1af567 to 644d2fe Compare December 7, 2021 20:08
@tekton-robot tekton-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Dec 7, 2021
@priyawadhwa

Copy link
Copy Markdown
Contributor

/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 Dec 7, 2021
@tekton-robot

Copy link
Copy Markdown

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

File Old Coverage New Coverage Delta
pkg/artifacts/signable.go 69.4% 67.6% -1.9
pkg/chains/signing.go 79.2% 79.6% 0.4
pkg/chains/storage/storage.go 33.3% 45.5% 12.1
pkg/config/config.go 88.6% 90.0% 1.4

@tekton-robot

Copy link
Copy Markdown

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

File Old Coverage New Coverage Delta
pkg/artifacts/signable.go 69.4% 67.6% -1.9
pkg/chains/signing.go 79.2% 79.6% 0.4
pkg/chains/storage/storage.go 33.3% 45.5% 12.1
pkg/config/config.go 88.6% 90.0% 1.4

@tekton-robot

Copy link
Copy Markdown

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

File Old Coverage New Coverage Delta
pkg/artifacts/signable.go 69.4% 67.6% -1.9
pkg/chains/signing.go 79.2% 79.6% 0.4
pkg/chains/storage/storage.go 33.3% 45.5% 12.1
pkg/config/config.go 88.6% 90.0% 1.4

@priyawadhwa priyawadhwa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a few nits! Would you mind adding an integration test to check for mulitple backends as well?

You could copy TestOCIStorage but also include tekton as a backend and verify both!

func TestOCIStorage(t *testing.T) {

Comment thread pkg/chains/signing.go Outdated
Comment thread pkg/config/config.go Outdated
Comment thread pkg/config/config.go Outdated
Comment thread pkg/config/config.go Outdated
@tekton-robot tekton-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 8, 2021
@pxp928

pxp928 commented Dec 8, 2021

Copy link
Copy Markdown
Member Author

Just a few nits! Would you mind adding an integration test to check for mulitple backends as well?

You could copy TestOCIStorage but also include tekton as a backend and verify both!

func TestOCIStorage(t *testing.T) {

Added new integration test with OCI and tekton backend storage.

@tekton-robot

Copy link
Copy Markdown

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

File Old Coverage New Coverage Delta
pkg/artifacts/signable.go 69.4% 67.6% -1.9
pkg/chains/signing.go 79.2% 78.8% -0.4
pkg/chains/storage/storage.go 33.3% 45.5% 12.1
pkg/config/config.go 88.6% 89.8% 1.2

@pxp928 pxp928 requested a review from priyawadhwa December 8, 2021 18:42
@tekton-robot

Copy link
Copy Markdown

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

File Old Coverage New Coverage Delta
pkg/artifacts/signable.go 69.4% 67.6% -1.9
pkg/chains/signing.go 79.2% 78.8% -0.4
pkg/chains/storage/storage.go 33.3% 45.5% 12.1
pkg/config/config.go 88.6% 89.8% 1.2

@priyawadhwa priyawadhwa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this looks great! thanks @pxp928 for adding this awesome new feature 🎉

Comment thread pkg/chains/verifier.go

for _, signableType := range enabledSignableTypes {

if !signableType.Enabled(cfg) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cc @rgreinho just an fyi since you've been working on this code!

@tekton-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: priyawadhwa

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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 Dec 10, 2021
@priyawadhwa

Copy link
Copy Markdown
Contributor

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Dec 10, 2021
@tekton-robot tekton-robot merged commit ddf7daf into tektoncd:main Dec 10, 2021
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

3 participants