Skip to content
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

Fix work item exit code for helix tests #45164

Merged
merged 2 commits into from
Nov 24, 2020
Merged

Fix work item exit code for helix tests #45164

merged 2 commits into from
Nov 24, 2020

Conversation

alexperovich
Copy link
Member

The helix work items are only supposed to return non-zero if they fail
to report tests for some reason.

The helix work items are only supposed to return non-zero if they fail
to report tests for some reason.
@ghost
Copy link

ghost commented Nov 24, 2020

Tagging subscribers to this area: @safern, @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

The helix work items are only supposed to return non-zero if they fail
to report tests for some reason.

Author: alexperovich
Assignees: alexperovich
Labels:

area-Infrastructure-libraries

Milestone: -

@safern
Copy link
Member

safern commented Nov 24, 2020

I don't understand the need of this change. Wouldn't this cause a workitem to be stored as "Pass" on Kusto even if there are test failures?

What changed? We've been doing this for years and it has been working just fine.

@alexperovich
Copy link
Member Author

A workitem is supposed to be "Passed" if it ran tests without crashing. This is causing tons of noise in the test results, because the failed work items get reported as a failed test.

@safern
Copy link
Member

safern commented Nov 24, 2020

A workitem is supposed to be "Passed" if it ran tests without crashing.

Really? That seems confusing, if I read data and I see a workitem passed, my instinct would be to think there were test failures.

@safern I may be wrong, but the constant test failures may be an indication of what is happening.

That's unrelated, the constant test failures are infrastructure issues we're trying to fix. Could you elaborate on which test failures you're referring to in case they're not related?

@alexperovich
Copy link
Member Author

The "WorkItem" status in kusto becomes "failed" if there are test failures, and "bad exit" if the work item exited with non-zero. On top of that, the test failure report here https://dev.azure.com/dnceng/public/_test/analytics?definitionId=686&contextType=build is filled with "work item failures" that don't mean anything because the workitem "fails" if there are test failures. Each of those workitem failures is supposed to be a crash-level failure that needs an investigation, not a "o this test failed" type failure.

@safern
Copy link
Member

safern commented Nov 24, 2020

The "WorkItem" status in kusto becomes "failed" if there are test failures, and "bad exit" if the work item exited with non-zero.

Ah, ok that makes more sense.

Copy link
Member

@safern safern left a comment

Choose a reason for hiding this comment

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

@ViktorHofer this will need to be considered when moving to using VSTest, I don't know what exit code VSTest returns when a test fails

@alexperovich alexperovich merged commit 50c4607 into dotnet:master Nov 24, 2020
@alexperovich alexperovich deleted the fixHelixTestExitCode branch November 24, 2020 23:52
@ghost ghost locked as resolved and limited conversation to collaborators Dec 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants