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

[wasm] Tests randomly failing because the results xml was empty #71843

Closed
radical opened this issue Jul 8, 2022 · 3 comments
Closed

[wasm] Tests randomly failing because the results xml was empty #71843

radical opened this issue Jul 8, 2022 · 3 comments
Labels
arch-wasm WebAssembly architecture area-Build-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' test-failure

Comments

@radical
Copy link
Member

radical commented Jul 8, 2022

Example log:

2022-07-08T16:47:35.760Z	INFO   	run.py	__init__(48)	read_results	Found results file /datadisks/disk1/work/A0CE0977/w/B2EB091E/uploads/xharness-output/testResults.xml with format xunit
Traceback (most recent call last):
  File "/datadisks/disk1/work/A0CE0977/p/reporter/run.py", line 68, in <module>
    main()
  File "/datadisks/disk1/work/A0CE0977/p/reporter/run.py", line 65, in main
    reporter.report_results(all_results)
  File "/etc/helix/scripts/helix/test_reporting/packing_test_reporter.py", line 27, in report_results
    results = [x for x in results if x]
  File "/etc/helix/scripts/helix/test_reporting/packing_test_reporter.py", line 27, in <listcomp>
    results = [x for x in results if x]
  File "/datadisks/disk1/work/A0CE0977/p/reporter/test_results_reader/__init__.py", line 51, in read_results
    for result in file_results:
  File "/datadisks/disk1/work/A0CE0977/p/reporter/formats/xunit.py", line 47, in read_results
    for (_, element) in xml.etree.ElementTree.iterparse(path, events=['end']):
  File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 1227, in iterator
    root = pullparser._close_and_return_root()
  File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 1274, in _close_and_return_root
    root = self._parser.close()
xml.etree.ElementTree.ParseError: no element found: line 1, column 0

This will be fixed by dotnet/xharness#919 .

@radical radical added arch-wasm WebAssembly architecture blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' test-failure labels Jul 8, 2022
@dotnet-issue-labeler
Copy link

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Jul 8, 2022
@ghost
Copy link

ghost commented Jul 8, 2022

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Example log:

2022-07-08T16:47:35.760Z	INFO   	run.py	__init__(48)	read_results	Found results file /datadisks/disk1/work/A0CE0977/w/B2EB091E/uploads/xharness-output/testResults.xml with format xunit
Traceback (most recent call last):
  File "/datadisks/disk1/work/A0CE0977/p/reporter/run.py", line 68, in <module>
    main()
  File "/datadisks/disk1/work/A0CE0977/p/reporter/run.py", line 65, in main
    reporter.report_results(all_results)
  File "/etc/helix/scripts/helix/test_reporting/packing_test_reporter.py", line 27, in report_results
    results = [x for x in results if x]
  File "/etc/helix/scripts/helix/test_reporting/packing_test_reporter.py", line 27, in <listcomp>
    results = [x for x in results if x]
  File "/datadisks/disk1/work/A0CE0977/p/reporter/test_results_reader/__init__.py", line 51, in read_results
    for result in file_results:
  File "/datadisks/disk1/work/A0CE0977/p/reporter/formats/xunit.py", line 47, in read_results
    for (_, element) in xml.etree.ElementTree.iterparse(path, events=['end']):
  File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 1227, in iterator
    root = pullparser._close_and_return_root()
  File "/usr/lib/python3.6/xml/etree/ElementTree.py", line 1274, in _close_and_return_root
    root = self._parser.close()
xml.etree.ElementTree.ParseError: no element found: line 1, column 0

This will be fixed by dotnet/xharness#919 .

Author: radical
Assignees: -
Labels:

arch-wasm, blocking-clean-ci, test-failure

Milestone: -

@radical radical added area-Build-mono and removed untriaged New issue has not been triaged by the area owner labels Jul 8, 2022
@radical
Copy link
Member Author

radical commented Jul 9, 2022

Fixed by dotnet/xharness#919, #71866 .

@radical radical closed this as completed Jul 9, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Aug 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Build-mono blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' test-failure
Projects
None yet
Development

No branches or pull requests

1 participant