-
Notifications
You must be signed in to change notification settings - Fork 259
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
Cancelled tests not reported as failures #4196
Comments
Is this functionally expected to have a test being cancelled? For me, it is an error even if that's the result of a user requesting cancellation. We cannot say the test is ok as it didn't reach the end of its action. |
This is similar to #3699 I think. The overall run should still fail, but it can create noise in the logs or test explorer when trying to find actual failures. |
My use case is I have exposed a |
I understand the TE situation, let's put it on the side for a second to focus on CLI experience, what would be your expectations there? |
Personally I wouldn't count them under the failure counter, and I find the stacktrace clutter that makes real failures harder to find E.g.
|
Sounds reasonable to me to not report it as error (there is no additional info in the error anyway?) as long as we guarantee that the whole run will finish with error code. |
See this run: https://github.com/thomhurst/ModularPipelines/actions/runs/12072550368/job/33666771665?pr=787#step:9:3473
Cancelled tests are marked as failures.
I'd argue they shouldn't be counted as failures as that's misleading. They haven't failed per se, they were just terminated.
If the overall test run was cancelled it should fail overall, but not each cancelled test imo.
What do you think?
The text was updated successfully, but these errors were encountered: