-
Notifications
You must be signed in to change notification settings - Fork 49
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
tests supposed to run with pytest shouldn't fall back to unittest in case of problems #321
Comments
There are multiple way you can run tests for a Python package. With the first extension failing
I don't think |
I think colcon should continue to run further tests (unless |
I am not referring to other tests from other packages. So my question again: do you suggest to get rid of the fall back behavior? As I mentioned above that fall back behavior is very much desired in a lot of other cases for increasing robustness. How else are you suggesting |
|
See #322 (comment) why I think this goes against the philosophy to be as robust against failures as possible.
No, that is not a viable option. All extensions are considered in priority order and the highest one which matches will be responsible to perform the task. Multiple extensions performing the same task doesn't make any sense.
This is the essential point. Therefore I think a solution should address this exact case - the two extensions in question shouldn't be both considered in this case. |
I don't know that I agree. It seems like one extension to run functional testing and another to run performance testing seems like a plausible use case. Or maybe a package has some Pytest tests and some CMake tests. Trundling on despite errors is not a good design choice. This error has to be made visible; at least visible enough that there's a chance of catching such a bug amidst a mountain of CI output. |
Neither of such cases currently exist and are even possible. A single extension is in charge of performing the action. It can choose to delegate the work to other extensions but that is not changing that a single entry point is being chosen to do the work.
It feels to me that you want to describe things in the most negative way possible - even if I comment in this thread extensively why things are done the way they are (which you happily ignore afterwards). I also clearly stated that the fallback from I changed the title to what I see as the acceptance criteria for this to be closed. |
I'm sorry. I did not intend to be negative and I did not intend to raise hackles. I'm sure you understand how important it is to CI that tests are run as designed and the results made visible. I'm going to back off this issue and let you resolve it as you see fit. I'm sure I don't have the same insight into the architecture of Colcon as you do. |
Also updated the ticket to link to fix the link to the log. |
http://build.ros2.org/view/Fci/job/Fci__nightly-cyclonedds_ubuntu_focal_amd64/40/consoleText
Although the underlying issue was fixed in #317,
colcon test
incorrectly reported that testing completed successfully and was not flagged on CI.The text was updated successfully, but these errors were encountered: