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

Fix flaky bsearch test #99277

Merged
merged 3 commits into from
May 6, 2021
Merged

Fix flaky bsearch test #99277

merged 3 commits into from
May 6, 2021

Conversation

lukasolson
Copy link
Member

Summary

Fixes #98245.

As @Dosant pointed out in #98245 (comment), this test started being flaky when we switched the default to async search, since it can possibly return partial responses. This PR updates the test to check that the property exists rather than checking the value itself.

Checklist

For maintainers

@lukasolson lukasolson added review Feature:Search Querying infrastructure in Kibana v8.0.0 Team:AppServices release_note:skip Skip the PR/issue when compiling release notes v7.14.0 auto-backport Deprecated - use backport:version if exact versions are needed labels May 4, 2021
@lukasolson lukasolson requested review from lizozom and Dosant May 4, 2021 21:47
@lukasolson lukasolson self-assigned this May 4, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-services (Team:AppServices)

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

There is one more place we check:

expect(responseJson.result.isPartial).to.be(false);
expect(responseJson.result.isRunning).to.be(false);

Should we update that also?
btw, here is the failure: #98098


Also curious if we'd rather added logic to refetch until completed (similar to our polling inside Kibana), but I think this is not for this pr.

Copy link
Contributor

@Dosant Dosant left a comment

Choose a reason for hiding this comment

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

just see: #99277 (review)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

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

cc @lukasolson

@lukasolson lukasolson merged commit d882cd6 into elastic:master May 6, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 6, 2021
* Fix flaky bsearch test

* Review feedback
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request May 7, 2021
* Fix flaky bsearch test

* Review feedback

Co-authored-by: Lukas Olson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Feature:Search Querying infrastructure in Kibana release_note:skip Skip the PR/issue when compiling release notes review v7.14.0 v8.0.0
Projects
None yet
4 participants