Uh oh!
There was an error while loading. Please reload this page.
removed unused HypervDummyResourceBase class - #1437
Conversation
terbolous
commented
Mar 10, 2016
Have you done any testing? |
rafaelweingartner
commented
Mar 10, 2016
@eriweb The only reference for that class name is in a log at line 250 of class “com.cloud.hypervisor.hyperv.discoverer.HypervServerDiscoverer”, the log says that it is creating the dummyResource, however, it creates the “com.cloud.hypervisor.hyperv.resource.HypervDirectConnectResource” at line 282. This is a fair and simple removal of unused code/class. @pedro-martins , could you also fix the log message in “HypervServerDiscoverer” at line 250? |
com.cloud.hypervisor.hyperv.resource.HypervDummyResourceBase class and change the log message in com.cloud.hypervisor.hyperv.discoverer.HypervServerDiscoverer
4e3096b to
9a2f90aComparepedro-martins
commented
Mar 11, 2016
@rafaelweingartner ty for your review. Changed the log message. Ty. |
terbolous
commented
Mar 11, 2016
@rafaelweingartner that's not really an answer, and I stand my question. Have you done any testing? does the code compile? does unit tests run? The code removed might not be used, but in a big sized project like this assumption is the mother of (almost) all fuckups. |
pedro-martins
commented
Mar 11, 2016
Hi @eriweb, thanks for reviewing this PR. I did a maven install in the ACS project and it built and ran all tests cases with no errors. But I didn't the integration test. Ty. |
rafaelweingartner
commented
Mar 11, 2016
@eriweb I saw the Jenkins build, and it was ok, that meant the code compiled and all of the tests cases (unit and integration tests) were executed properly. I noticed that the functional tests with Marvin were not executed (there is not CI in place right now), but I did not find them needed for this kind of contribution. Additionally, I know that mistakes can happen if the code is not properly tested and reviewed. I just said that it did not need functional testing after getting the code, and carefully checking it myself; that is how I found the only reference to that class in a log message. @pedro-martins LGTM to this PR |
GabrielBrascher
commented
Mar 12, 2016
Given that @pedro-martins had no problems on running tests, the code LGTM. |
remibergsma
commented
Mar 12, 2016
@GabrielBrascher based on what tests? It was only compiled. I'm with @eriweb here, this should not go in without testing. Ask on the ML if someone with HyperV can confirm it still works and run at least @rafaelweingartner "There are things that do not need to be tested"? C'mon please. To be clear: -1:-1: on this until we have done integration testing. |
rafaelweingartner
commented
Mar 12, 2016
@remibergsma, I respect a lot your work here, but I really do not want to prolong this discussion; it seems that it was taken too far. Let’s wait until someone execute the functional tests. |
remibergsma
commented
Mar 12, 2016
I see your point @rafaelweingartner, no hard feelings here. If we simply always run the integration tests, there is no discussion whether or not we need to run them. Otherwise others will also state they don't need testing and we end up with all sorts of nasty bugs. Let someone verify it against a really hyperv box. And if we can't find anyone who cares to do this, I'll +1 a PR that removes hyperv all together ;-). |
rafaelweingartner
commented
Mar 12, 2016
I also got your point ;). |
yadvr
commented
May 2, 2016
A CI testing (one with HyperV) should confirm if this PR can be accepted |
swill
commented
May 2, 2016
I don't have the ability to test HyperV. Can anyone verify this PR for me? |
koushik-das
commented
May 17, 2016
@anshul1886@anshulgangwar Can you review this? |
anshul1886
commented
May 26, 2016
LGTM. This file seems to be remains from the previous attempt of HyperV support which was talking to SCVMM. |
swill
commented
May 26, 2016
I think the only thing we are missing with this one is verification that the change works and does not break anything. @pedro-martins is there anything you can provide to show this is working? |
bvbharatk
commented
Jun 6, 2016
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no):https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 Failed tests:
Skipped tests: Passed test suits: |
cloudmonger
commented
Jul 27, 2017
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no):https://www.dropbox.com/sh/r2si930m8xxzavs/AAAzNrnoF1fC3auFrvsKo_8-a?dl=0 Failed tests:
Skipped tests: Passed test suits: |
yadvr
commented
Dec 19, 2017
LGTM, merging. |
Was removed the class com.cloud.hypervisor.hyperv.resource.HypervDummyResourceBase
Well, I think that this class isn't used in the ACS code, but if I'm wrong, please be free to comment.
Ty.