opensearch-project / performance-analyzer

📈 Get detailed performance metrics from your cluster independently of the Java Virtual Machine (JVM)
https://opensearch.org/docs/latest/monitoring-plugins/pa/index/
Apache License 2.0
36 stars 66 forks source link

Ensure that PATransportChannel delegates to wrapped channel and add tests #609

Open cwperks opened 10 months ago

cwperks commented 10 months ago

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

Ensures that PATransportChannel delegates implementations to the wrapped channel except for:

Added tests that use reflection to ensure that if the TransportChannel interface changes that the CI in this repo catches it to ensure that this wrapper class gets modified accordingly.

Additional context

https://github.com/opensearch-project/performance-analyzer/issues/606

Check List

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[bot] commented 10 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 69.37%. Comparing base (9cb092f) to head (e5bfb28). Report is 1 commits behind head on main.

:exclamation: Current head e5bfb28 differs from pull request most recent head c9edae1

Please upload reports for the commit c9edae1 to get more accurate results.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #609 +/- ## ============================================ - Coverage 70.88% 69.37% -1.51% + Complexity 421 374 -47 ============================================ Files 49 44 -5 Lines 3125 2691 -434 Branches 194 172 -22 ============================================ - Hits 2215 1867 -348 + Misses 785 721 -64 + Partials 125 103 -22 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

khushbr commented 9 months ago

The BWC tests are failing, can you bump up the BWC version to 2.11 here: https://github.com/opensearch-project/performance-analyzer/blob/main/build.gradle#L13. The same needs to be back-ported to 2.x branch.

dblock commented 3 months ago

@cwperks want to finish this?

cwperks commented 3 months ago

Rebased with main. @Gaganjuneja @psychbot Can you take a look?