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

[Flaky Test] Set refresh interval to -1 to only have 1 segment #14201

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

bowenlan-amzn
Copy link
Member

@bowenlan-amzn bowenlan-amzn commented Jun 11, 2024

Description

Failed 3 times in gradle check after merging in the change on 5/2 Metric Dashboard Link

Example Failure

https://build.ci.opensearch.org/job/gradle-check/39719/testReport/junit/org.opensearch.test.rest/ClientYamlTestSuiteIT/test__p0_search_aggregation_230_composite_composite_aggregation_date_histogram_profile_shows_filter_rewrite_info__2/

We can see the flaky is because sometime there are 2 segments instead of 1 though we are bulk indexing just 4 documents. After discussing with @mch2 , this could because the background refresh race in. So we are setting refresh_interval to -1 now to eliminate that.

Related Issues

Resolves #13971

Check List

  • Functionality includes testing.
  • [ ] API changes companion pull request created, if applicable.
  • [ ] Public documentation issue/PR created, if applicable.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: bowenlan-amzn <[email protected]>
Copy link
Contributor

❌ Gradle check result for bfe5a93: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

@bowenlan-amzn
Copy link
Member Author

❌ Gradle check result for bfe5a93: FAILURE

Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change?

#13220

Copy link
Contributor

✅ Gradle check result for bfe5a93: SUCCESS

Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.59%. Comparing base (b15cb0c) to head (bfe5a93).
Report is 407 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #14201      +/-   ##
============================================
+ Coverage     71.42%   71.59%   +0.17%     
- Complexity    59978    61872    +1894     
============================================
  Files          4985     5117     +132     
  Lines        282275   291173    +8898     
  Branches      40946    42067    +1121     
============================================
+ Hits         201603   208456    +6853     
- Misses        63999    65513    +1514     
- Partials      16673    17204     +531     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mch2 mch2 merged commit c381b34 into opensearch-project:main Jun 12, 2024
90 of 93 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 12, 2024
Signed-off-by: bowenlan-amzn <[email protected]>
(cherry picked from commit c381b34)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@bowenlan-amzn bowenlan-amzn deleted the 13971-flaky branch June 12, 2024 04:35
mch2 pushed a commit that referenced this pull request Jun 12, 2024
(cherry picked from commit c381b34)

Signed-off-by: bowenlan-amzn <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
harshavamsi pushed a commit to harshavamsi/OpenSearch that referenced this pull request Jul 12, 2024
kkewwei pushed a commit to kkewwei/OpenSearch that referenced this pull request Jul 24, 2024
…ject#14212)

(cherry picked from commit c381b34)

Signed-off-by: bowenlan-amzn <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Signed-off-by: kkewwei <[email protected]>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x Backport to 2.x branch bug Something isn't working flaky-test Random test failure that succeeds on second run Search:Aggregations skip-changelog
Projects
None yet
2 participants