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

Improve Test Coverage on Metrics for TaskRun and PipelineRun Reconcilers #5875

Closed
2 tasks
XinruZhang opened this issue Dec 15, 2022 · 4 comments
Closed
2 tasks
Labels
area/metrics Issues related to metrics lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@XinruZhang
Copy link
Member

XinruZhang commented Dec 15, 2022

Context

Today, we record the duration, count the number of finished TaskRuns/PipelineRuns:

However, we don't have tests in place to ensure the metrics recording captures the correct number. Because of that, we had to solely rely on the understanding of the code itself to debug related issues (#4454, #5866) and made modifications accordingly which is time consuming and not appropriate in long term.

TODO

  • Unit Test: to ensure metrics behavior in each reconcile loop work
  • Integration Test: submit a TaskRun/PipelineRun that may succeed, or fail on different reasons, ensure the metrics captured the number after the TaskRun/PipelineRun isDone().

Thanks @afrittoli for capturing the TODOs in #5853 (review)
Thanks @JeromeJu for capturing that the issue also exists in #5853 (comment)

@XinruZhang XinruZhang changed the title Improve Test Coverage on Metrics Improve Test Coverage on Metrics for Reconcilers Dec 15, 2022
@XinruZhang XinruZhang changed the title Improve Test Coverage on Metrics for Reconcilers Improve Test Coverage on Metrics for TaskRun and PipelineRun Reconcilers Dec 15, 2022
@tekton-robot
Copy link
Collaborator

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale with a justification.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle stale

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 15, 2023
@lbernick lbernick added the area/metrics Issues related to metrics label Mar 16, 2023
@tekton-robot
Copy link
Collaborator

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/lifecycle rotten

Send feedback to tektoncd/plumbing.

@tekton-robot tekton-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Apr 15, 2023
@tekton-robot
Copy link
Collaborator

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

@tekton-robot
Copy link
Collaborator

@tekton-robot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen with a justification.
Mark the issue as fresh with /remove-lifecycle rotten with a justification.
If this issue should be exempted, mark the issue as frozen with /lifecycle frozen with a justification.

/close

Send feedback to tektoncd/plumbing.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/metrics Issues related to metrics lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
Status: Done
Development

No branches or pull requests

3 participants