Skip to content

FIX BytesRefsCollectionBuilderTests.testBuildSortedNotSorted; Followup for #17714: Remove redundant tests #17902

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

Merged
merged 2 commits into from
Apr 11, 2025

Conversation

mkhludnev
Copy link
Contributor

I wasn't clear in communication under #17714. Let's sweep these tests.

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: Mikhail Khludnev <[email protected]>
Copy link
Contributor

@jainankitk jainankitk left a comment

Choose a reason for hiding this comment

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

I was hoping to keep the test code, if we ever need to run locally. But, I guess we can clean!

Copy link
Contributor

❌ Gradle check result for dc44995: 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?

@mkhludnev
Copy link
Contributor Author

looking into the failure

Signed-off-by: Mikhail Khludnev <[email protected]>
Copy link
Contributor

❌ Gradle check result for 584643a: 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?

@mkhludnev
Copy link
Contributor Author

I think these failures are flaky. @jainankitk please consider for merging.

Copy link
Contributor

❌ Gradle check result for 584643a: 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?

@harshavamsi
Copy link
Contributor

@jainankitk can we re-run gradle check? This failure is showing up in other PRs and should get merged

@jainankitk
Copy link
Contributor

@jainankitk can we re-run gradle check? This failure is showing up in other PRs and should get merged

Yes, retried the gradle check!

Copy link
Contributor

❌ Gradle check result for 584643a: 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?

@mkhludnev
Copy link
Contributor Author

@jainankitk
Copy link
Contributor

Retrying gradle check as caused due to unrelated failure

Copy link
Contributor

❌ Gradle check result for 584643a: 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?

@jainankitk
Copy link
Contributor

Still unrelated failures, retrying gradle check:

[Test Result](https://build.ci.opensearch.org/job/gradle-check/56225/testReport/) (3 failures / +3)

    [org.opensearch.rest.ReactorNetty4StreamingStressIT.testCloseClientStreamingRequest](https://build.ci.opensearch.org/job/gradle-check/56225/testReport/junit/org.opensearch.rest/ReactorNetty4StreamingStressIT/testCloseClientStreamingRequest/)
    [org.opensearch.snapshots.DedicatedClusterSnapshotRestoreIT.testSnapshotWithStuckNode](https://build.ci.opensearch.org/job/gradle-check/56225/testReport/junit/org.opensearch.snapshots/DedicatedClusterSnapshotRestoreIT/testSnapshotWithStuckNode/)

Copy link
Contributor

❌ Gradle check result for 584643a: 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?

@jainankitk
Copy link
Contributor

We have too many flaky tests, another run failed due to unrelated test:

[Test Result](https://build.ci.opensearch.org/job/gradle-check/56230/testReport/) (1 failure / ±0)

    [org.opensearch.indices.replication.SegmentReplicationResizeRequestIT.testCreateShrinkIndexThrowsExceptionWhenReplicasBehind](https://build.ci.opensearch.org/job/gradle-check/56230/testReport/junit/org.opensearch.indices.replication/SegmentReplicationResizeRequestIT/testCreateShrinkIndexThrowsExceptionWhenReplicasBehind/)

Copy link
Contributor

✅ Gradle check result for 584643a: SUCCESS

Copy link

codecov bot commented Apr 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.51%. Comparing base (1628152) to head (584643a).
Report is 20 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main   #17902      +/-   ##
============================================
+ Coverage     72.43%   72.51%   +0.07%     
- Complexity    66789    66837      +48     
============================================
  Files          5449     5452       +3     
  Lines        309085   309210     +125     
  Branches      44979    44991      +12     
============================================
+ Hits         223899   224226     +327     
+ Misses        66906    66556     -350     
- Partials      18280    18428     +148     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jainankitk jainankitk merged commit b842e48 into opensearch-project:main Apr 11, 2025
32 checks passed
mkhludnev added a commit to mkhludnev/OpenSearch that referenced this pull request Apr 12, 2025
Followup for opensearch-project#17714: Remove redundant tests (opensearch-project#17902)
* Remove redundant tests

Signed-off-by: Mikhail Khludnev <[email protected]>

* Fix empty collection test

Signed-off-by: Mikhail Khludnev <[email protected]>

---------

Signed-off-by: Mikhail Khludnev <[email protected]>
rgsriram pushed a commit to rgsriram/OpenSearch that referenced this pull request Apr 15, 2025
Followup for opensearch-project#17714: Remove redundant tests (opensearch-project#17902)
* Remove redundant tests

Signed-off-by: Mikhail Khludnev <[email protected]>

* Fix empty collection test

Signed-off-by: Mikhail Khludnev <[email protected]>

---------

Signed-off-by: Mikhail Khludnev <[email protected]>
Signed-off-by: Sriram Ganesh <[email protected]>
jainankitk pushed a commit that referenced this pull request Apr 21, 2025
* Pass in order terms as sorted to TermInSetQuery() (#17714)

* pass in order terms as sorted to TermInSetQuery()

Signed-off-by: Mikhail Khludnev <[email protected]>

* slightly more elegant solution

Signed-off-by: Mikhail Khludnev <[email protected]>

* Attempting mocking TermInSetQ constructor.

Signed-off-by: Mikhail Khludnev <[email protected]>

* Handle ids as well.

Signed-off-by: Mikhail Khludnev <[email protected]>

* forbidden api

Signed-off-by: Mikhail Khludnev <[email protected]>

* make unnecessary method slow but correct.

Signed-off-by: Mikhail Khludnev <[email protected]>

* make unnecessary method slow but correct.

Signed-off-by: Mikhail Khludnev <[email protected]>

* Polish test coverage

Signed-off-by: Mikhail Khludnev <[email protected]>

* CHANGELOG.md

Signed-off-by: Mikhail Khludnev <[email protected]>

* assertThrows

Signed-off-by: Mikhail Khludnev <[email protected]>

* spotlessApply

Signed-off-by: Mikhail Khludnev <[email protected]>

* coverage tests and refactoring

Signed-off-by: Mikhail Khludnev <[email protected]>

* javadoc

Signed-off-by: Mikhail Khludnev <[email protected]>

* javadoc

Signed-off-by: Mikhail Khludnev <[email protected]>

* mark nocommit

Signed-off-by: Mikhail Khludnev <[email protected]>

* one more nocommit test

Signed-off-by: Mikhail Khludnev <[email protected]>

* forbidden api

Signed-off-by: Mikhail Khludnev <[email protected]>

* no commit for out of line tests

Signed-off-by: Mikhail Khludnev <[email protected]>

* Review

Signed-off-by: Mikhail Khludnev <[email protected]>

---------

Signed-off-by: Mikhail Khludnev <[email protected]>
Signed-off-by: Mikhail Khludnev <[email protected]>

* Fix test

Signed-off-by: Mikhail Khludnev <[email protected]>

* Fix BytesRefsCollectionBuilderTests.testBuildSortedNotSorted

Followup for #17714: Remove redundant tests (#17902)
* Remove redundant tests

Signed-off-by: Mikhail Khludnev <[email protected]>

* Fix empty collection test

Signed-off-by: Mikhail Khludnev <[email protected]>

---------

Signed-off-by: Mikhail Khludnev <[email protected]>

---------

Signed-off-by: Mikhail Khludnev <[email protected]>
Signed-off-by: Mikhail Khludnev <[email protected]>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
Followup for opensearch-project#17714: Remove redundant tests (opensearch-project#17902)
* Remove redundant tests

Signed-off-by: Mikhail Khludnev <[email protected]>

* Fix empty collection test

Signed-off-by: Mikhail Khludnev <[email protected]>

---------

Signed-off-by: Mikhail Khludnev <[email protected]>
Signed-off-by: Harsh Kothari <[email protected]>
Harsh-87 pushed a commit to Harsh-87/OpenSearch that referenced this pull request May 7, 2025
Followup for opensearch-project#17714: Remove redundant tests (opensearch-project#17902)
* Remove redundant tests

Signed-off-by: Mikhail Khludnev <[email protected]>

* Fix empty collection test

Signed-off-by: Mikhail Khludnev <[email protected]>

---------

Signed-off-by: Mikhail Khludnev <[email protected]>
Signed-off-by: Harsh Kothari <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants