console icon indicating copy to clipboard operation
console copied to clipboard

Bug 2096374: Improve SLA stability by not fetching the subscription twice at the same time

Open christoph-jerolimov opened this issue 2 years ago • 17 comments

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2096374

Analysis / Root cause: SLA was fetched two times at the same time. This might confuse our e2e tests. The UI is flickering.

Solution Description: Fetch subscription only when useGetServiceLevel was called from useShowServiceLevelNotifications. useShowServiceLevelNotifications was used in the ConnectedNotificationDrawer, which was always rendered in app.jsx.

So it is not needed to call the API again from the components ServiceLevelNotification and ServiceLevelText.

Screenrecording:

SLA API calls before:

https://user-images.githubusercontent.com/139310/175275581-2de30d67-08ce-4175-8c2b-4a9784cceeb8.mp4

SLA API calls with this PR:

https://user-images.githubusercontent.com/139310/175298429-a605416f-ec56-4a46-b143-dc51ac5915e5.mp4

Hmmm, got a 403, but that's not related to this error. Does PR based clusters doesn't have a valid SLA? :thinking:

Unit test coverage report: Untouched

Test setup:

  1. Open the network inspector and filter for api/accounts_mgmt
  2. Reload the console
  3. Check that the information from the SLA are still displayed correctly

Browser conformance:

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

christoph-jerolimov avatar Jun 14 '22 07:06 christoph-jerolimov

@jerolimov: GitHub didn't allow me to request PR reviews from the following users: yet.

Note that only openshift members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc none yet

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.

openshift-ci[bot] avatar Jun 14 '22 07:06 openshift-ci[bot]

/retest

christoph-jerolimov avatar Jun 14 '22 10:06 christoph-jerolimov

/test e2e-gcp-console

christoph-jerolimov avatar Jun 14 '22 10:06 christoph-jerolimov

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jerolimov

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 Jun 14 '22 23:06 openshift-ci[bot]

/retest

christoph-jerolimov avatar Jun 15 '22 05:06 christoph-jerolimov

/test e2e-gcp-console

christoph-jerolimov avatar Jun 15 '22 09:06 christoph-jerolimov

@jerolimov: This pull request references Bugzilla bug 2096374, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state ASSIGNED, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

Bug 2096374: Improve SLA test stability by not fetching subscription two times (at the same time)

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.

openshift-ci[bot] avatar Jun 23 '22 07:06 openshift-ci[bot]

@jerolimov: This pull request references Bugzilla bug 2096374, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

Bug 2096374: Improve SLA test stability by not fetching subscription two times (at the same time)

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.

openshift-ci[bot] avatar Jun 23 '22 07:06 openshift-ci[bot]

@jerolimov: This pull request references Bugzilla bug 2096374, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

Bug 2096374: Improve SLA test stability by not fetching subscription two times (at the same time)

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.

openshift-ci[bot] avatar Jun 23 '22 09:06 openshift-ci[bot]

/retest

christoph-jerolimov avatar Jun 23 '22 10:06 christoph-jerolimov

/retest /cc @jhadvig @invincibleJai @vikram-raj

christoph-jerolimov avatar Jun 23 '22 10:06 christoph-jerolimov

@jerolimov: An error was encountered querying GitHub for users with public email ([email protected]) for bug 2096374 on the Bugzilla server at https://bugzilla.redhat.com. No known errors were detected, please see the full error message for details.

Full error message. Post "http://ghproxy/graphql": net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)

Please contact an administrator to resolve this issue, then request a bug refresh with /bugzilla refresh.

In response to this:

Bug 2096374: Improve SLA test stability by not fetching subscription two times (at the same time)

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.

openshift-ci[bot] avatar Jun 23 '22 10:06 openshift-ci[bot]

@jerolimov: This pull request references Bugzilla bug 2096374, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

Bug 2096374: Improve SLA test stability by not fetching subscription two times (at the same time)

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.

openshift-ci[bot] avatar Jun 23 '22 10:06 openshift-ci[bot]

/test e2e-gcp-console

vikram-raj avatar Jun 23 '22 12:06 vikram-raj

@jerolimov: This pull request references Bugzilla bug 2096374, which is valid.

3 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.11.0) matches configured target release for branch (4.11.0)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)

Requesting review from QA contact: /cc @yapei

In response to this:

Bug 2096374: Improve SLA test stability by not fetching subscription two times (at the same time)

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.

openshift-ci[bot] avatar Jun 23 '22 12:06 openshift-ci[bot]

/retest

christoph-jerolimov avatar Jun 23 '22 19:06 christoph-jerolimov

/retest

invincibleJai avatar Sep 02 '22 07:09 invincibleJai

@jerolimov: 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.

openshift-ci[bot] avatar Sep 06 '22 12:09 openshift-ci[bot]

@jerolimov: 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.

openshift-ci[bot] avatar Nov 25 '22 13:11 openshift-ci[bot]