Skip to content

feat: add PipelineRun support to storage/gcs#971

Merged
tekton-robot merged 1 commit into
tektoncd:mainfrom
aaron-prindle:fix-852-v3
Oct 27, 2023
Merged

feat: add PipelineRun support to storage/gcs#971
tekton-robot merged 1 commit into
tektoncd:mainfrom
aaron-prindle:fix-852-v3

Conversation

@aaron-prindle

@aaron-prindle aaron-prindle commented Oct 26, 2023

Copy link
Copy Markdown
Contributor

fixes #852

Prior to this commit the storage/gcs client didn't support PipelineRuns, only TaskRuns which is not in parity with our other storage interfaces. This PR adds PipelineRuns support to storage/gcs.

//nolint:staticcheck used similar to elsewhere in code as otherwise golangci-lint reports usage of deprecated v1beta1 APIs, snippet below:

  Error: SA1019: v1beta1.TaskRun is deprecated: Please use v1.TaskRun instead.  (staticcheck)
  Error: SA1019: v1beta1.PipelineRun is deprecated: Please use v1.PipelineRun instead.  (staticcheck)
  ...

NOTE: This is my first tektoncd/chains PR. If I misunderstood anything about the issue, changes necessary, best practices, etc. I'm happy to iterate as needed. Thanks!

@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Oct 26, 2023
@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/chains/storage/gcs/gcs.go 67.7% 69.5% 1.8

@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/chains/storage/gcs/gcs.go 67.7% 69.5% 1.8

@aaron-prindle aaron-prindle force-pushed the fix-852-v3 branch 3 times, most recently from 6a6f1f5 to 466c073 Compare October 26, 2023 23:57
@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/chains/storage/gcs/gcs.go 67.7% 69.5% 1.8

@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/chains/storage/gcs/gcs.go 67.7% 69.5% 1.8

@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/chains/storage/gcs/gcs.go 67.7% 69.5% 1.8

@lcarva lcarva 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 some minor comments, but overall this looks good!

Comment thread pkg/chains/storage/gcs/gcs.go Outdated
Comment thread pkg/chains/storage/gcs/gcs.go Outdated
Prior to this commit the storage/gcs client didn't support PipelineRuns, only TaskRuns which is not in parity with our other storage interfaces.  This PR adds PipelineRuns support to storage/gcs.
@aaron-prindle

Copy link
Copy Markdown
Contributor Author

Thanks for the review @lcarva! I believe I have addressed all of the feeback mentioned, lmk if there is anything additional to do here.

@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/chains/storage/gcs/gcs.go 67.7% 70.1% 2.4

@lcarva lcarva 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.

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Oct 27, 2023
@tekton-robot

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lcarva

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 Oct 27, 2023
@tekton-robot tekton-robot merged commit f7f30c4 into tektoncd:main Oct 27, 2023
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. 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.

storage/gcs: PipelineRun support

3 participants