-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Solution][Threat Hunting] - Unskip threat hunting tests #195662
[Security Solution][Threat Hunting] - Unskip threat hunting tests #195662
Conversation
b9e33f1
to
13c99ca
Compare
13c99ca
to
1235496
Compare
4c272d4
to
cf970f5
Compare
@patrykkopycinski - Anything we have to do regarding upgrading cypress as I believe you've gone through this process before? Thanks! |
x-pack/test/security_solution_cypress/cypress/screens/inspect.ts
Outdated
Show resolved
Hide resolved
x-pack/test/security_solution_cypress/cypress/screens/inspect.ts
Outdated
Show resolved
Hide resolved
@@ -342,7 +338,7 @@ describe.skip('Changing alert status', { tags: ['@ess', '@skipInServerless'] }, | |||
}); | |||
}); | |||
|
|||
it('Closes alerts', () => { | |||
it.skip('Closes alerts', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
t2 Analyst seems to have the ability to close alerts here. @MadameSheema is this behavior accurate?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Solved it in an async way, seems that the t2 analyst has the privilege to close alerts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we going to maintain this test skipped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will make it ess only with Roles.reader
package.json
Outdated
@@ -1687,10 +1687,11 @@ | |||
"cssnano": "^5.1.12", | |||
"cssnano-preset-default": "^5.2.12", | |||
"csstype": "^3.0.2", | |||
"cypress": "13.6.3", | |||
"cypress": "13.15.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated Cypress due to an issue where cypress tests hang locally when the browser is not focused. Reference: cypress-io/cypress#28392 .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For future reference, Cypress updates should be done in a different PR since there are more solutions a part from us that are using Cypress as well and they might be affected by this change.
Before merging this PR and to make sure that this is not impacting other solutions, please make sure that the ci:all-cypress-suites
label and you update your branch with the latest main changes to trigger the execution of all the different Cypress tests of the Kibana repo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll open a separate PR with just these changes! No worries 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done: #198715, will wait on that making it in first 👍🏾
"cypress-axe": "^1.5.0", | ||
"cypress-file-upload": "^5.0.8", | ||
"cypress-multi-reporters": "^1.6.4", | ||
"cypress-network-idle": "^1.14.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of relying on the global loading indicator being present for the alerts based tests, we'll instead wait for network requests to complete on the page (this helps avoid flakiness due to any loading indicator flicker)
/ci |
1 similar comment
/ci |
cy.get(GET_DATA_GRID_HEADER_CELL_ACTION_GROUP(timestampField)) | ||
.should('be.visible') | ||
.should('contain.text', 'Sort Old-New'); | ||
|
||
cy.log('Number column'); | ||
|
||
const riskScoreField = DATA_GRID_FIELDS.RISK_SCORE.fieldName; | ||
cy.get(GET_DATA_GRID_HEADER(riskScoreField)).trigger('click'); | ||
cy.get(GET_DATA_GRID_HEADER_ACTION_BUTTON(riskScoreField)).realHover().trigger('click'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cy.get(GET_DATA_GRID_HEADER_CELL_ACTION_GROUP(riskScoreField)) | ||
.should('be.visible') | ||
.should('contain.text', 'Sort Low-High'); | ||
|
||
cy.log('Text Column'); | ||
|
||
const ruleField = DATA_GRID_FIELDS.RULE.fieldName; | ||
cy.get(GET_DATA_GRID_HEADER(ruleField)).trigger('click'); | ||
cy.get(GET_DATA_GRID_HEADER_ACTION_BUTTON(ruleField)).realHover().trigger('click'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fillAddFilterForm, | ||
fillKqlQueryBar, | ||
openAddFilterPopover, | ||
removeKqlFilter, | ||
} from '../../../tasks/search_bar'; | ||
import { openActiveTimeline } from '../../../tasks/timeline'; | ||
|
||
import { ALERTS_URL } from '../../../urls/navigation'; | ||
|
||
// Failing: See https://github.com/elastic/kibana/issues/193840 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason why the comment has not been removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just missed this one. Removing it in my next commit 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why next PR? This one is outdated so you're going to have to rebase/merge main
so the build is going to have to run again anyway... Might as well make this change now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Miswrote...my next commit* I have it on my local branch now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Now you can't prove it said next PR lol 😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fake news...lol
61d2453
to
b53a7ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix @michaelolo24
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lots of thanks for investing the time on unskipping tests!! :)
Please make sure that #198715 is merged first!
Thanks all! Just waiting on this to update this PR and merge |
d14164b
to
d4e4c65
Compare
💚 Build Succeeded
Metrics [docs]
History
|
1. Added `cypress-network-idle` to better wait for a full page load as a loading indicator flicker could cause flakiness. 2. List of addressed open issues: Resolves elastic#191819 Resolves elastic#178367 Resolves elastic#176757 Resolves elastic#176759 Resolves elastic#176758 Resolves elastic#193840 Resolves elastic#182206 Resolves elastic#181977 Resolves elastic#168768 Resolves elastic#168769 Resolves elastic#168770 Resolves elastic#168771 Resolves elastic#168772 Resolves elastic#183104 Resolves elastic#173854 Successful Flaky Test Runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7267 --------- Co-authored-by: kibanamachine <[email protected]>
1. Added `cypress-network-idle` to better wait for a full page load as a loading indicator flicker could cause flakiness. 2. List of addressed open issues: Resolves elastic#191819 Resolves elastic#178367 Resolves elastic#176757 Resolves elastic#176759 Resolves elastic#176758 Resolves elastic#193840 Resolves elastic#182206 Resolves elastic#181977 Resolves elastic#168768 Resolves elastic#168769 Resolves elastic#168770 Resolves elastic#168771 Resolves elastic#168772 Resolves elastic#183104 Resolves elastic#173854 Successful Flaky Test Runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7267 --------- Co-authored-by: kibanamachine <[email protected]>
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
1. Added `cypress-network-idle` to better wait for a full page load as a loading indicator flicker could cause flakiness. 2. List of addressed open issues: Resolves elastic#191819 Resolves elastic#178367 Resolves elastic#176757 Resolves elastic#176759 Resolves elastic#176758 Resolves elastic#193840 Resolves elastic#182206 Resolves elastic#181977 Resolves elastic#168768 Resolves elastic#168769 Resolves elastic#168770 Resolves elastic#168771 Resolves elastic#168772 Resolves elastic#183104 Resolves elastic#173854 Successful Flaky Test Runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7267 --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 3f236b1)
# Backport This will backport the following commits from `main` to `8.x`: - [[WIP] - Unskip threat hunting tests (#195662)](#195662) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Michael Olorunnisola","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-07T16:30:23Z","message":"[WIP] - Unskip threat hunting tests (#195662)\n\n1. Added `cypress-network-idle` to better wait for a full page load as a\r\nloading indicator flicker could cause flakiness.\r\n\r\n2. List of addressed open issues:\r\n\r\nResolves https://github.com/elastic/kibana/issues/191819\r\nResolves https://github.com/elastic/kibana/issues/178367\r\nResolves https://github.com/elastic/kibana/issues/176757\r\nResolves https://github.com/elastic/kibana/issues/176759\r\nResolves https://github.com/elastic/kibana/issues/176758\r\nResolves https://github.com/elastic/kibana/issues/193840\r\nResolves https://github.com/elastic/kibana/issues/182206\r\nResolves https://github.com/elastic/kibana/issues/181977\r\nResolves https://github.com/elastic/kibana/issues/168768\r\nResolves https://github.com/elastic/kibana/issues/168769\r\nResolves https://github.com/elastic/kibana/issues/168770\r\nResolves https://github.com/elastic/kibana/issues/168771\r\nResolves https://github.com/elastic/kibana/issues/168772\r\nResolves https://github.com/elastic/kibana/issues/183104\r\nResolves https://github.com/elastic/kibana/issues/173854\r\n\r\nSuccessful Flaky Test Runner:\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7267\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"3f236b14994cfa024230053b069b7011c2b7434e","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:skip","v9.0.0","v8.17.0"],"number":195662,"url":"https://github.com/elastic/kibana/pull/195662","mergeCommit":{"message":"[WIP] - Unskip threat hunting tests (#195662)\n\n1. Added `cypress-network-idle` to better wait for a full page load as a\r\nloading indicator flicker could cause flakiness.\r\n\r\n2. List of addressed open issues:\r\n\r\nResolves https://github.com/elastic/kibana/issues/191819\r\nResolves https://github.com/elastic/kibana/issues/178367\r\nResolves https://github.com/elastic/kibana/issues/176757\r\nResolves https://github.com/elastic/kibana/issues/176759\r\nResolves https://github.com/elastic/kibana/issues/176758\r\nResolves https://github.com/elastic/kibana/issues/193840\r\nResolves https://github.com/elastic/kibana/issues/182206\r\nResolves https://github.com/elastic/kibana/issues/181977\r\nResolves https://github.com/elastic/kibana/issues/168768\r\nResolves https://github.com/elastic/kibana/issues/168769\r\nResolves https://github.com/elastic/kibana/issues/168770\r\nResolves https://github.com/elastic/kibana/issues/168771\r\nResolves https://github.com/elastic/kibana/issues/168772\r\nResolves https://github.com/elastic/kibana/issues/183104\r\nResolves https://github.com/elastic/kibana/issues/173854\r\n\r\nSuccessful Flaky Test Runner:\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7267\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"3f236b14994cfa024230053b069b7011c2b7434e"}},"sourceBranch":"main","suggestedTargetBranches":["8.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","labelRegex":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195662","number":195662,"mergeCommit":{"message":"[WIP] - Unskip threat hunting tests (#195662)\n\n1. Added `cypress-network-idle` to better wait for a full page load as a\r\nloading indicator flicker could cause flakiness.\r\n\r\n2. List of addressed open issues:\r\n\r\nResolves https://github.com/elastic/kibana/issues/191819\r\nResolves https://github.com/elastic/kibana/issues/178367\r\nResolves https://github.com/elastic/kibana/issues/176757\r\nResolves https://github.com/elastic/kibana/issues/176759\r\nResolves https://github.com/elastic/kibana/issues/176758\r\nResolves https://github.com/elastic/kibana/issues/193840\r\nResolves https://github.com/elastic/kibana/issues/182206\r\nResolves https://github.com/elastic/kibana/issues/181977\r\nResolves https://github.com/elastic/kibana/issues/168768\r\nResolves https://github.com/elastic/kibana/issues/168769\r\nResolves https://github.com/elastic/kibana/issues/168770\r\nResolves https://github.com/elastic/kibana/issues/168771\r\nResolves https://github.com/elastic/kibana/issues/168772\r\nResolves https://github.com/elastic/kibana/issues/183104\r\nResolves https://github.com/elastic/kibana/issues/173854\r\n\r\nSuccessful Flaky Test Runner:\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7267\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"3f236b14994cfa024230053b069b7011c2b7434e"}},{"branch":"8.x","label":"v8.17.0","labelRegex":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Added
cypress-network-idle
to better wait for a full page load as a loading indicator flicker could cause flakiness.List of addressed open issues:
Resolves #191819
Resolves #178367
Resolves #176757
Resolves #176759
Resolves #176758
Resolves #193840
Resolves #182206
Resolves #181977
Resolves #168768
Resolves #168769
Resolves #168770
Resolves #168771
Resolves #168772
Resolves #183104
Resolves #173854
Successful Flaky Test Runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7267