Skip to content

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

Merged
spalger merged 6 commits intoelastic:masterfrom
spalger:fix/flaky-test-51038
Dec 11, 2019
Merged

[kbnClient] Retry uiSettings.replace() calls up to 5 times#52601
spalger merged 6 commits intoelastic:masterfrom
spalger:fix/flaky-test-51038

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 Kibana-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 Kibana-Operations Team v7.5.1 v7.6.0 v8.0.0

Projects

None yet

3 participants