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 testEqualsAndHashcode in SearchRequestTests #10649

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

dzane17
Copy link
Contributor

@dzane17 dzane17 commented Oct 16, 2023

Description

Fix for flaky SearchRequestTests.testEqualsAndHashcode

Related Issues

Resolves #10643
Caused by #10351

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff
  • Commit changes are listed out in CHANGELOG.md file (See: Changelog)
  • Public documentation issue/PR created

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.

@reta
Copy link
Collaborator

reta commented Oct 16, 2023

Thanks @dzane17 !

@github-actions github-actions bot added bug Something isn't working flaky-test Random test failure that succeeds on second run labels Oct 16, 2023
@github-actions
Copy link
Contributor

Compatibility status:

Checks if related components are compatible with change 9dffac7

Incompatible components

Incompatible components: [https://github.com/opensearch-project/sql.git, https://github.com/opensearch-project/ml-commons.git, https://github.com/opensearch-project/performance-analyzer-rca.git]

Skipped components

Compatible components

Compatible components: [https://github.com/opensearch-project/security-analytics.git, https://github.com/opensearch-project/custom-codecs.git, https://github.com/opensearch-project/security.git, https://github.com/opensearch-project/opensearch-oci-object-storage.git, https://github.com/opensearch-project/index-management.git, https://github.com/opensearch-project/observability.git, https://github.com/opensearch-project/geospatial.git, https://github.com/opensearch-project/job-scheduler.git, https://github.com/opensearch-project/notifications.git, https://github.com/opensearch-project/cross-cluster-replication.git, https://github.com/opensearch-project/neural-search.git, https://github.com/opensearch-project/k-nn.git, https://github.com/opensearch-project/alerting.git, https://github.com/opensearch-project/performance-analyzer.git, https://github.com/opensearch-project/anomaly-detection.git, https://github.com/opensearch-project/asynchronous-search.git, https://github.com/opensearch-project/common-utils.git]

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

  • RESULT: UNSTABLE ❕
  • TEST FAILURES:
      1 org.opensearch.remotestore.SegmentReplicationUsingRemoteStoreIT.testRestartPrimary

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #10649 (9dffac7) into main (dd63559) will increase coverage by 0.12%.
Report is 5 commits behind head on main.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main   #10649      +/-   ##
============================================
+ Coverage     71.03%   71.16%   +0.12%     
- Complexity    58414    58444      +30     
============================================
  Files          4853     4853              
  Lines        275670   275670              
  Branches      40118    40118              
============================================
+ Hits         195831   196187     +356     
+ Misses        63455    63032     -423     
- Partials      16384    16451      +67     

see 458 files with indirect coverage changes

@reta reta merged commit d46a012 into opensearch-project:main Oct 17, 2023
55 of 85 checks passed
@reta reta added the backport 2.x Backport to 2.x branch label Oct 17, 2023
@opensearch-trigger-bot
Copy link
Contributor

The backport to 2.x failed:

The process '/usr/bin/git' failed with exit code 128

To backport manually, run these commands in your terminal:

# Navigate to the root of your repository
cd $(git rev-parse --show-toplevel)
# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/OpenSearch/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/OpenSearch/backport-2.x
# Create a new branch
git switch --create backport/backport-10649-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 d46a012c9fb01f7b3fb58a1c8fff1e352fe9efb8
# Push it to GitHub
git push --set-upstream origin backport/backport-10649-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/OpenSearch/backport-2.x

Then, create a pull request where the base branch is 2.x and the compare/head branch is backport/backport-10649-to-2.x.

@reta
Copy link
Collaborator

reta commented Oct 17, 2023

@dzane17 could you please backport to 2.x manually? thank you

@dzane17
Copy link
Contributor Author

dzane17 commented Oct 17, 2023

@reta We have not backported the original PR to 2.x yet. I will manually backport this one at the same time.

@dzane17 dzane17 deleted the request-lat-flaky branch October 17, 2023 16:36
@reta reta removed the backport 2.x Backport to 2.x branch label Oct 17, 2023
deshsidd pushed a commit to deshsidd/OpenSearch that referenced this pull request Oct 19, 2023
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Oct 23, 2023
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Oct 23, 2023
@kkhatua kkhatua added the backport 2.x Backport to 2.x branch label Oct 23, 2023
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 23, 2023
Signed-off-by: David Zane <[email protected]>
(cherry picked from commit d46a012)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
peternied pushed a commit that referenced this pull request Nov 2, 2023
(cherry picked from commit d46a012)

Signed-off-by: David Zane <[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>
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Dec 13, 2023
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Jan 19, 2024
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Jan 19, 2024
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Feb 6, 2024
austintlee pushed a commit to austintlee/OpenSearch that referenced this pull request Feb 6, 2024
shiv0408 pushed a commit to Gaurav614/OpenSearch that referenced this pull request Apr 25, 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 backport-failed bug Something isn't working flaky-test Random test failure that succeeds on second run skip-changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] org.opensearch.action.search.SearchRequestTests.testEqualsAndHashcode is flaky
3 participants