Bug 1901618 - Monitoring: Alerts.Monitoring: Alerts "after all" hook for "creates and expires a Silence"
Summary: Monitoring: Alerts.Monitoring: Alerts "after all" hook for "creates and expir...
Keywords:
Status: CLOSED DUPLICATE of bug 1897252
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Monitoring
Version: 4.7
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Sergiusz Urbaniak
QA Contact: Junqi Zhao
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-25 16:32 UTC by Lokesh Mandvekar
Modified: 2020-11-26 13:56 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Monitoring: Alerts.Monitoring: Alerts "after all" hook for "creates and expires a Silence"
Last Closed: 2020-11-25 16:39:11 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1901594 0 unspecified CLOSED Kubernetes resource CRUD operations.Kubernetes resource CRUD operations Pod "before all" hook for "creates the resource ... 2021-02-24 15:36:19 UTC

Description Lokesh Mandvekar 2020-11-25 16:32:27 UTC
test:
Monitoring: Alerts.Monitoring: Alerts "after all" hook for "creates and expires a Silence" 

is failing frequently in CI, see search results:
https://search.ci.openshift.org/?maxAge=168h&context=1&type=bug%2Bjunit&name=&maxMatches=5&maxBytes=20971520&groupBy=job&search=Monitoring%3A+Alerts%5C.Monitoring%3A+Alerts+%22after+all%22+hook+for+%22creates+and+expires+a+Silence%22


https://prow.ci.openshift.org/view/gs/origin-ci-test/logs/release-openshift-ocp-installer-console-aws-4.7/1331565108702220288


The test failure logs seem to mention other test names that failed, for example: Bug 1901594, so I suspect this bug is dependent on other test failures.

"before all" hook for "successfully displays view for route: /": Visiting other routes "before all" hook for "successfully displays view for route: /" expand_less 	0s
AssertionError: Timed out retrying: Expected to find element: `[data-test-id="login"]`, but never found it.

Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Visiting other routes`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at Context.eval (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/tests?p=tests/crud/other-routes.spec.ts:12999:32)
"before all" hook for "displays and filters the Alerts list page, links to detail pages": Monitoring: Alerts "before all" hook for "displays and filters the Alerts list page, links to detail pages" expand_less 	0s
AssertionError: Timed out retrying: Expected to find element: `[data-test="item-create"]`, but never found it.

Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Monitoring: Alerts`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at Context.eval (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/tests?p=tests/monitoring/monitoring.spec.ts:2251:8)
"after all" hook for "creates and expires a Silence": Monitoring: Alerts "after all" hook for "creates and expires a Silence" expand_less 	0s
AssertionError: Timed out retrying: Expected to find element: `[data-test-id="actions-menu-button"]`, but never found it.

Because this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `Monitoring: Alerts`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at Context.eval (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/tests?p=tests/monitoring/monitoring.spec.ts:2255:57)
"before all" hook for "creates the resource instance": Kubernetes resource CRUD operations Pod "before all" hook for "creates the resource instance" expand_less 	0s
AssertionError: Timed out retrying: Expected to find element: `[data-test="item-create"]`, but never found it.

Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Kubernetes resource CRUD op...`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at Context.eval (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/tests?p=tests/crud/k8-openshift-cruds.spec.ts:37304:8)
"after all" hook for "deletes the resource instance": Kubernetes resource CRUD operations user.openshift.io~v1~Group "after all" hook for "deletes the resource instance" expand_less 	0s
AssertionError: Timed out retrying: Expected to find element: `[data-test-id="actions-menu-button"]`, but never found it.

Because this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `Kubernetes resource CRUD op...`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at Context.eval (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/tests?p=tests/crud/k8-openshift-cruds.spec.ts:37308:57)
"before all" hook for "lists, creates, and deletes": Namespace "before all" hook for "lists, creates, and deletes" expand_less 	0s
AssertionError: Timed out retrying: Expected to find element: `[data-test-id="login"]`, but never found it.

Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Namespace`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at Context.eval (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/tests?p=tests/crud/namespace-crud.spec.ts:12999:32)
"after all" hook for "lists, creates, and deletes": Namespace "after all" hook for "lists, creates, and deletes" expand_less 	0s
CypressError: `cy.click()` failed because it requires a DOM element.

The subject received was:

  > `undefined`

The previous command that ran was:

  > `cy.get()`

Because this error occurred during a `after all` hook we are skipping the remaining tests in the current suite: `Namespace`

Although you have test retries enabled, we do not retry tests when `before all` or `after all` hooks fail
    at ensureElement (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:160849:24)
    at validateType (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:160673:16)
    at Object.ensureSubjectByType (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:160715:11)
    at pushSubjectAndValidate (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:168479:15)
    at Context.<anonymous> (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/runner/cypress_runner.js:168807:18)
From Your Spec Code:
    at Object.clickPageActionFromDropdown (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/tests?p=tests/crud/namespace-crud.spec.ts:13025:50)
    at Context.eval (https://console-openshift-console.apps.ci-op-sbm6qvsp-c22bb.origin-ci-int-aws.dev.rhcloud.com/__cypress/tests?p=tests/crud/namespace-crud.spec.ts:13148:17)
: Run template e2e-aws-console - e2e-aws-console container test expand_less 	15m57s
    -        - │
  └────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✖  4 of 8 failed (50%)                      04:31      208        9        6        -      193  

error Command failed with exit code 6.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn run v1.21.0
$ yarn cypress-merge && yarn cypress-generate
$ mochawesome-merge ./gui_test_screenshots/cypress_report*.json > ./gui_test_screenshots/cypress.json
$ marge -o ./gui_test_screenshots/ -f cypress-report -t 'OpenShift Console Cypress Test Results' -p 'OpenShift Cypress Test Results' --showPassed false --assetsDir ./gui_test_screenshots/cypress/assets ./gui_test_screenshots/cypress.json

✓ Reports saved:
/go/src/github.com/openshift/console/frontend/gui_test_screenshots/cypress-report.html
Done in 1.52s.
yarn run v1.21.0
$ echo '
A11y Test Results:' && mv packages/integration-tests-cypress/cypress-a11y-report.json ./gui_test_screenshots/ && node -e "console.table(JSON.parse(require('fs').readFileSync(process.argv[1])));" ./gui_test_screenshots/cypress-a11y-report.json

A11y Test Results:
┌──────────────────┬────────┐
│     (index)      │ Values │
├──────────────────┼────────┤
│   numberChecks   │  '0'   │
│ numberViolations │  '0'   │
└──────────────────┴────────┘
Done in 0.20s.
+ copyArtifacts
+ '[' -d /tmp/artifacts ']'
+ '[' -d frontend/gui_test_screenshots ']'
++ pwd
+ echo 'Copying artifacts from /go/src/github.com/openshift/console...'
+ cp -r frontend/gui_test_screenshots /tmp/artifacts/gui_test_screenshots
Copying artifacts from /go/src/github.com/openshift/console...

Comment 1 Lili Cosic 2020-11-25 16:38:18 UTC
This is a duplicate of https://bugzilla.redhat.com/show_bug.cgi?id=1897252#c3. Closing as such, let me know if there is anything we need to do to link that bugzilla to those failures?

Comment 2 Lili Cosic 2020-11-25 16:39:11 UTC

*** This bug has been marked as a duplicate of bug 1897252 ***


Note You need to log in before you can comment on or make changes to this bug.