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

Failing test: Jest Tests.x-pack/plugins/cases/public/components/case_form_fields - Severity form field renders #188951

Closed
kibanamachine opened this issue Jul 23, 2024 · 8 comments · Fixed by #191202 or #201406
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Feature:Cases Cases feature Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Jul 23, 2024

A test failed on a tracked branch

Error: thrown: "Exceeded timeout of 5000 ms for a test.
Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout."
    at it (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/x-pack/plugins/cases/public/components/case_form_fields/severity.test.tsx:26:3)
    at _dispatchDescribe (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/index.js:91:26)
    at describe (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/index.js:55:5)
    at Object.describe (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/x-pack/plugins/cases/public/components/case_form_fields/severity.test.tsx:19:1)
    at Runtime._execModule (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:1430:24)
    at Runtime._loadModule (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:1013:12)
    at Runtime.requireModule (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:873:12)
    at jestAdapter (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:77:13)
    at runTestInternal (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1721742869492668593/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)

First failure: kibana-on-merge - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Jul 23, 2024
@botelastic botelastic bot added the needs-team Issues missing a team label label Jul 23, 2024
@kibanamachine kibanamachine added the Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) label Jul 23, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Jul 23, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@mistic
Copy link
Member

mistic commented Jul 24, 2024

Skipped.

main: f2f079b

@cnasikas cnasikas added the Feature:Cases Cases feature label Jul 25, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@guskovaue guskovaue self-assigned this Aug 23, 2024
guskovaue added a commit that referenced this issue Aug 26, 2024
Issue: #188951

Fix flaky test:
x-pack/plugins/cases/public/components/case_form_fields/severity.test.tsx

It seems that this wrapper `createAppMockRenderer` is very slow. But we
do not need it for this small and simple component. So I just deleted it
from the test and use common `render` instead.
@guskovaue guskovaue linked a pull request Aug 26, 2024 that will close this issue
@kibanamachine kibanamachine reopened this Sep 5, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@mistic
Copy link
Member

mistic commented Nov 21, 2024

Skipped.

main: b8c3d17

paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this issue Nov 26, 2024
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this issue Nov 26, 2024
…01406)

## Summary

This PR removes the usage of `appMockRender` from some flaky tests in
the hope they will stop being flaky. We suspect that the `appMockRender`
is the source of flakiness and we would like to verify our assumption.

Fixes: elastic#189105
Fixes: elastic#195698
Fixes: elastic#189014
Fixes: elastic#176679
Fixes: elastic#188951
Fixes: elastic#192672

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Dec 12, 2024
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Dec 12, 2024
…01406)

## Summary

This PR removes the usage of `appMockRender` from some flaky tests in
the hope they will stop being flaky. We suspect that the `appMockRender`
is the source of flakiness and we would like to verify our assumption.

Fixes: elastic#189105
Fixes: elastic#195698
Fixes: elastic#189014
Fixes: elastic#176679
Fixes: elastic#188951
Fixes: elastic#192672

### Checklist

- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Feature:Cases Cases feature Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
None yet
5 participants