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

Fixing flaky find tests #183746

Merged
merged 5 commits into from
May 20, 2024
Merged

Fixing flaky find tests #183746

merged 5 commits into from
May 20, 2024

Conversation

ymao1
Copy link
Contributor

@ymao1 ymao1 commented May 17, 2024

Resolves #182263
Resolves #182284
Resolves #182314

Summary

Missing await in the backfill tests caused a rule created for those tests not to finish getting deleted before the find tests ran

@ymao1 ymao1 force-pushed the flaky-test-182314 branch from b9ffb4b to 90b5ff2 Compare May 17, 2024 17:18
@ymao1 ymao1 force-pushed the flaky-test-182314 branch from 90b5ff2 to d5c6ac3 Compare May 17, 2024 17:22
@ymao1 ymao1 changed the title logging Fixing flaky find tests May 17, 2024
@elastic elastic deleted a comment from kibanamachine May 17, 2024
@elastic elastic deleted a comment from kibanamachine May 17, 2024
@elastic elastic deleted a comment from kibanamachine May 17, 2024
@ymao1 ymao1 self-assigned this May 17, 2024
@ymao1 ymao1 added Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v8.15.0 labels May 17, 2024
@ymao1
Copy link
Contributor Author

ymao1 commented May 17, 2024

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

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

[✅] x-pack/test/alerting_api_integration/security_and_spaces/group1/config.ts: 200/200 tests passed.

see run history

@elastic elastic deleted a comment from kibanamachine May 18, 2024
@elastic elastic deleted a comment from kibanamachine May 18, 2024
@ymao1 ymao1 marked this pull request as ready for review May 18, 2024 03:03
@ymao1 ymao1 requested a review from a team as a code owner May 18, 2024 03:03
@elasticmachine
Copy link
Contributor

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

// Failing: See https://github.com/elastic/kibana/issues/182263
// Failing: See https://github.com/elastic/kibana/issues/182284
describe.skip('find', () => {
describe('find', () => {
const objectRemover = new ObjectRemover(supertest);

afterEach(() => objectRemover.removeAll());
Copy link
Member

@cnasikas cnasikas May 19, 2024

Choose a reason for hiding this comment

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

Should we make the function async?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in e216e6b

@@ -19,14 +19,12 @@ const findTestUtils = (
supertest: SuperTestAgent,
supertestWithoutAuth: any
) => {
// FLAKY: https://github.com/elastic/kibana/issues/182314
describe.skip(describeType, () => {
describe(describeType, () => {
afterEach(() => objectRemover.removeAll());
Copy link
Member

@cnasikas cnasikas May 19, 2024

Choose a reason for hiding this comment

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

Should we make the function async?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done in e216e6b

@ymao1 ymao1 enabled auto-merge (squash) May 20, 2024 12:11
@cnasikas cnasikas mentioned this pull request May 20, 2024
2 tasks
@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 @ymao1

@ymao1 ymao1 merged commit 8289548 into elastic:main May 20, 2024
29 checks passed
@kibanamachine kibanamachine added the backport:skip This commit does not require backporting label May 20, 2024
@ymao1 ymao1 deleted the flaky-test-182314 branch May 20, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment