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

[Entity Analytics] Flaky Cypress test fixes #186081

Merged
merged 6 commits into from
Jun 18, 2024

Conversation

hop-dev
Copy link
Contributor

@hop-dev hop-dev commented Jun 12, 2024

Fix 1: Press refresh button after using date picker on dashboard

Closes #183662
Closes #183635
Closes #183982

We shouldnt have to do this, but there is some condition where clicking apply gets the UI in a stuck state and I cant figure it out.

Fix 2: Use more specific selector for search bar on risk score preview page

Closes #184133

We were using a generic selector [data-test-subj="unifiedQueryInput"] textarea which was bringing back two elements sometimes (no idea why), I have given the box its own dedicated selector to hopefully prevent this from happening

@hop-dev hop-dev self-assigned this Jun 12, 2024
@hop-dev hop-dev changed the title [Entity Analytics] Add extra loading check to hopefully fix flaky tests [Entity Analytics] Flaky Cypress test fixes Jun 12, 2024
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#6317

[✅] Security Solution Entity Analytics - Cypress: 200/200 tests passed.

see run history

@hop-dev hop-dev marked this pull request as ready for review June 17, 2024 09:29
@hop-dev hop-dev requested a review from a team as a code owner June 17, 2024 09:29
@hop-dev hop-dev requested a review from machadoum June 17, 2024 09:29
@hop-dev
Copy link
Contributor Author

hop-dev commented Jun 17, 2024

@elasticmachine merge upstream

@hop-dev hop-dev added release_note:skip Skip the PR/issue when compiling release notes Team:Entity Analytics Security Entity Analytics Team labels Jun 17, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-entity-analytics (Team:Entity Analytics)

@hop-dev
Copy link
Contributor Author

hop-dev commented Jun 17, 2024

@elasticmachine merge upstream

@tiansivive tiansivive self-requested a review June 17, 2024 14:09
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
securitySolution 13.6MB 13.6MB +51.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @hop-dev

@hop-dev hop-dev merged commit c34bb46 into elastic:main Jun 18, 2024
40 checks passed
@hop-dev hop-dev deleted the flaky-legacy-tests branch June 18, 2024 13:27
@kibanamachine kibanamachine added v8.15.0 backport:skip This commit does not require backporting labels Jun 18, 2024
bhapas pushed a commit to bhapas/kibana that referenced this pull request Jun 18, 2024
### Fix 1: Press refresh button after using date picker on dashboard

Closes elastic#183662
Closes elastic#183635
Closes elastic#183982

We shouldnt have to do this, but there is some condition where clicking
apply gets the UI in a stuck state and I cant figure it out.

### Fix 2: Use more specific selector for search bar on risk score
preview page

Closes elastic#184133

We were using a generic selector `[data-test-subj="unifiedQueryInput"]
textarea` which was bringing back two elements sometimes (no idea why),
I have given the box its own dedicated selector to hopefully prevent
this from happening

---------

Co-authored-by: Kibana Machine <[email protected]>
@hop-dev
Copy link
Contributor Author

hop-dev commented Jul 3, 2024

💚 All backports created successfully

Status Branch Result
8.14

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

Questions ?

Please refer to the Backport tool documentation

hop-dev added a commit to hop-dev/kibana that referenced this pull request Jul 3, 2024
### Fix 1: Press refresh button after using date picker on dashboard

Closes elastic#183662
Closes elastic#183635
Closes elastic#183982

We shouldnt have to do this, but there is some condition where clicking
apply gets the UI in a stuck state and I cant figure it out.

### Fix 2: Use more specific selector for search bar on risk score
preview page

Closes elastic#184133

We were using a generic selector `[data-test-subj="unifiedQueryInput"]
textarea` which was bringing back two elements sometimes (no idea why),
I have given the box its own dedicated selector to hopefully prevent
this from happening

---------

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit c34bb46)
hop-dev added a commit that referenced this pull request Jul 4, 2024
# Backport
closes #187472

This will backport the following commits from `main` to `8.14`:
- [[Entity Analytics] Flaky Cypress test fixes
(#186081)](#186081)

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

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

<!--BACKPORT [{"author":{"name":"Mark
Hopkin","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-06-18T13:27:26Z","message":"[Entity
Analytics] Flaky Cypress test fixes (#186081)\n\n### Fix 1: Press
refresh button after using date picker on dashboard\r\n\r\nCloses
https://github.com/elastic/kibana/issues/183662\r\nCloses
https://github.com/elastic/kibana/issues/183635\r\nCloses
https://github.com/elastic/kibana/issues/183982\r\n\r\nWe shouldnt have
to do this, but there is some condition where clicking\r\napply gets the
UI in a stuck state and I cant figure it out.\r\n\r\n### Fix 2: Use more
specific selector for search bar on risk score\r\npreview
page\r\n\r\nCloses
https://github.com/elastic/kibana/issues/184133\r\n\r\nWe were using a
generic selector `[data-test-subj=\"unifiedQueryInput\"]\r\ntextarea`
which was bringing back two elements sometimes (no idea why),\r\nI have
given the box its own dedicated selector to hopefully prevent\r\nthis
from happening\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<[email protected]>","sha":"c34bb46c8aeb59dca0c92132dd34d2d9fca68728","branchLabelMapping":{"^v8.15.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","Team:Entity
Analytics","v8.15.0"],"number":186081,"url":"https://github.com/elastic/kibana/pull/186081","mergeCommit":{"message":"[Entity
Analytics] Flaky Cypress test fixes (#186081)\n\n### Fix 1: Press
refresh button after using date picker on dashboard\r\n\r\nCloses
https://github.com/elastic/kibana/issues/183662\r\nCloses
https://github.com/elastic/kibana/issues/183635\r\nCloses
https://github.com/elastic/kibana/issues/183982\r\n\r\nWe shouldnt have
to do this, but there is some condition where clicking\r\napply gets the
UI in a stuck state and I cant figure it out.\r\n\r\n### Fix 2: Use more
specific selector for search bar on risk score\r\npreview
page\r\n\r\nCloses
https://github.com/elastic/kibana/issues/184133\r\n\r\nWe were using a
generic selector `[data-test-subj=\"unifiedQueryInput\"]\r\ntextarea`
which was bringing back two elements sometimes (no idea why),\r\nI have
given the box its own dedicated selector to hopefully prevent\r\nthis
from happening\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<[email protected]>","sha":"c34bb46c8aeb59dca0c92132dd34d2d9fca68728"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.15.0","labelRegex":"^v8.15.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/186081","number":186081,"mergeCommit":{"message":"[Entity
Analytics] Flaky Cypress test fixes (#186081)\n\n### Fix 1: Press
refresh button after using date picker on dashboard\r\n\r\nCloses
https://github.com/elastic/kibana/issues/183662\r\nCloses
https://github.com/elastic/kibana/issues/183635\r\nCloses
https://github.com/elastic/kibana/issues/183982\r\n\r\nWe shouldnt have
to do this, but there is some condition where clicking\r\napply gets the
UI in a stuck state and I cant figure it out.\r\n\r\n### Fix 2: Use more
specific selector for search bar on risk score\r\npreview
page\r\n\r\nCloses
https://github.com/elastic/kibana/issues/184133\r\n\r\nWe were using a
generic selector `[data-test-subj=\"unifiedQueryInput\"]\r\ntextarea`
which was bringing back two elements sometimes (no idea why),\r\nI have
given the box its own dedicated selector to hopefully prevent\r\nthis
from happening\r\n\r\n---------\r\n\r\nCo-authored-by: Kibana Machine
<[email protected]>","sha":"c34bb46c8aeb59dca0c92132dd34d2d9fca68728"}}]}]
BACKPORT-->

Co-authored-by: Elastic Machine <[email protected]>
@mistic
Copy link
Member

mistic commented Jul 4, 2024

This PR didn't make it on time to be included in the latest BC for v8.14.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes Team:Entity Analytics Security Entity Analytics Team v8.14.2 v8.15.0
Projects
None yet
6 participants