-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Failing test: X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/spaces_only/tests/alerting/bulk_edit·ts - alerting api integration spaces only Alerting bulkEdit should return mapped params after bulk edit #132195
Labels
failed-test
A test failure on a tracked branch, potentially flaky-test
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
Comments
kibanamachine
added
the
failed-test
A test failure on a tracked branch, potentially flaky-test
label
May 13, 2022
kibanamachine
added
the
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
label
May 13, 2022
Pinging @elastic/response-ops (Team:ResponseOps) |
New failure: CI Build - main |
New failure: CI Build - main |
Skipped. main: 93ffd78 |
This was referenced Jun 6, 2022
This was
linked to
pull requests
Jun 15, 2022
vitaliidm
added a commit
that referenced
this issue
Jun 15, 2022
…nal tests for alerting bulk_edit (#133635) ## Summary Addresses #132195 Follow-up to #132637 - Fixes flaky tests `x-pack/test/alerting_api_integration/spaces_only/tests/alerting/bulk_edit.ts` - Adds new tests in spaces_only/tests/alerting/bulk_edit.ts for the following operations: `schedule`, `notifyWhen`, `throttle` - Adds units test in x-pack/plugins/alerting/server/rules_client/lib/apply_bulk_edit_operation.test.ts ### Details to fixing flaky tests Despite having bulkEdit retry when 409 conflict happens during bulk update of SO, sometimes there was still failing test. So, all tests in bulk_edit.ts were skipped 93ffd78 The reason, it happens I believe because mocked rule that used for test is enabled, its update after run clashes with `SavedObject.bulkUpdate` method that used inside `RulesClient.bulkEdit`. So, to fix it, I made this mocked rule disabled, which seems like fixed the flakiness Here is flaky test runner builds with ENABLED rule: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/717 https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/713 and with DISABLED: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/718 https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/714 In both enabled runs there was test failure, but not for disabled. Another possible way to fix: use retry in test for `rules.bulkEdit` call and assertion. Let me know if it can more preferable way to fix it ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
failed-test
A test failure on a tracked branch, potentially flaky-test
Team:ResponseOps
Label for the ResponseOps team (formerly the Cases and Alerting teams)
A test failed on a tracked branch
First failure: CI Build - main
The text was updated successfully, but these errors were encountered: