Skip to content

Volume plugin tests [integration/plugin/volumes] should always be executed - checks for OS Type should happen within the test#40193

Merged
cpuguy83 merged 1 commit intomoby:masterfrom
vikramhh:volumes_plugins_test_failure
Dec 19, 2019
Merged

Volume plugin tests [integration/plugin/volumes] should always be executed - checks for OS Type should happen within the test#40193
cpuguy83 merged 1 commit intomoby:masterfrom
vikramhh:volumes_plugins_test_failure

Conversation

@vikramhh
Copy link

@vikramhh vikramhh commented Nov 7, 2019

The current check for OS type in integration/plugin/volumes is premature. The test will never even get to run on "disallowed" OS types. No result [PASS/FAIL/SKIP] will be shown in the output. With certain tools like go testsum, the test will always flagged as a failure on such OS types.

This can be fixed by removing the check in places before the actual test.

Signed-off-by: vikrambirsingh [email protected]

- What I did
Removed OS Type check from a test in the main function

- How I did it

- How to verify it
Running the test on all OS Types should produce result [PASS/FAIL/SKIP]

- Description for the changelog

Removed a premature check for OSType to check if the test should be skipped.

- A picture of a cute animal (not mandatory but encouraged)

Premature check for OS type means that the test
will never even get to run on other OS types. This
will cause it to be always flagged as a failure on
such OS types.

Signed-off-by: vikrambirsingh <[email protected]>
@vikramhh
Copy link
Author

vikramhh commented Nov 9, 2019

@thaJeztah - there are actually known failures here [the two test cases that are not fixed by https://github.com//pull/40155]. We are hitting the known issue here whereby Jenkins does not always mark the run as failed even when one or more tests fail. We should take #39998 in ASAP because at least it shows the checks as failed in such a case.

@kolyshkin
Copy link
Contributor

Hey @vikramhh, can you please add some prefix to this PR (and maybe commit as well). The current subject ("Check for OS Type and skip within the test") looks way too generic.

I suggest volume plugin tests: or something like that

@vikramhh vikramhh changed the title Check for OS Type and skip within the test Tests in integration/plugin/volumes should always be executed - checks for OS Type should happen within the test Nov 10, 2019
@vikramhh vikramhh changed the title Tests in integration/plugin/volumes should always be executed - checks for OS Type should happen within the test volume plugin tests [integration/plugin/volumes] should always be executed - checks for OS Type should happen within the test Nov 10, 2019
@vikramhh vikramhh changed the title volume plugin tests [integration/plugin/volumes] should always be executed - checks for OS Type should happen within the test Volume plugin tests [integration/plugin/volumes] should always be executed - checks for OS Type should happen within the test Nov 10, 2019
@vikramhh
Copy link
Author

@kolyshkin - thanks for the feedback. I have changed both the title and description accordingly.

@thaJeztah
Copy link
Member

@vikramhh is this ready for review? If so, could you move it out of "draft" mode?

@vikramhh vikramhh marked this pull request as ready for review November 22, 2019 17:14
Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
Copy link
Member

ping @cpuguy83 @AkihiroSuda @tiborvass PTAL

Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants