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 spotbugs failure by removing unused variable. #47

Merged
merged 1 commit into from
Aug 17, 2021

Conversation

mch2
Copy link
Member

@mch2 mch2 commented Aug 17, 2021

Signed-off-by: Marc Handalian [email protected]

Is your feature request related to a problem? Please provide an existing Issue # , or describe.
This PR fixes the build of main by fixing spotbugs to pass.

This commit removed the usage of this variable but left its declaration, causing spotbugs to fail.

Describe the solution you are proposing
Remove unused variable. Without this change the following fails on main:

./gradlew build -x test

This is further causing problems because the performance-analyzer plugin repo always clones and builds main.

closes #46

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • [ x] Commits are signed per the DCO using --signoff

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.

@dblock
Copy link
Member

dblock commented Aug 17, 2021

We need to get this build to green. Comment out the failing test and open an issue? I see testNoCapacityIncreaseOnUnHealthy failing.

@mch2
Copy link
Member Author

mch2 commented Aug 17, 2021

This check has not passed on PR in two months. The previous run before this had the same tests failing and multiple PRs merged.

669 tests completed, 87 failed

I will open an issue to address these unit tests, but I suggest we merge this so at least building without tests succeeds.

@mch2
Copy link
Member Author

mch2 commented Aug 17, 2021

I have opened #49

@sruti1312 sruti1312 merged commit 63cd019 into opensearch-project:main Aug 17, 2021
@mch2 mch2 deleted the spotbugs branch August 17, 2021 22:41
eirsep pushed a commit to eirsep/performance-analyzer-rca that referenced this pull request Sep 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build fails due to spotbug check.
3 participants