console
console copied to clipboard
OCPBUGS-23480: Improve PipelineRun list view performance
Fixes: https://issues.redhat.com/browse/OCPBUGS-30575
Analysis / Root cause: PipelineRun list view contains Task status column, which shows the overall task status of the pipelinerurn. Inorder to render this column we fetch all the tasksruns of that pipelinerun. Every pipelinerun row will have to have all the related TaskRuns information, which is causing performance issue in the pipelinerun list view.
Solution Description:
Fetching TaskRuns only for Failed and Cancelled PipelineRuns. Now TaskRuns status will be calculated from the message value in pipelinerun.status.conditions:
lastTransitionTime: '2023-11-15T07:51:42Z'
message: 'Tasks Completed: 3 (Failed: 0, Cancelled 0), Skipped: 0'
reason: Succeeded
status: 'True'
type: Succeeded
Screen shots / Gifs for design review:
NA
Unit test coverage report:
✓ should expect getPipelineRunStatus to return taskruns status object with 1 Succeeded, 1 Failed and 1 Skipped for Cancelled status
✓ should expect getPipelineRunStatus to return taskruns status object with 2 Succeeded for Succeeded status (1ms)
✓ should expect getPipelineRunStatus to return taskruns status object with 1 Failed for Failed status
✓ should expect getPipelineRunStatus to return taskruns status object all 0 values for cancelled status
Test setup:
- Create few pipelineruns
- Navigate to pipelineruns list view
Browser conformance:
- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
@lokanandaprabhu: This pull request references Jira Issue OCPBUGS-23480, which is invalid:
- expected the bug to target the "4.16.0" version, but no target version was set
Comment /jira refresh to re-evaluate validity if changes to the Jira bug are made, or edit the title of this pull request to link to a different bug.
The bug has been updated to refer to the pull request using the external bug tracker.
In response to this:
Fixes: https://issues.redhat.com/browse/OCPBUGS-30575
Analysis / Root cause: PipelineRun list view contains Task status column, which shows the overall task status of the pipelinerurn. Inorder to render this column we fetch all the tasksruns of that pipelinerun. Every pipelinerun row will have to have all the related TaskRuns information, which is causing performance issue in the pipelinerun list view.
Solution Description: Fetching TaskRuns only for Failed and Cancelled PipelineRuns. Now TaskRuns status will be calculated from the message value in
pipelinerun.status.conditions:lastTransitionTime: '2023-11-15T07:51:42Z' message: 'Tasks Completed: 3 (Failed: 0, Cancelled 0), Skipped: 0' reason: Succeeded status: 'True' type: SucceededScreen shots / Gifs for design review:
NA
Unit test coverage report:
✓ should expect getPipelineRunStatus to return taskruns status object with 1 Succeeded, 1 Failed and 1 Skipped for Cancelled status ✓ should expect getPipelineRunStatus to return taskruns status object with 2 Succeeded for Succeeded status (1ms) ✓ should expect getPipelineRunStatus to return taskruns status object with 1 Failed for Failed status ✓ should expect getPipelineRunStatus to return taskruns status object all 0 values for cancelled statusTest setup:
- Create few pipelineruns
- Navigate to pipelineruns list view
Browser conformance:
- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
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 openshift-eng/jira-lifecycle-plugin repository.
/cc @vikram-raj @karthikjeeyar
/retest
/jira refresh
@vikram-raj: This pull request references Jira Issue OCPBUGS-23480, which is valid. The bug has been moved to the POST state.
3 validation(s) were run on this bug
- bug is open, matching expected state (open)
- bug target version (4.16.0) matches configured target version for branch (4.16.0)
- bug is in the state New, which is one of the valid states (NEW, ASSIGNED, POST)
Requesting review from QA contact: /cc @sanketpathak
In response to this:
/jira refresh
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 openshift-eng/jira-lifecycle-plugin repository.
/retest
/label acknowledge-critical-fixes-only /cherry-pick release-4.15
@jerolimov: once the present PR merges, I will cherry-pick it on top of release-4.15 in a new PR and assign it to you.
In response to this:
/label acknowledge-critical-fixes-only /cherry-pick release-4.15
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.
Updated the PR. PTAL.
/retest
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: karthikjeeyar, lokanandaprabhu
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~frontend/packages/pipelines-plugin/OWNERS~~ [karthikjeeyar]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
/retest-required
Remaining retests: 0 against base HEAD e1aad9ec529b102f525017ee3015ef07c84ef238 and 2 for PR HEAD 0c2c957026714033dc5243de1efcd86e9bc55af1 in total
/retest
/retest
/retest
/retest-required
Remaining retests: 0 against base HEAD 73b0dd380e619a65018ad00d76776d190cce3fb3 and 1 for PR HEAD 0c2c957026714033dc5243de1efcd86e9bc55af1 in total
/retest
/retest
@lokanandaprabhu: all tests passed!
Full PR test history. Your PR dashboard.
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. I understand the commands that are listed here.
@lokanandaprabhu: Jira Issue OCPBUGS-23480: All pull requests linked via external trackers have merged:
Jira Issue OCPBUGS-23480 has been moved to the MODIFIED state.
In response to this:
Fixes: https://issues.redhat.com/browse/OCPBUGS-30575
Analysis / Root cause: PipelineRun list view contains Task status column, which shows the overall task status of the pipelinerurn. Inorder to render this column we fetch all the tasksruns of that pipelinerun. Every pipelinerun row will have to have all the related TaskRuns information, which is causing performance issue in the pipelinerun list view.
Solution Description: Fetching TaskRuns only for Failed and Cancelled PipelineRuns. Now TaskRuns status will be calculated from the message value in
pipelinerun.status.conditions:lastTransitionTime: '2023-11-15T07:51:42Z' message: 'Tasks Completed: 3 (Failed: 0, Cancelled 0), Skipped: 0' reason: Succeeded status: 'True' type: SucceededScreen shots / Gifs for design review:
NA
Unit test coverage report:
✓ should expect getPipelineRunStatus to return taskruns status object with 1 Succeeded, 1 Failed and 1 Skipped for Cancelled status ✓ should expect getPipelineRunStatus to return taskruns status object with 2 Succeeded for Succeeded status (1ms) ✓ should expect getPipelineRunStatus to return taskruns status object with 1 Failed for Failed status ✓ should expect getPipelineRunStatus to return taskruns status object all 0 values for cancelled statusTest setup:
- Create few pipelineruns
- Navigate to pipelineruns list view
Browser conformance:
- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
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 openshift-eng/jira-lifecycle-plugin repository.
@jerolimov: new pull request created: #13731
In response to this:
/label acknowledge-critical-fixes-only /cherry-pick release-4.15
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.
[ART PR BUILD NOTIFIER]
This PR has been included in build openshift-enterprise-console-container-v4.16.0-202404050447.p0.gb39c4f3.assembly.stream.el9 for distgit openshift-enterprise-console. All builds following this will include this PR.
Fix included in accepted release 4.16.0-0.nightly-2024-04-05-200353