console icon indicating copy to clipboard operation
console copied to clipboard

OCPBUGS-32631: TaskRuns should not be fetched for Failed PLR's

Open lokanandaprabhu opened this issue 9 months ago • 15 comments

Fixes: https://issues.redhat.com/browse/OCPBUGS-32631

Analysis / Root cause: TaskRuns were fetched for Failed PipelineRuns. Due to this many API calls were happening and performance becoming slow.

Solution Description: Not fetching TaskRuns for Failed PipelineRuns. Now TaskRuns status will be calculated from the message value in pipelinerun.status.conditions. Only on click of Failed status to see the logs TaskRuns are fetched for that PipelineRun

Screen shots / Gifs for design review:

https://github.com/openshift/console/assets/102503482/7fe90904-ff77-4fb4-8eaa-1631349fac2c

Unit test coverage report: NA

Test setup:

1.Create 1000 PipelineRuns using https://github.com/openshift-dev-console/loadtests and test different scenarios 


 

Browser conformance:

  • [x] Chrome
  • [ ] Firefox
  • [ ] Safari
  • [ ] Edge

lokanandaprabhu avatar Apr 30 '24 12:04 lokanandaprabhu

@lokanandaprabhu: This pull request references Jira Issue OCPBUGS-32631, 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-32631

Analysis / Root cause: TaskRuns were fetched for Failed PipelineRuns. Due to this many API calls were happening and performance becoming slow.

Solution Description: Not fetching TaskRuns for Failed PipelineRuns. Now TaskRuns status will be calculated from the message value in pipelinerun.status.conditions. Only on click of Failed status to see the logs TaskRuns are fetched for that PipelineRun

Screen shots / Gifs for design review:

https://github.com/openshift/console/assets/102503482/7fe90904-ff77-4fb4-8eaa-1631349fac2c

Unit test coverage report: NA

Test setup:

1.Create 1000 PipelineRuns using https://github.com/openshift-dev-console/loadtests and test different scenarios

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.

openshift-ci-robot avatar Apr 30 '24 12:04 openshift-ci-robot

/cc @jerolimov @karthikjeeyar @vikram-raj

lokanandaprabhu avatar Apr 30 '24 12:04 lokanandaprabhu

One issue I am facing now is for 1st few Failed PLR's log snippet is loading properly but if I scroll down and click on Failed status until I move my cursor I am not able to see the log snippet. If I move cursor little bit then everything is working

https://github.com/openshift/console/assets/102503482/ec960fe4-27a4-4eb1-83d9-67067c38882b

lokanandaprabhu avatar Apr 30 '24 12:04 lokanandaprabhu

Hi @jerolimov @vikram-raj @karthikjeeyar ,

I resolved the above issue. PTAL.

lokanandaprabhu avatar May 02 '24 08:05 lokanandaprabhu

/retest

vikram-raj avatar May 02 '24 13:05 vikram-raj

Hi @jerolimov ,

I have updated the PR based on review comments. PTAL.

lokanandaprabhu avatar May 03 '24 06:05 lokanandaprabhu

/retest

lokanandaprabhu avatar May 03 '24 07:05 lokanandaprabhu

/retest

lokanandaprabhu avatar May 03 '24 07:05 lokanandaprabhu

/retest

lokanandaprabhu avatar May 03 '24 10:05 lokanandaprabhu

/jira refresh

lokanandaprabhu avatar May 06 '24 04:05 lokanandaprabhu

@lokanandaprabhu: This pull request references Jira Issue OCPBUGS-32631, 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.

openshift-ci-robot avatar May 06 '24 04:05 openshift-ci-robot

/retest

lokanandaprabhu avatar May 06 '24 17:05 lokanandaprabhu

Hi @jerolimov / @vikram-raj / @karthikjeeyar ,

Can you PTAL into this. If things are fine I will add the changes to dynamic plugin as well. Thanks.

lokanandaprabhu avatar May 08 '24 10:05 lokanandaprabhu

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lokanandaprabhu, vikram-raj

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

openshift-ci[bot] avatar May 16 '24 12:05 openshift-ci[bot]

/label acknowledge-critical-fixes-only

vikram-raj avatar May 16 '24 14:05 vikram-raj

@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-sigs/prow repository. I understand the commands that are listed here.

openshift-ci[bot] avatar May 16 '24 19:05 openshift-ci[bot]

@lokanandaprabhu: Jira Issue OCPBUGS-32631: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-32631 has been moved to the MODIFIED state.

In response to this:

Fixes: https://issues.redhat.com/browse/OCPBUGS-32631

Analysis / Root cause: TaskRuns were fetched for Failed PipelineRuns. Due to this many API calls were happening and performance becoming slow.

Solution Description: Not fetching TaskRuns for Failed PipelineRuns. Now TaskRuns status will be calculated from the message value in pipelinerun.status.conditions. Only on click of Failed status to see the logs TaskRuns are fetched for that PipelineRun

Screen shots / Gifs for design review:

https://github.com/openshift/console/assets/102503482/7fe90904-ff77-4fb4-8eaa-1631349fac2c

Unit test coverage report: NA

Test setup:

1.Create 1000 PipelineRuns using https://github.com/openshift-dev-console/loadtests and test different scenarios

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.

openshift-ci-robot avatar May 16 '24 19:05 openshift-ci-robot

/cherry-pick release-4.15

lokanandaprabhu avatar May 17 '24 04:05 lokanandaprabhu

@lokanandaprabhu: new pull request created: #13863

In response to this:

/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-sigs/prow repository.

[ART PR BUILD NOTIFIER]

This PR has been included in build openshift-enterprise-console-container-v4.17.0-202405162013.p0.g58f2837.assembly.stream.el9 for distgit openshift-enterprise-console. All builds following this will include this PR.

openshift-bot avatar May 17 '24 05:05 openshift-bot

Fix included in accepted release 4.16.0-0.nightly-2024-05-17-180525

openshift-merge-robot avatar May 18 '24 00:05 openshift-merge-robot