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

[Task Manager] Fixing flaky test #81901

Merged
merged 1 commit into from
Oct 28, 2020
Merged

Conversation

ymao1
Copy link
Contributor

@ymao1 ymao1 commented Oct 28, 2020

Resolves #81853

Summary

Fixing flaky task manager test. Was testing that a recurring task would continue being claimed even after maxAttempts was exceeded and trying to match the number of attempts to exactly maxAttempts + 1. If the retry loop missed that exact number and the number attempts exceeded maxAttempts + 1, the test would keep retrying. Updated test to just check that number of attempts has exceeded maxAttempts

Ran through the flaky test runner 100 times. Results here: https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/916/ specifically this test suite

@ymao1 ymao1 self-assigned this Oct 28, 2020
@ymao1 ymao1 added Feature:Task Manager release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.11 v8.0.0 labels Oct 28, 2020
@ymao1 ymao1 marked this pull request as ready for review October 28, 2020 15:31
@ymao1 ymao1 requested a review from a team as a code owner October 28, 2020 15:31
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@gmmorris gmmorris left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@ymao1 ymao1 merged commit e7f425a into elastic:master Oct 28, 2020
ymao1 added a commit to ymao1/kibana that referenced this pull request Oct 28, 2020
ymao1 added a commit that referenced this pull request Oct 28, 2020
@ymao1 ymao1 deleted the task-manager-failed-tests branch February 4, 2021 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Task Manager 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.0.0
Projects
None yet
5 participants