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

Fix flaky tests #175965

Merged
merged 6 commits into from
Feb 7, 2024
Merged

Conversation

e40pud
Copy link
Contributor

@e40pud e40pud commented Jan 31, 2024

Summary

These changes fix flaky alert assignments cypress tests:

@MadameSheema mentioned that there were a lot of changes around login functionality recently which could have fixed original issues. We agreed that we will run a flaky test runner and if everything works fine we would un-skip tests and monitor them after the merge.

Checklist

Delete any items that are not applicable to this PR.

@e40pud e40pud added release_note:skip Skip the PR/issue when compiling release notes Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Detection Engine Security Solution Detection Engine Area labels Jan 31, 2024
@e40pud e40pud self-assigned this Jan 31, 2024
@e40pud
Copy link
Contributor Author

e40pud commented Jan 31, 2024

/ci

@e40pud
Copy link
Contributor Author

e40pud commented Jan 31, 2024

/ci

@e40pud
Copy link
Contributor Author

e40pud commented Jan 31, 2024

/ci

@e40pud e40pud requested review from MadameSheema and yctercero and removed request for yctercero February 1, 2024 22:14
@e40pud e40pud marked this pull request as ready for review February 1, 2024 22:15
@e40pud e40pud requested a review from a team as a code owner February 1, 2024 22:15
@e40pud e40pud requested a review from nkhristinin February 1, 2024 22:15
@elasticmachine
Copy link
Contributor

Pinging @elastic/security-solution (Team: SecuritySolution)

@elasticmachine
Copy link
Contributor

Pinging @elastic/security-detection-engine (Team:Detection Engine)

Copy link
Contributor

@nkhristinin nkhristinin left a comment

Choose a reason for hiding this comment

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

LGTM!

But does 25 tests enough to reproduce flakiness?

@e40pud
Copy link
Contributor Author

e40pud commented Feb 2, 2024

@nkhristinin Thank for the review! I re-run flaky test runner with the max time possible which is 97. Updated links in description.

@@ -54,6 +53,7 @@ describe.skip('Alert user assignment - ESS & Serverless', { tags: ['@ess', '@ser
login(ROLES.soc_manager);
login(ROLES.detections_admin);
login(ROLES.platform_engineer);
login();
Copy link
Member

Choose a reason for hiding this comment

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

Is this login method needed? Theoretically I believe it should not, in all the tests where the login() has been added to the before hook, we are calling on the beforeEach, loadPageAs(). As part of the implementation, that method, a login is performed so having that one sounds redundant. If it is needed, it would be nice to understand why to make sure we are not masking a possible issue :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, that's a good point! We do not really need login() here.

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @e40pud

@e40pud e40pud requested a review from MadameSheema February 5, 2024 12:20
Copy link
Member

@MadameSheema MadameSheema left a comment

Choose a reason for hiding this comment

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

LGTM!!! Thanks for bring these tests back to life :)

@e40pud e40pud merged commit 7a8d819 into elastic:main Feb 7, 2024
38 checks passed
@kibanamachine kibanamachine added v8.13.0 backport:skip This commit does not require backporting labels Feb 7, 2024
fkanout pushed a commit to fkanout/kibana that referenced this pull request Feb 7, 2024
## Summary

These changes fix flaky alert assignments cypress tests:
- elastic#173429
- elastic#172520
- elastic#172557

@MadameSheema mentioned that there were a lot of changes around login
functionality recently which could have fixed original issues. We agreed
that we will run a flaky test runner and if everything works fine we
would un-skip tests and monitor them after the merge.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ESS 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5064)
- [Serverless 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5052)
@e40pud e40pud deleted the security/tests/assignments-flaky-tests branch February 14, 2024 15:56
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this pull request Feb 15, 2024
## Summary

These changes fix flaky alert assignments cypress tests:
- elastic#173429
- elastic#172520
- elastic#172557

@MadameSheema mentioned that there were a lot of changes around login
functionality recently which could have fixed original issues. We agreed
that we will run a flaky test runner and if everything works fine we
would un-skip tests and monitor them after the merge.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ESS 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5064)
- [Serverless 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5052)
fkanout pushed a commit to fkanout/kibana that referenced this pull request Mar 4, 2024
## Summary

These changes fix flaky alert assignments cypress tests:
- elastic#173429
- elastic#172520
- elastic#172557

@MadameSheema mentioned that there were a lot of changes around login
functionality recently which could have fixed original issues. We agreed
that we will run a flaky test runner and if everything works fine we
would un-skip tests and monitor them after the merge.

### Checklist

Delete any items that are not applicable to this PR.

- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [ESS 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5064)
- [Serverless 97
times](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5052)
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:Detection Engine Security Solution Detection Engine Area Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. v8.13.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants