-
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
[Entity Analytics] Hopefully fix flaky tests 🤞 #177421
Conversation
componentType === 'RiskInformationButtonIcon' | ||
? RiskInformationButtonIcon | ||
: RiskInformationButtonEmpty; | ||
describe('RiskInformationButtonEmpty', () => { |
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 these tests as I have removed the RiskInformationButtonIcon component
@@ -105,29 +106,6 @@ const getCriticalityLevelTableColumns = (): Array< | |||
export const HOST_RISK_INFO_BUTTON_CLASS = 'HostRiskInformation__button'; | |||
export const USER_RISK_INFO_BUTTON_CLASS = 'UserRiskInformation__button'; | |||
|
|||
export const RiskInformationButtonIcon = ({ riskEntity }: { riskEntity: RiskScoreEntity }) => { |
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 noticed this component isn't being used when grepping around so I have removed it
@@ -36,11 +36,17 @@ interface UserRiskEntity { | |||
export type RiskEntity = HostRiskEntity | UserRiskEntity; | |||
|
|||
const RiskSummaryComponent: React.FC<RiskEntity> = ({ risk, riskEntity, originalRisk }) => { | |||
const currentRiskScore = | |||
let currentRiskScore = |
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.
this is hopefully the fix for enrichments.cy.ts
@@ -15,9 +15,22 @@ import { | |||
RISK_DETAILS_NAV, | |||
} from '../screens/hosts/host_risk'; | |||
|
|||
export const navigateToHostRiskDetailTab = () => { | |||
export const navigateToHostRiskDetailTab = (attempts = 3) => { |
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.
not my proudest work but I have no idea why sometimes the tab doesn't click, and I think these tests are useful so here we are
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.
humm, I thought this file was about the old host details, and that we should remove it?
@elasticmachine merge upstream |
/ci |
x-pack/plugins/security_solution/public/entity_analytics/components/risk_summary.tsx
Outdated
Show resolved
Hide resolved
2fffafd
to
f188673
Compare
@elasticmachine merge upstream |
merge conflict between base and head |
Latest flaky test run https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5436 |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
💚 Build Succeeded
The CI Stats report is too large to be displayed here, check out the CI build annotation for this information. History
To update your PR or re-run it, just comment with: cc @hop-dev |
@@ -15,9 +15,22 @@ import { | |||
RISK_DETAILS_NAV, | |||
} from '../screens/hosts/host_risk'; | |||
|
|||
export const navigateToHostRiskDetailTab = () => { | |||
export const navigateToHostRiskDetailTab = (attempts = 3) => { |
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.
humm, I thought this file was about the old host details, and that we should remove it?
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
2 similar comments
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
Closes #174860
Closes #174859
Hopefully fix some flaky tests for good.
Flaky test run 1 (50 ESS): https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5268 ✅
Flaky test run 2 (100 ESS 100 Serverless) https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5278 ✅
Flaky test run 3 100 again https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5436 ✅ (ran as a lot of time has passed)