-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Try using xml logger #18491
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
Try using xml logger #18491
Conversation
@MattGal can you help me figure out where I need to copy the xml test results file for xml reporter to upload them correctly? We are trying to see if moving away from trx would get this to work faster, so we installed https://github.com/spekt/xunit.testlogger which is generating an xml file now, but its not being found by the reporter, I tried copying it to root, but maybe it needs to go somewhere else? I copied TestResults.xml
|
Some points:
|
I see results in Kusto! 🎉 |
echo "Copying TestResults\* to Root\" | ||
for /r TestResults %x in (*.xml) do copy "%x" out | ||
echo "Copying TestResults\TestResults.xml to ." | ||
copy TestResults\TestResults.xml testResults.xml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course, this means we're only going to get data from un-quarantined tests. We should come up with a plan for how to get this data out. Maybe we have to rethink our quarantine process.
If we ran a single run of all tests, we'd still be able to tell if they were quarantined or not by the traits. Unfortunately, the run would fail even when only quarantined tests fail.
Another option is to change how the quarantine process works and just skip tests that are quarantined. It would mean we can't monitor them for when they get non-flaky, but we'd still be able to track which tests were skipped because they were flaky and track the number of skipped flaky tests over time so that teams can drive that number down.
Food for thought at the next DoI meeting :).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should probably just add a flaky-test.yml and just run all tests in that run every day on master, and get rid of the flaky test pass in our normal PRs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we'd have all the data in kusto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, I think a separate run is the solution. I think we can (and should) continue running them on PRs if we can though. The main downside is that for projects with no quarantined tests, we’ll submit a Helix work item with almost no action, it will run 0 tests. We could start with that though. I did some spelunking and it’s definitely feasible to run a little code to check a test assembly (once built) for any quarantined tests using the vstest APIs. That way we could save submitting a no-op job to helix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool maybe we can just repurpose the old helix-test pipeline to be the flaky helix test run
Windows and linux look like they are working now, marking as ready for review |
Hooray! |
Try using xml vstest logger instead of trx to try and get xunit reporter working. Also add support for logs to windows command and various minor cleanup