-
Notifications
You must be signed in to change notification settings - Fork 76
kola run
should allow for exiting zero even if tests failed
#1059
Comments
Thanks for writing this up, somehow it seems to have slipped off my radar. |
just spitballing: could assign different exit codes for different failures. 1 for panic, 2 for test failure, etc |
To clarify, I think we're mostly interested in discerning between two broad categories: test failures, and "everything else". Being able to tell kola to not exit nonzero on the former means we can let a shell script with |
On this topic, noticed this today:
I guess as it's set up right now, a missing qcow2 translates to failing tests. Whereas I would've expected |
I know I've talked with various people outside of this thread about this in the past but before I dive into a response let me give a dump of relevant information, feel free to reach out if you want to dive a bit more into any of the topics:
Are you advocating for adding platform specific checks inside of the runner? I'm not sure that I agree with that. The Platform/API code knows how to interact with the specific platform to validate that parameters are correct / exist while the runner specifically just knows how to create Tests and run them. Machine creation is essentially a setup task for the test, I don't see this failure as any different than a test failing because it's setup required it to connect to a database that wasn't routable. Yes, in this specific case |
Closed in #1153 |
Now that coreos/mantle#1059 is fixed (see coreos/mantle#1153), we can use the new `--no-test-exit-error` switch to be more strict about kola error handling. This way, we immediately fail the build if something fundamental went wrong with kola.
Now that coreos/mantle#1059 is fixed (see coreos/mantle#1153), we can use the new `--no-test-exit-error` switch to be more strict about kola error handling. This way, we immediately fail the build if something fundamental went wrong with kola.
Right now, there's no practical way to discern between a test failing and a golang panic, etc... Would be really nice to have a e.g.
--exit-zero-on-test-failures
so we can discern those two cases.There are some gray areas of course (see prior discussions in coreos/fedora-coreos-pipeline#114 (comment)), though we can at least start with the obvious stuff (e.g. not passing the right
kola run
switches).The text was updated successfully, but these errors were encountered: