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

[kbnClient] Retry uiSettings.replace() calls up to 5 times #52601

Merged
merged 6 commits into from
Dec 11, 2019

Conversation

spalger
Copy link
Contributor

@spalger spalger commented Dec 10, 2019

Fixes #51038

This fixes failures caused by conflicts when replacing the uiSettings document, to avoid this we should retry the call to kbnClient.uiSettings.replace() up to five times. We do this automatically since we don't actually care about the current values, we want to overwrite all of them.

@spalger spalger marked this pull request as ready for review December 11, 2019 00:38
@spalger spalger requested a review from a team as a code owner December 11, 2019 00:38
@spalger spalger added release_note:skip Skip the PR/issue when compiling release notes Team:Operations Team label for Operations Team v7.5.1 v7.6.0 v8.0.0 labels Dec 11, 2019
@elasticmachine
Copy link
Contributor

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

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

History

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

@spalger spalger merged commit ab1fe3f into elastic:master Dec 11, 2019
spalger pushed a commit to spalger/kibana that referenced this pull request Dec 11, 2019
…2601)

* [kbn/dev-utils] target ES2019 to transpile ??

* Retry uiSettings.replace() calls up to 5 times

* share logic for selecting junit report name to ensure they are unique

* convert to junit report path helper

# Conflicts:
#	src/dev/jest/junit_reporter.js
spalger pushed a commit to spalger/kibana that referenced this pull request Dec 11, 2019
…2601)

* [kbn/dev-utils] target ES2019 to transpile ??

* Retry uiSettings.replace() calls up to 5 times

* share logic for selecting junit report name to ensure they are unique

* convert to junit report path helper

# Conflicts:
#	packages/kbn-test/src/mocha/__tests__/junit_report_generation.js
#	packages/kbn-test/src/mocha/junit_report_generation.js
#	src/dev/jest/junit_reporter.js
spalger pushed a commit that referenced this pull request Dec 12, 2019
* [kbnClient] Retry uiSettings.replace() calls up to 5 times (#52601)

* [kbn/dev-utils] target ES2019 to transpile ??

* Retry uiSettings.replace() calls up to 5 times

* share logic for selecting junit report name to ensure they are unique

* convert to junit report path helper

# Conflicts:
#	packages/kbn-test/src/mocha/__tests__/junit_report_generation.js
#	packages/kbn-test/src/mocha/junit_report_generation.js
#	src/dev/jest/junit_reporter.js

* remove ?? syntax

* fix more null-ish syntax not supported in 7.5

* fix imports
@spalger
Copy link
Contributor Author

spalger commented Dec 12, 2019

7.x/7.6: cc23912
7.5: a4fca06

@spalger spalger deleted the fix/flaky-test-51038 branch December 12, 2019 13:36
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.5.1 v7.6.0 v8.0.0
Projects
None yet
3 participants