tektoncd / pipeline

A cloud-native Pipeline resource.
https://tekton.dev
Apache License 2.0
8.35k stars 1.76k forks source link

[release-v0.59.x] Cleanup resolved object before validating through dry-run #8063

Closed vdemeester closed 1 week ago

vdemeester commented 2 weeks ago

Changes

Cherry picked fro #8051

This ensure that we are not going to fail during validation with dry-run. An example of such a failure would be the following scenario.

/kind bug

Signed-off-by: Vincent Demeester vdemeest@redhat.com

Submitter Checklist

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

Release Notes

Cleanup resolved object before attempting to validate it through api dry-run call
vdemeester commented 2 weeks ago

/retest

vdemeester commented 2 weeks ago

/retest

vdemeester commented 2 weeks ago

/test pull-tekton-pipeline-go-coverage-df

tekton-robot commented 2 weeks ago

@vdemeester: The specified target(s) for /test were not found. The following commands are available to trigger required jobs:

The following commands are available to trigger optional jobs:

Use /test all to run all jobs.

In response to [this](https://github.com/tektoncd/pipeline/pull/8063#issuecomment-2175591749): >/test pull-tekton-pipeline-go-coverage-df Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
tekton-robot commented 2 weeks ago

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 94.3% 93.8% -0.6
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.4% 0.2
vdemeester commented 2 weeks ago

/retest

vdemeester commented 2 weeks ago

/test pull-tekton-pipeline-go-coverage

tekton-robot commented 2 weeks ago

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 94.3% 93.8% -0.6
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.4% 0.2
tekton-robot commented 2 weeks ago

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/reconciler/pipelinerun/resources/pipelineref.go 94.3% 93.8% -0.6
pkg/reconciler/taskrun/resources/taskref.go 94.2% 94.4% 0.2
chitrangpatel commented 2 weeks ago

/retest

chitrangpatel commented 2 weeks ago

/retest

chitrangpatel commented 1 week ago

/approve /lgtm

tekton-robot commented 1 week ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: chitrangpatel

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

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/tektoncd/pipeline/blob/release-v0.59.x/OWNERS)~~ [chitrangpatel] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment