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 ScalingThreadPoolTests.testScalingThreadPoolConfiguration test #7539

Merged
merged 1 commit into from
May 12, 2023

Conversation

ashking94
Copy link
Member

@ashking94 ashking94 commented May 12, 2023

Description

The threadpool size in the main source code and the expected size in test code were different causing flaky test. This PR fixes the expected size in the test code.

Related Issues

Resolves #7530

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)

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.

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@ashking94
Copy link
Member Author

Gradle Check (Jenkins) Run Completed with:

Flay tests - https://build.ci.opensearch.org/job/gradle-check/15299/#showFailuresLink

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@ashking94
Copy link
Member Author

Gradle Check (Jenkins) Run Completed with:

Unrelated continuous build failures for all PR builds happening and on main branch - #7540

@reta reta mentioned this pull request May 12, 2023
6 tasks
@reta
Copy link
Collaborator

reta commented May 12, 2023

@ashking94 could you rebase please?

@github-actions
Copy link
Contributor

Gradle Check (Jenkins) Run Completed with:

@codecov
Copy link

codecov bot commented May 12, 2023

Codecov Report

Merging #7539 (c1d1a5a) into main (d9f840f) will decrease coverage by 0.06%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main    #7539      +/-   ##
============================================
- Coverage     70.58%   70.52%   -0.06%     
+ Complexity    59757    59727      -30     
============================================
  Files          4896     4896              
  Lines        286779   286779              
  Branches      41331    41331              
============================================
- Hits         202418   202251     -167     
- Misses        67647    67851     +204     
+ Partials      16714    16677      -37     

see 465 files with indirect coverage changes

@reta reta merged commit b1871df into opensearch-project:main May 12, 2023
@reta reta added the backport 2.x Backport to 2.x branch label May 12, 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:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add ../.worktrees/backport-2.x 2.x
# Navigate to the new working tree
pushd ../.worktrees/backport-2.x
# Create a new branch
git switch --create backport/backport-7539-to-2.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 b1871df36e3a80479ee4b461478ee45d8d308d10
# Push it to GitHub
git push --set-upstream origin backport/backport-7539-to-2.x
# Go back to the original working tree
popd
# Delete the working tree
git worktree remove ../.worktrees/backport-2.x

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

@reta
Copy link
Collaborator

reta commented May 12, 2023

@ashking94 sadly manual backport is needed to 2.x, could you please take it? thank you

ashking94 added a commit to ashking94/OpenSearch that referenced this pull request May 23, 2023
gbbafna pushed a commit that referenced this pull request May 23, 2023
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 bug Something isn't working skip-changelog Storage:Durability Issues and PRs related to the durability framework v2.8.0 'Issues and PRs related to version v2.8.0'
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Flaky org.opensearch.threadpool.ScalingThreadPoolTests.testScalingThreadPoolConfiguration test
5 participants