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

[ci/failed_tests_reporter] when Github 500s, retry up to 5 times #47740

Merged

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Oct 9, 2019

We got a failure on master because Github responded with a 500 and we don't have any error handling in the new failed tests reporter introduced by #46993. This update adds retry logic that will make up to 5 attempts, only retrying if Github couldn't be reached, or if we receive a 500 response, and waiting attempt * 1000ms before each subsequent attempt.

@spalger spalger added Team:Operations Team label for Operations Team v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.5.0 v7.3.2 v7.4.1 labels Oct 9, 2019
@spalger spalger requested a review from a team October 9, 2019 17:32
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-operations (Team:Operations)

@elasticmachine

This comment has been minimized.

Copy link
Member

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

👍 . if we see this in other areas maybe we can extract retries to an axios plugin

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@spalger spalger merged commit 36b55ab into elastic:master Oct 10, 2019
spalger pushed a commit to spalger/kibana that referenced this pull request Oct 10, 2019
…tic#47740)

* [ci/failed_tests_reporter] when Github 500s, retry up to 5 times

* remove unused import

* properly handle non-string headers
spalger pushed a commit to spalger/kibana that referenced this pull request Oct 10, 2019
…tic#47740)

* [ci/failed_tests_reporter] when Github 500s, retry up to 5 times

* remove unused import

* properly handle non-string headers
spalger pushed a commit to spalger/kibana that referenced this pull request Oct 10, 2019
…tic#47740)

* [ci/failed_tests_reporter] when Github 500s, retry up to 5 times

* remove unused import

* properly handle non-string headers
@spalger
Copy link
Contributor Author

spalger commented Oct 10, 2019

7.x/7.5: b5220c6
7.4: c771128
7.3: cbf7643

@spalger spalger deleted the implement/failed_tests_reporter/retries branch October 10, 2019 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.3.2 v7.4.1 v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants