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 test RestStatusTests.testStatusReturnsFailureStatusWhenFailuresExist #15011

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

mch2
Copy link
Member

@mch2 mch2 commented Jul 29, 2024

Description

This test has a reproducible failure when the highest "failure" status is 100 level. This happens because RestStatus.status treats these as OK.

Related Issues

Resolves #15008

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.

This test has a reproducible failure when the highest "failure" status
is 100 level. This happens because RestStatus.status treats these as OK.

Signed-off-by: Marc Handalian <[email protected]>
Copy link
Contributor

✅ Gradle check result for 480c6b1: SUCCESS

Copy link

codecov bot commented Jul 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.81%. Comparing base (95fe9cb) to head (480c6b1).
Report is 9 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #15011      +/-   ##
============================================
- Coverage     71.86%   71.81%   -0.05%     
+ Complexity    62757    62739      -18     
============================================
  Files          5161     5161              
  Lines        294370   294372       +2     
  Branches      42579    42579              
============================================
- Hits         211548   211417     -131     
- Misses        65386    65531     +145     
+ Partials      17436    17424      -12     

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

@mch2 mch2 added the backport 2.x Backport to 2.x branch label Jul 30, 2024
@mch2 mch2 merged commit f977f19 into opensearch-project:main Jul 30, 2024
58 of 59 checks passed
@mch2 mch2 deleted the reststatustest branch July 30, 2024 19:31
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jul 30, 2024
…ist (#15011)

This test has a reproducible failure when the highest "failure" status
is 100 level. This happens because RestStatus.status treats these as OK.

Signed-off-by: Marc Handalian <[email protected]>
(cherry picked from commit f977f19)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
dblock pushed a commit that referenced this pull request Jul 31, 2024
…ist (#15011) (#15027)

This test has a reproducible failure when the highest "failure" status
is 100 level. This happens because RestStatus.status treats these as OK.


(cherry picked from commit f977f19)

Signed-off-by: Marc Handalian <[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 Aug 20, 2024
…ist (opensearch-project#15011)

This test has a reproducible failure when the highest "failure" status
is 100 level. This happens because RestStatus.status treats these as OK.

Signed-off-by: Marc Handalian <[email protected]>
wdongyu pushed a commit to wdongyu/OpenSearch that referenced this pull request Aug 22, 2024
…ist (opensearch-project#15011)

This test has a reproducible failure when the highest "failure" status
is 100 level. This happens because RestStatus.status treats these as OK.

Signed-off-by: Marc Handalian <[email protected]>
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 skip-changelog :test Adding or fixing a test >test-failure Test failure from CI, local build, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] RestStatusTests.testStatusReturnsFailureStatusWhenFailuresExist fails with reproducible seed
2 participants