pipeline icon indicating copy to clipboard operation
pipeline copied to clipboard

TEP-0111 - Propagating workspaces

Open chitrangpatel opened this issue 3 years ago • 30 comments

The verbosity of writing specifications in Tekton Pipelines is a common pain point that creates difficulties in getting-started scenarios. In addition, the verbosity leads to long specifications that are error-prone, harder to maintain, and reach the etcd size limits for CRDs. Automatically propagating Workspaces will lead to better user experience. This addresses features proposed in TEP-0111.

Changes

Submitter Checklist

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

  • [x] Docs included if any changes are user facing
  • [x] Tests included if any functionality added or changed
  • [x] Follows the commit message standard
  • [x] Meets the Tekton contributor standards (including functionality, content, code)
  • [x] Release notes block below has been filled in (if there are no user facing changes, use release note "NONE")

Release Notes

Workspaces are propagated in embedded specifications without mutations.

chitrangpatel avatar Jul 05 '22 18:07 chitrangpatel

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/pipelinerun.go 86.2% 84.7% -1.5
pkg/reconciler/taskrun/taskrun.go 80.9% 80.9% -0.0
pkg/workspace/apply.go 100.0% 98.8% -1.2
pkg/workspace/validate.go 100.0% 96.3% -3.7

tekton-robot avatar Jul 05 '22 18:07 tekton-robot

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/pipelinerun.go 86.2% 84.7% -1.5
pkg/reconciler/taskrun/taskrun.go 80.9% 80.9% -0.0
pkg/workspace/apply.go 100.0% 98.8% -1.2
pkg/workspace/validate.go 100.0% 96.3% -3.7

tekton-robot avatar Jul 05 '22 19:07 tekton-robot

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/pipelinerun.go 86.2% 84.7% -1.5
pkg/reconciler/taskrun/taskrun.go 80.9% 80.9% -0.0
pkg/workspace/apply.go 100.0% 98.8% -1.2
pkg/workspace/validate.go 100.0% 96.3% -3.7

tekton-robot avatar Jul 11 '22 16:07 tekton-robot

/retest

chitrangpatel avatar Jul 11 '22 16:07 chitrangpatel

/kind feature

jerop avatar Jul 11 '22 20:07 jerop

/retest

jerop avatar Jul 11 '22 20:07 jerop

/retest

jerop avatar Jul 12 '22 12:07 jerop

/test check-pr-has-kind-label

chitrangpatel avatar Jul 12 '22 14:07 chitrangpatel

@chitrangpatel: 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
  • /test pull-tekton-pipeline-kind-alpha-integration-tests
  • /test pull-tekton-pipeline-kind-alpha-yaml-tests
  • /test pull-tekton-pipeline-kind-integration-tests
  • /test pull-tekton-pipeline-kind-yaml-tests

Use /test all to run the following jobs that were automatically triggered:

  • pull-tekton-pipeline-alpha-integration-tests
  • pull-tekton-pipeline-build-tests
  • pull-tekton-pipeline-go-coverage
  • pull-tekton-pipeline-integration-tests
  • pull-tekton-pipeline-unit-tests

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.

tekton-robot avatar Jul 12 '22 14:07 tekton-robot

/kind feature

chitrangpatel avatar Jul 12 '22 18:07 chitrangpatel

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/pipelinerun.go 86.2% 84.7% -1.5
pkg/reconciler/taskrun/taskrun.go 80.9% 80.9% -0.0
pkg/workspace/apply.go 100.0% 98.8% -1.2
pkg/workspace/validate.go 100.0% 96.3% -3.7

tekton-robot avatar Jul 12 '22 18:07 tekton-robot

/retest

chitrangpatel avatar Jul 12 '22 18:07 chitrangpatel

/assign @dibyom

jerop avatar Jul 12 '22 18:07 jerop

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/pipelinerun.go 86.3% 84.8% -1.5
pkg/reconciler/taskrun/taskrun.go 80.9% 80.9% -0.0

tekton-robot avatar Jul 13 '22 18:07 tekton-robot

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/pipelinerun.go 86.3% 84.8% -1.5
pkg/reconciler/taskrun/taskrun.go 80.9% 80.9% -0.0

tekton-robot avatar Jul 13 '22 18:07 tekton-robot

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/pipelinerun.go 86.3% 85.4% -0.9
pkg/reconciler/taskrun/taskrun.go 80.9% 80.9% -0.0

tekton-robot avatar Jul 13 '22 19:07 tekton-robot

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/pipelinerun.go 86.3% 86.2% -0.1
pkg/reconciler/taskrun/taskrun.go 80.9% 80.9% -0.0

tekton-robot avatar Jul 13 '22 19:07 tekton-robot

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/pipelinerun.go 86.3% 86.6% 0.2
pkg/reconciler/taskrun/taskrun.go 80.9% 80.9% -0.0

tekton-robot avatar Jul 13 '22 19:07 tekton-robot

/retest

chitrangpatel avatar Jul 13 '22 19:07 chitrangpatel

@jerop I increased the coverage. Feel free to review this now.

chitrangpatel avatar Jul 13 '22 19:07 chitrangpatel

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/pipelinerun.go 85.8% 86.1% 0.2
pkg/reconciler/taskrun/taskrun.go 80.3% 80.3% -0.0

tekton-robot avatar Jul 18 '22 19:07 tekton-robot

/retest

chitrangpatel avatar Jul 18 '22 19:07 chitrangpatel

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/pipelinerun.go 85.8% 86.1% 0.2
pkg/reconciler/taskrun/taskrun.go 80.3% 80.3% -0.0

tekton-robot avatar Jul 19 '22 17:07 tekton-robot

/retest

chitrangpatel avatar Jul 19 '22 18:07 chitrangpatel

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/pipelinerun.go 85.8% 86.1% 0.2
pkg/reconciler/taskrun/taskrun.go 80.3% 80.3% -0.0

tekton-robot avatar Jul 19 '22 18:07 tekton-robot

/hold Don't want to skip validation.

chitrangpatel avatar Jul 19 '22 20:07 chitrangpatel

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/pipelinerun.go 85.8% 86.1% 0.2
pkg/reconciler/taskrun/taskrun.go 80.3% 80.3% -0.0

tekton-robot avatar Jul 21 '22 18:07 tekton-robot

/retest

chitrangpatel avatar Jul 21 '22 19:07 chitrangpatel

/hold cancel

chitrangpatel avatar Aug 23 '22 19:08 chitrangpatel

@jerop This is ready for review again. @dibyom please take a look again as there were a few changes (I incorporated your suggestions as best as I could) after bug fixes related to propagating parameters.

chitrangpatel avatar Aug 23 '22 19:08 chitrangpatel