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

[ResponseOps][Cases] Remove appMockRender from flaky tests #201406

Merged
merged 2 commits into from
Nov 23, 2024

Conversation

cnasikas
Copy link
Member

@cnasikas cnasikas commented Nov 22, 2024

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: #189105
Fixes: #195698
Fixes: #189014
Fixes: #176679
Fixes: #188951
Fixes: #192672

Checklist

@cnasikas cnasikas added backport:skip This commit does not require backporting Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v9.0.0 Feature:Cases Cases feature backport:prev-minor Backport to (8.x) the previous minor version (i.e. one version back from main) v8.18.0 labels Nov 22, 2024
@cnasikas cnasikas self-assigned this Nov 22, 2024
@cnasikas cnasikas requested a review from a team as a code owner November 22, 2024 14:52
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

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

@@ -6,31 +6,21 @@
*/

import React from 'react';
import { waitForEuiPopoverOpen, screen } from '@elastic/eui/lib/test/rtl';
import { waitForEuiPopoverOpen, screen, render } from '@elastic/eui/lib/test/rtl';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should screen and render be from '@testing-library/react' instead? Im not familiar with this eui package

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right! I missed that.

Copy link
Contributor

@js-jankisalvi js-jankisalvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤞

@cnasikas cnasikas added release_note:skip Skip the PR/issue when compiling release notes and removed backport:skip This commit does not require backporting labels Nov 23, 2024
@cnasikas cnasikas enabled auto-merge (squash) November 23, 2024 09:11
@cnasikas cnasikas enabled auto-merge (squash) November 23, 2024 09:16
@cnasikas cnasikas merged commit 3c2c891 into elastic:main Nov 23, 2024
24 checks passed
@cnasikas cnasikas deleted the fix_flaky_tests_01 branch November 23, 2024 10:54
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

https://github.com/elastic/kibana/actions/runs/11986563951

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @cnasikas

@kibanamachine
Copy link
Contributor

💔 All backports failed

Status Branch Result
8.x Backport failed because of merge conflicts

Manual backport

To create the backport manually run:

node scripts/backport --pr 201406

Questions ?

Please refer to the Backport tool documentation

@cnasikas
Copy link
Member Author

💚 All backports created successfully

Status Branch Result
8.x

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

cnasikas added a commit that referenced this pull request Nov 25, 2024
…1406) (#201504)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[ResponseOps][Cases] Remove appMockRender from flaky tests
(#201406)](#201406)

<!--- Backport version: 8.9.8 -->

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

<!--BACKPORT [{"author":{"name":"Christos
Nasikas","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-23T10:54:29Z","message":"[ResponseOps][Cases]
Remove appMockRender from flaky tests (#201406)\n\n##
Summary\r\n\r\nThis PR removes the usage of `appMockRender` from some
flaky tests in\r\nthe hope they will stop being flaky. We suspect that
the `appMockRender`\r\nis the source of flakiness and we would like to
verify our assumption.\r\n\r\nFixes:
https://github.com/elastic/kibana/issues/189105\r\nFixes:
https://github.com/elastic/kibana/issues/195698\r\nFixes:
https://github.com/elastic/kibana/issues/189014\r\nFixes:
https://github.com/elastic/kibana/issues/176679\r\nFixes:
https://github.com/elastic/kibana/issues/188951\r\nFixes:
https://github.com/elastic/kibana/issues/192672\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"3c2c891a14072e374bd562618358dc8c027aa1ea","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:ResponseOps","v9.0.0","Feature:Cases","backport:prev-minor","v8.18.0"],"number":201406,"url":"https://github.com/elastic/kibana/pull/201406","mergeCommit":{"message":"[ResponseOps][Cases]
Remove appMockRender from flaky tests (#201406)\n\n##
Summary\r\n\r\nThis PR removes the usage of `appMockRender` from some
flaky tests in\r\nthe hope they will stop being flaky. We suspect that
the `appMockRender`\r\nis the source of flakiness and we would like to
verify our assumption.\r\n\r\nFixes:
https://github.com/elastic/kibana/issues/189105\r\nFixes:
https://github.com/elastic/kibana/issues/195698\r\nFixes:
https://github.com/elastic/kibana/issues/189014\r\nFixes:
https://github.com/elastic/kibana/issues/176679\r\nFixes:
https://github.com/elastic/kibana/issues/188951\r\nFixes:
https://github.com/elastic/kibana/issues/192672\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"3c2c891a14072e374bd562618358dc8c027aa1ea"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/201406","number":201406,"mergeCommit":{"message":"[ResponseOps][Cases]
Remove appMockRender from flaky tests (#201406)\n\n##
Summary\r\n\r\nThis PR removes the usage of `appMockRender` from some
flaky tests in\r\nthe hope they will stop being flaky. We suspect that
the `appMockRender`\r\nis the source of flakiness and we would like to
verify our assumption.\r\n\r\nFixes:
https://github.com/elastic/kibana/issues/189105\r\nFixes:
https://github.com/elastic/kibana/issues/195698\r\nFixes:
https://github.com/elastic/kibana/issues/189014\r\nFixes:
https://github.com/elastic/kibana/issues/176679\r\nFixes:
https://github.com/elastic/kibana/issues/188951\r\nFixes:
https://github.com/elastic/kibana/issues/192672\r\n\r\n###
Checklist\r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios","sha":"3c2c891a14072e374bd562618358dc8c027aa1ea"}},{"branch":"8.x","label":"v8.18.0","labelRegex":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment