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_settings - SyncAlertsSwitch it toggles the switch #192997

Closed
kibanamachine opened this issue Sep 16, 2024 · 10 comments · Fixed by #200738
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 Sep 16, 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-1726484217525862488/elastic/kibana-on-merge/kibana/x-pack/plugins/cases/public/components/case_settings/sync_alerts_switch.test.tsx:29:3)
    at _dispatchDescribe (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1726484217525862488/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/index.js:91:26)
    at describe (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1726484217525862488/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-1726484217525862488/elastic/kibana-on-merge/kibana/x-pack/plugins/cases/public/components/case_settings/sync_alerts_switch.test.tsx:16:1)
    at Runtime._execModule (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1726484217525862488/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:1439:24)
    at Runtime._loadModule (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1726484217525862488/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:1022:12)
    at Runtime.requireModule (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1726484217525862488/elastic/kibana-on-merge/kibana/node_modules/jest-runtime/build/index.js:882:12)
    at jestAdapter (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1726484217525862488/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-1726484217525862488/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1726484217525862488/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)

First failure: kibana-on-merge - 8.x

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

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

@botelastic botelastic bot removed the needs-team Issues missing a team label label Sep 16, 2024
@cnasikas cnasikas added the Feature:Cases Cases feature label Sep 16, 2024
@elasticmachine
Copy link
Contributor

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

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.x

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.x

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.x

@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 - 8.x

@jbudz
Copy link
Member

jbudz commented Oct 11, 2024

Skipped

main: e10b330
8.x: 6903095

kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 20, 2024
…200738)

Fixes elastic#192997

## Summary

I removed `createAppMockRenderer` because `SyncAlertsSwitch` is a really
simple component.

(cherry picked from commit d94f800)
kibanamachine added a commit that referenced this issue Nov 20, 2024
… tests (#200738) (#200865)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ResponseOps][Cases] Fixed `sync alerts switch` flaky tests
(#200738)](#200738)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Antonio","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-20T09:00:18Z","message":"[ResponseOps][Cases]
Fixed `sync alerts switch` flaky tests (#200738)\n\nFixes
#192997\r\n\r\n## Summary\r\n\r\nI removed `createAppMockRenderer`
because `SyncAlertsSwitch` is a really\r\nsimple
component.","sha":"d94f8008a6b15da0358dd72b5897efe9b9e217e4","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-minor"],"title":"[ResponseOps][Cases]
Fixed `sync alerts switch` flaky
tests","number":200738,"url":"https://github.com/elastic/kibana/pull/200738","mergeCommit":{"message":"[ResponseOps][Cases]
Fixed `sync alerts switch` flaky tests (#200738)\n\nFixes
#192997\r\n\r\n## Summary\r\n\r\nI removed `createAppMockRenderer`
because `SyncAlertsSwitch` is a really\r\nsimple
component.","sha":"d94f8008a6b15da0358dd72b5897efe9b9e217e4"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/200738","number":200738,"mergeCommit":{"message":"[ResponseOps][Cases]
Fixed `sync alerts switch` flaky tests (#200738)\n\nFixes
#192997\r\n\r\n## Summary\r\n\r\nI removed `createAppMockRenderer`
because `SyncAlertsSwitch` is a really\r\nsimple
component.","sha":"d94f8008a6b15da0358dd72b5897efe9b9e217e4"}}]}]
BACKPORT-->

Co-authored-by: Antonio <[email protected]>
paulinashakirova pushed a commit to paulinashakirova/kibana that referenced this issue Nov 26, 2024
…200738)

Fixes elastic#192997

## Summary

I removed `createAppMockRenderer` because `SyncAlertsSwitch` is a really
simple component.
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this issue Dec 12, 2024
…200738)

Fixes elastic#192997

## Summary

I removed `createAppMockRenderer` because `SyncAlertsSwitch` is a really
simple component.
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
Development

Successfully merging a pull request may close this issue.

5 participants