Conversation
Due to us carrying a custom kiwi-revert-bls-default-for-suse.patch patch there is a different grub bootloader BLS behavior which causes some unit tests to fail when they run outside of the general source. This commit fixes it.
When using doctopt argument information that contains the "|" symbol it gets wrongly evaluated as an option in newer versions of docopt. This commit changes the argument information to use a "," instead
|
The builds have failed. |
|
@Conan-Kudo There is little I can do here. The error from the build for And that would actually be correct. This means in this mock environment the call for would return As such I believe something is wrong with the architecture emulation in the build environment |
|
@Conan-Kudo wait maybe it's just me ... I took a closer look and there is some issue I overlooked. Stay tuned, I'm on it |
|
urks this is a race condition in the parallel invocation of pytest. I see you are using 8 workers I'm using 4 workers and in this scenario the problem does not happen. If I switch to 8 it fails for me in the same way. I believe this is because several tests mock the architecture to run an arch specific test. That arch mock is however global and if at the same time another test runs which does not work with this arch mock it fails. I need to check where the race comes from :( |
|
Well, that explains why it doesn't fail on RHEL... We don't have the ability to run pytest in parallel there. 😅 |
Make sure to not inherit arch settings from parallel runs of the unit tests.
|
@Conan-Kudo ok, I think I found the race condition. Can you give it a new try ? Thanks |
|
Thanks, still some issues, checking |
It should not depend on the order of the tests if the custom_args parameter secure_image_file got initialized or not
The test was missing proper mocking and did not work as a generic test on all archs.
|
@Conan-Kudo ok next try please and thanks for your patience. race conditions are hard to debug, but there was also a test that was really not well written from my side and I actually wondered why it did not fail more often. |
|
This looks promising :) |
|
Looks like everything passes now. |
|
@Conan-Kudo yes can you approve, then I'll zip a new release and you will be unblocked. |
This change is two fold
Fixed docopt docstring
When using doctopt argument information that contains the "|" symbol it gets wrongly evaluated as an option
in newer versions of docopt. This commit changes the argument information to use a "," instead
Fix unit tests
Due to us carrying a custom kiwi-revert-bls-default-for-suse.patch patch there is a different grub bootloader BLS behavior which causes some unit tests to fail when they run outside of the general source. This commit fixes it.