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

[TEP074] Remove Storage, Git and Generic PipelineResources #6150

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

JeromeJu
Copy link
Member

@JeromeJu JeromeJu commented Feb 12, 2023

This is going to be the last PR for PipelineResources removal.

Changes

This commit removes the Git, Storage and Generic PipelineResources:

  • removes the Storage resources support at pkg/apis/resource/v1alpha1/storage API
  • removes the Git resources support at pkg/apis/resource/v1alpha1/git API
  • removes the generic logics for input and output resources
  • removes the pkg/artifacts API
  • their corresponding unit test cases, examples and integration tests
  • renames:
    • ResolvedTaskResources Struct renamed to ResolvedTask
    • pkg/reconciler/taskrun/validate_resources.go to pkg/reconciler/taskrun/validate_taskrun.go
    • pkg/reconciler/taskrun/resources/taskresourceresolution.go to pkg/reconciler/taskrun/resources/taskresolution.go

Reasons why removing Git, Storage Resources andpkg/artifacts together:


  • The coverage loss is expected since the pipelineResources is removed.

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

action required: please migrate off of `git` and `storage` `pipelineresources` as they are removed, please refer to the doc at https://github.com/tektoncd/pipeline/blob/main/docs/pipelineresources.md#replacing-an-git-resource  https://github.com/tektoncd/pipeline/blob/main/docs/pipelineresources.md#replacing-an-storage-resource

installing this release on a cluster with tasks and pipelines that use pipeline resources may break them

pipelineresources are removed in this release

@tekton-robot
Copy link
Collaborator

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@tekton-robot tekton-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesnt merit a release note. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. kind/misc Categorizes issue or PR as a miscellaneuous one. labels Feb 12, 2023
@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/resource/v1alpha1/pipelineresource_validation.go 88.0% 75.0% -13.0
pkg/reconciler/pipelinerun/pipelinerun.go 87.2% 86.9% -0.3
pkg/reconciler/pipelinerun/resources/input_output_steps.go 96.9% 80.0% -16.9
pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go 94.9% 94.6% -0.3
pkg/reconciler/taskrun/resources/input_resources.go 90.9% 8.6% -82.3
pkg/reconciler/taskrun/resources/output_resource.go 89.1% 75.9% -13.3
pkg/reconciler/taskrun/resources/taskresourceresolution.go 100.0% 94.7% -5.3
pkg/reconciler/taskrun/taskrun.go 84.5% 83.8% -0.7
pkg/reconciler/taskrun/validate_resources.go 98.5% 97.8% -0.7
test/controller.go 29.1% 27.8% -1.3

@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/apis/resource/v1alpha1/pipelineresource_validation.go 88.0% 75.0% -13.0
pkg/reconciler/pipelinerun/pipelinerun.go 87.2% 86.9% -0.3
pkg/reconciler/pipelinerun/resources/input_output_steps.go 96.9% 80.0% -16.9
pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go 94.9% 94.6% -0.3
pkg/reconciler/taskrun/resources/input_resources.go 90.9% 8.6% -82.3
pkg/reconciler/taskrun/resources/output_resource.go 89.1% 75.9% -13.3
pkg/reconciler/taskrun/resources/taskresourceresolution.go 100.0% 94.7% -5.3
pkg/reconciler/taskrun/taskrun.go 84.5% 83.8% -0.7
pkg/reconciler/taskrun/validate_resources.go 98.5% 97.8% -0.7
test/controller.go 29.1% 27.8% -1.3

@JeromeJu JeromeJu changed the title Rm storage git resources [TEP074] Remove Storage and Git PipelineResources Feb 13, 2023
@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/apis/resource/v1alpha1/pipelineresource_validation.go 88.0% 75.0% -13.0
pkg/reconciler/pipelinerun/pipelinerun.go 87.2% 86.9% -0.3
pkg/reconciler/pipelinerun/resources/input_output_steps.go 96.9% 80.0% -16.9
pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go 94.9% 94.6% -0.3
pkg/reconciler/taskrun/resources/output_resource.go 89.1% 72.7% -16.4
pkg/reconciler/taskrun/resources/taskresourceresolution.go 100.0% 94.7% -5.3
pkg/reconciler/taskrun/taskrun.go 84.5% 84.1% -0.4
pkg/reconciler/taskrun/validate_resources.go 98.5% 98.2% -0.4
test/controller.go 29.1% 27.8% -1.3

@tekton-robot tekton-robot added release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. and removed release-note-none Denotes a PR that doesnt merit a release note. labels Feb 13, 2023
@JeromeJu JeromeJu marked this pull request as ready for review February 13, 2023 13:36
@tekton-robot tekton-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Feb 13, 2023
@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/resource/v1alpha1/pipelineresource_validation.go 88.0% 75.0% -13.0
pkg/reconciler/pipelinerun/pipelinerun.go 87.2% 86.9% -0.3
pkg/reconciler/pipelinerun/resources/input_output_steps.go 96.9% 80.0% -16.9
pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go 94.9% 94.6% -0.3
pkg/reconciler/taskrun/resources/output_resource.go 89.1% 72.7% -16.4
pkg/reconciler/taskrun/resources/taskresourceresolution.go 100.0% 94.7% -5.3
pkg/reconciler/taskrun/taskrun.go 84.5% 84.1% -0.4
pkg/reconciler/taskrun/validate_resources.go 98.5% 98.2% -0.4
test/controller.go 29.1% 27.8% -1.3

@JeromeJu JeromeJu force-pushed the rm-storage-git-resources branch 2 times, most recently from a3e8f86 to 4d876da Compare February 13, 2023 16:10
@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/apis/resource/v1alpha1/pipelineresource_validation.go 88.0% 72.7% -15.3
pkg/reconciler/pipelinerun/pipelinerun.go 87.2% 86.9% -0.3
pkg/reconciler/pipelinerun/resources/input_output_steps.go 96.9% 80.0% -16.9
pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go 94.9% 94.7% -0.3
pkg/reconciler/taskrun/resources/output_resource.go 89.1% 72.7% -16.4
pkg/reconciler/taskrun/resources/taskresourceresolution.go 100.0% 89.5% -10.5
pkg/reconciler/taskrun/taskrun.go 84.5% 84.1% -0.4
pkg/reconciler/taskrun/validate_resources.go 98.5% 98.2% -0.4
test/controller.go 29.1% 27.8% -1.3

@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/resource/v1alpha1/pipelineresource_validation.go 88.0% 72.7% -15.3
pkg/reconciler/pipelinerun/pipelinerun.go 87.2% 86.9% -0.3
pkg/reconciler/pipelinerun/resources/input_output_steps.go 96.9% 80.0% -16.9
pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go 94.9% 94.7% -0.3
pkg/reconciler/taskrun/resources/output_resource.go 89.1% 72.7% -16.4
pkg/reconciler/taskrun/resources/taskresourceresolution.go 100.0% 94.7% -5.3
pkg/reconciler/taskrun/taskrun.go 84.5% 84.1% -0.4
pkg/reconciler/taskrun/validate_resources.go 98.5% 98.2% -0.4
test/controller.go 29.1% 27.8% -1.3

@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/apis/resource/v1alpha1/pipelineresource_validation.go 88.0% 72.7% -15.3
pkg/reconciler/pipelinerun/pipelinerun.go 87.2% 86.9% -0.3
pkg/reconciler/pipelinerun/resources/input_output_steps.go 96.9% 80.0% -16.9
pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go 94.9% 94.7% -0.3
pkg/reconciler/taskrun/resources/output_resource.go 89.1% 72.7% -16.4
pkg/reconciler/taskrun/resources/taskresourceresolution.go 100.0% 94.7% -5.3
pkg/reconciler/taskrun/taskrun.go 84.5% 84.1% -0.4
pkg/reconciler/taskrun/validate_resources.go 98.5% 98.2% -0.4
test/controller.go 29.1% 27.8% -1.3

Copy link
Member

@chitrangpatel chitrangpatel left a comment

Choose a reason for hiding this comment

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

Thanks for doing this!! This is a lot of removal. It must have been extremely tedious.

@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/apis/pipeline/v1beta1/pipeline_conversion.go 94.8% 96.1% 1.3
pkg/apis/pipeline/v1beta1/pipeline_types.go 96.5% 96.3% -0.2
pkg/apis/pipeline/v1beta1/pipeline_validation.go 99.3% 99.0% -0.2
pkg/apis/pipeline/v1beta1/pipelinerun_conversion.go 95.7% 96.8% 1.1
pkg/apis/pipeline/v1beta1/resource_types.go 86.0% 80.0% -6.0
pkg/apis/pipeline/v1beta1/task_conversion.go 94.4% 97.4% 2.9
pkg/apis/pipeline/v1beta1/task_validation.go 97.1% 96.9% -0.1
pkg/apis/pipeline/v1beta1/taskrun_conversion.go 92.3% 93.1% 0.8
pkg/apis/pipeline/v1beta1/taskrun_validation.go 97.8% 97.7% -0.0
pkg/reconciler/pipelinerun/pipelinerun.go 87.4% 88.3% 0.9
pkg/reconciler/pipelinerun/resources/pipelinerunresolution.go 94.8% 96.0% 1.1
pkg/reconciler/taskrun/controller.go 95.2% 95.0% -0.2
pkg/reconciler/taskrun/resources/apply.go 99.3% 99.2% -0.1
pkg/reconciler/taskrun/taskrun.go 84.8% 84.9% 0.1
pkg/reconciler/taskrun/validate_taskrun.go Do not exist 97.8%
test/controller.go 29.1% 28.9% -0.2

@JeromeJu
Copy link
Member Author

JeromeJu commented Mar 7, 2023

/retest

@dibyom
Copy link
Member

dibyom commented Mar 7, 2023

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 7, 2023
@tekton-robot tekton-robot merged commit 81876e6 into tektoncd:main Mar 7, 2023
Yongxuanzhang added a commit to Yongxuanzhang/pipeline that referenced this pull request Mar 15, 2023
CRD pipelineresources has been removed in tektoncd#6150. We should also remove
it from delete_pipeline_resources.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
tekton-robot pushed a commit that referenced this pull request Mar 15, 2023
CRD pipelineresources has been removed in #6150. We should also remove
it from delete_pipeline_resources.

Signed-off-by: Yongxuan Zhang yongxuanzhang@google.com
@lbernick lbernick mentioned this pull request Mar 21, 2023
4 tasks
@wlynch
Copy link
Member

wlynch commented Mar 23, 2023

Heads up, I think this may be a similar problematic change as #6206 where we're removing both the functionality and API client types in the same change.

Can we consider reverting API fields back to tombstones at least for the v1beta1 client? 🙏

@lbernick
Copy link
Member

Heads up, I think this may be a similar problematic change as #6206 where we're removing both the functionality and API client types in the same change.

Can we consider reverting API fields back to tombstones at least for the v1beta1 client? 🙏

There may have been some discussion around this already but I'm having trouble finding it (#6150 (comment) is the closest thing I'm seeing). I think this is reasonable; happy to open a PR

pritidesai added a commit to pritidesai/pipeline that referenced this pull request Jul 5, 2023
Config-artifact-pvc was introduce in
https://github.com/tektoncd/pipeline/pull/866/files

which was deleted in
tektoncd#6150

These two resources are assumed to be used and needed by the storage pipeline
resources which are gone now.

These must be no longer needed and safe to clean up.

Signed-off-by: Priti Desai <pdesai@us.ibm.com>
@pritidesai pritidesai mentioned this pull request Jul 5, 2023
7 tasks
tekton-robot pushed a commit that referenced this pull request Jul 6, 2023
Config-artifact-pvc was introduce in
https://github.com/tektoncd/pipeline/pull/866/files

which was deleted in
#6150

These two resources are assumed to be used and needed by the storage pipeline
resources which are gone now.

These must be no longer needed and safe to clean up.

Signed-off-by: Priti Desai <pdesai@us.ibm.com>
AlanGreene added a commit to AlanGreene/plumbing that referenced this pull request Feb 15, 2024
Robocat is stuck on Pipelines `v20230307-771fb665f2` due to an error
in the nightly deploy TaskRun.

See for example from the most recent run:
```
2024-02-15T03:01:00.091452354Z + kubectl apply --kubeconfig /workspace/targetCluster/kubeconfig -k pipeline/overlays/robocat
2024-02-15T03:01:02.736006696Z error: no matches for Id ~G_v1_ConfigMap|tekton-pipelines|config-artifact-bucket; failed to find unique target for patch ~G_v1_ConfigMap|config-artifact-bucket
```

The referenced ConfigMap was removed from Pipelines in tektoncd/pipeline#6150 which was merged on March 7th.

Remove the file from the overlay as it's no longer used.
tekton-robot pushed a commit to tektoncd/plumbing that referenced this pull request Feb 18, 2024
Robocat is stuck on Pipelines `v20230307-771fb665f2` due to an error
in the nightly deploy TaskRun.

See for example from the most recent run:
```
2024-02-15T03:01:00.091452354Z + kubectl apply --kubeconfig /workspace/targetCluster/kubeconfig -k pipeline/overlays/robocat
2024-02-15T03:01:02.736006696Z error: no matches for Id ~G_v1_ConfigMap|tekton-pipelines|config-artifact-bucket; failed to find unique target for patch ~G_v1_ConfigMap|config-artifact-bucket
```

The referenced ConfigMap was removed from Pipelines in tektoncd/pipeline#6150 which was merged on March 7th.

Remove the file from the overlay as it's no longer used.
briangleeson added a commit to briangleeson/dashboard that referenced this pull request Jul 18, 2024
The link to example files was broken, as those files were removed in:
tektoncd/pipeline#6150
Update the link to match the example that is now being used:
https://github.com/tektoncd/dashboard/blob/main/docs/tutorial
briangleeson added a commit to briangleeson/dashboard that referenced this pull request Jul 18, 2024
The link to example files was broken, as those files were removed in:
tektoncd/pipeline#6150
Update the link to match the example that is now being used:
https://github.com/tektoncd/dashboard/blob/main/docs/tutorial
Also update the example images
tekton-robot pushed a commit to tektoncd/dashboard that referenced this pull request Jul 18, 2024
The link to example files was broken, as those files were removed in:
tektoncd/pipeline#6150
Update the link to match the example that is now being used:
https://github.com/tektoncd/dashboard/blob/main/docs/tutorial
Also update the example images
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note-action-required Denotes a PR that introduces potentially breaking changes that require user action. 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.

None yet

10 participants