Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

chenlei1216
Copy link
Contributor

@chenlei1216 chenlei1216 commented Jan 10, 2023

The query expansion search result on the backend is not stable and the returned results may change over time. Tried to remove the strong ranking checks, and only check if query expansion is enabled in the search response.

Fixes #8798

Description

Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.

Checklist

The query expansion search result on the backend is not stable and the returned results may change over time. Tried to remove the strong ranking checks, and only check if query expansion is enabled in the search response.
@chenlei1216 chenlei1216 requested review from a team as code owners January 10, 2023 21:02
@product-auto-label product-auto-label bot added the samples Issues that are directly related to samples. label Jan 10, 2023
@chenlei1216
Copy link
Contributor Author

chenlei1216 commented Jan 10, 2023

This is to put a similar fix submitted under python-retail repo:

googleapis/python-retail#381
googleapis/python-retail#375

@leahecole
Copy link
Collaborator

leahecole commented Jan 11, 2023

Thanks for submitting! A couple of questions because I have no experience with this API - Does the expanded query check also validate that there are results at all? Is there also a way to check that the results are from the call we made and not an earlier call? (like a timestamp or something less flaky?)

@chenlei1216
Copy link
Contributor Author

Thanks for submitting! A couple of questions because I have no experience with this API - Does the expanded query check also validate that there are results at all? Is there also a way to check that the results are from the call we made and not an earlier call? (like a timestamp or something less flaky?)

Thanks for reviewing! The API calls are stateless and transactional so the results won't be from previous calls. And we're trying to test from the response whether query expansion flow is triggered when we enable it in the API request. As for the returned products in the search result, due to some system flaws they don't always return the consistent results, which may cause the tests to be flaky in some cases. So I feel it's better not to check the matched result for this test case.

@chenlei1216 chenlei1216 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 12, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 12, 2023
@chenlei1216 chenlei1216 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 12, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 12, 2023
@chenlei1216 chenlei1216 requested a review from a team as a code owner January 18, 2023 00:53
@chenlei1216 chenlei1216 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 18, 2023
@chenlei1216 chenlei1216 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 19, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 19, 2023
@chenlei1216 chenlei1216 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 19, 2023
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jan 19, 2023
@leahecole leahecole merged commit 54f19f0 into GoogleCloudPlatform:main Jan 25, 2023
telpirion pushed a commit that referenced this pull request Mar 13, 2023
The query expansion search result on the backend is not stable and the returned results may change over time. Tried to remove the strong ranking checks, and only check if query expansion is enabled in the search response.

Co-authored-by: Karl Weinmeister <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

retail.interactive-tutorials.search.search_with_query_expansion_spec_test: test_search_with_query_expansion_spec failed
6 participants