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

Add BWC tests for PA #69

Merged
merged 5 commits into from
Oct 12, 2021
Merged

Add BWC tests for PA #69

merged 5 commits into from
Oct 12, 2021

Conversation

sruti1312
Copy link
Contributor

@sruti1312 sruti1312 commented Sep 30, 2021

Signed-off-by: Sruti Parthiban [email protected]

Is your feature request related to a problem? Please provide an existing Issue # , or describe.
#55

Describe the solution you are proposing
Add BWC tests for PA.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

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

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.

@codecov-commenter
Copy link

codecov-commenter commented Sep 30, 2021

Codecov Report

Merging #69 (0c3cac3) into main (898c5af) will increase coverage by 0.03%.
The diff coverage is n/a.

❗ Current head 0c3cac3 differs from pull request most recent head 582ece8. Consider uploading reports for the commit 582ece8 to get more accurate results
Impacted file tree graph

@@             Coverage Diff              @@
##               main      #69      +/-   ##
============================================
+ Coverage     72.07%   72.11%   +0.03%     
  Complexity      356      356              
============================================
  Files            44       44              
  Lines          2510     2510              
  Branches        160      160              
============================================
+ Hits           1809     1810       +1     
+ Misses          596      595       -1     
  Partials        105      105              
Impacted Files Coverage Δ
...performanceanalyzer/PerformanceAnalyzerPlugin.java 76.92% <0.00%> (+0.96%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 898c5af...582ece8. Read the comment docs.

@sruti1312 sruti1312 force-pushed the feature/bwc-test branch 2 times, most recently from 9ac68de to a5d50ac Compare September 30, 2021 20:10
@@ -47,6 +47,12 @@ jobs:
-Dperformance-analyzer-rca.repo="https://github.com/opensearch-project/performance-analyzer-rca.git" \
-Dperformance-analyzer-rca.branch=main \
-Dopensearch.version=1.1.0-SNAPSHOT
- name: Assemble PA jar for BWC tests
working-directory: ./tmp/performance-analyzer
Copy link
Member

Choose a reason for hiding this comment

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

Is this actually supposed to have a preceding '.' in the path?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PA is checked out in ./tmp/performanceanalyzer

kjoseph07
kjoseph07 previously approved these changes Sep 30, 2021
build.gradle Outdated
@@ -456,6 +466,163 @@ task integTest(type: RestIntegTestTask) {
classpath = sourceSets.test.runtimeClasspath
}

testClusters.integTest {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed this method.

Signed-off-by: Sruti Parthiban <[email protected]>
break;
case MIXED:
Assert.assertTrue(pluginNames.contains("opensearch-performance-analyzer"));
ensurePAStatus(RestConfig.PA_BASE_URI, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Curious, will there be other tests for features to ensure backwards compatibility?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We do need to create additional tests to cover other test cases. PA does not create or read any system indices, so all tests will be towards testing the REST API's.

Also using this framework we cannot test the PA RCA component as it needs additional configurations.

Copy link
Contributor

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

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

Looks like there are merge conflicts, can you please fix those?

Copy link
Contributor

@VachaShah VachaShah left a comment

Choose a reason for hiding this comment

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

Thank you @sruti1312 for adding these bwc tests! Would love to see further test cases for various upgrade paths.

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.

5 participants