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

Don't modify the lister cache's copy. #4180

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

mattmoor
Copy link
Member

/kind bug

Fixes: #4179

Submitter Checklist

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

  • Docs included if any changes are user facing
  • Tests included if any functionality added or changed
  • Follows the commit message standard
  • Meets the Tekton contributor standards (including
    functionality, content, code)
  • Release notes block below has been filled in or deleted (only if no user facing changes)

Release Notes

NONE

@tekton-robot tekton-robot added release-note-none Denotes a PR that doesnt merit a release note. kind/bug Categorizes issue or PR as related to a bug. labels Aug 22, 2021
@tekton-robot tekton-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 22, 2021
@mattmoor
Copy link
Member Author

I'm not thrilled at the idea of discarding the error here either, but I figured it was worth leaving that alone for this change...

@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/reconciler/pipelinerun/pipelinerun.go 82.7% 82.8% 0.0

@mattmoor
Copy link
Member Author

Ok, if I'm being really honest, I'm not a fan of any aspect of how the pipeline is handling retries by messing with another controller's resource's status to recycle it instead of just creating new taskruns 😂

Copy link
Member

@imjasonh imjasonh left a comment

Choose a reason for hiding this comment

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

I'd love some more systematic way to avoid this fwiw, identifying and fixing these by hand isn't going to scale. 🤔

@tekton-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: imjasonh

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:

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 Aug 22, 2021
@mattmoor
Copy link
Member Author

@imjasonh There is one! 😉 The knative table testing framework checks for this, which I think has effectively eliminated this from our controllers, but Tekton never adopted that because it landed around/after the split 😞

It'd be a pretty big undertaking, which I probably can't sign up for, but I'd be happy to consult, and I'm sure the Knative folks would be willing to field questions, since most of Knative is using it.

@mattmoor
Copy link
Member Author

@ghost
Copy link

ghost commented Aug 23, 2021

/lgtm

@tekton-robot tekton-robot assigned ghost Aug 23, 2021
@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 23, 2021
@tekton-robot tekton-robot merged commit 49d721b into tektoncd:main Aug 23, 2021
@mattmoor mattmoor deleted the copy-lister-copy branch August 23, 2021 15:05
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/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PipelineRun controller mutates the TaskRun lister cache
3 participants