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

[mobile] [infra] Unify reporting of mobile CI testing into a single console log file #1188

Open
matouskozak opened this issue Mar 19, 2024 · 1 comment
Assignees
Labels
android Android area apple iOS/tvOS/WatchOS/Mac Catalyst area device Related to a real HW device enhancement New feature or request

Comments

@matouskozak
Copy link
Member

matouskozak commented Mar 19, 2024

Description

Tests run on mobile platforms, don't report all outputs into the console log. This behavior renders using Build Analysis un-reliable for these scenarios because console log doesn't contain all information about the completed test. The full test output can be found inside the device logs.

E.g., console log might contain message "ERROR: WORKLOAD TIMED OUT - Killing user command" but the device log can show more specific errors for the given test.

Possible solutions

  1. Detect error messages from the device log and copy them to the console log
    • Pro: doesn't cause significant increase in console log size
    • Cons: might be difficult to detect all error messages correctly
  2. Include both console and device logs in Build Analysis
    • Pro: reliability, contains all error messages from both console and device log
    • Cons: can significantly increase the strain on Build Analysis (some device log are over 300 MB in size)

TODO:

  1. Collect past log files from mobile devices runs to determine which log files are used for reporting actual test failures.
  2. From the collected log files, determine pattern that can reliably match error messages. Discuss trade-off between false positives and false negatives, i.e., is it worse if a failure is un-matched or if non-error message gets included.
  3. Use the matching pattern from 2. to copy error messages in to the main console log.
Copy link

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

@matouskozak matouskozak transferred this issue from dotnet/runtime Apr 15, 2024
@matouskozak matouskozak changed the title [mono] [infra] Unify reporting of mobile CI testing into a single console log file [mobile] [infra] Unify reporting of mobile CI testing into a single console log file Apr 15, 2024
@matouskozak matouskozak added enhancement New feature or request apple iOS/tvOS/WatchOS/Mac Catalyst area android Android area device Related to a real HW device labels Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Android area apple iOS/tvOS/WatchOS/Mac Catalyst area device Related to a real HW device enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant