Closed
Description
I'm trying to sync the Unity fork of the dotnet/runtime repo with upstream changes made last week and we're seeing failures on our CI, trying to parse the test results. We're running this:
src\tests\run.cmd x64 checked
And I see this error:
Analyzing C:\build\output\Unity-Technologies\runtime\artifacts\log\TestRun.xml
Traceback (most recent call last):
File "C:\build\output\Unity-Technologies\runtime\src\tests\..\..\src\tests\run.py", line 1387, in <module>
sys.exit(main(args))
File "C:\build\output\Unity-Technologies\runtime\src\tests\..\..\src\tests\run.py", line 1375, in main
parse_test_results(args, tests, assemblies)
File "C:\build\output\Unity-Technologies\runtime\src\tests\..\..\src\tests\run.py", line 1174, in parse_test_results
parse_test_results_xml_file(args, item, item_name, tests, assemblies)
File "C:\build\output\Unity-Technologies\runtime\src\tests\..\..\src\tests\run.py", line 1194, in parse_test_results_xml_file
assembly_name = assembly.attrib["name"]
KeyError: 'name'
Not surprisingly, I see in that XML file some results that have an element like this: <assembly \>
, so I think that causing the issue. Should the parsing code handle an element like this? Or does the existence of this element indicate a different problem?
It looks like these changes came in with #61942 last week. Are we doing something wrong on our CI, that this should not happen? Or is there a known issue around this?