Skip to content

Commit

Permalink
Retry/reboot when APP_LAUNCH_TIMEOUT occurs in XHarness (#8241)
Browse files Browse the repository at this point in the history
  • Loading branch information
premun authored Dec 6, 2021
1 parent 04551f6 commit 50b6cb2
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,13 @@ def analyze_operation(command: str, platform: str, device: str, is_device: bool,
reboot = True
retry = True

# Simulators are known to slow/break down and a reboot usually helps
# This manifest by us not being able to launch the simulator/start the test run in time
if exit_code == 90: # APP_LAUNCH_TIMEOUT
print(f' Failed to start the test execution in time. {retry_message}{reboot_message}')
reboot = True
retry = True

# The JSON should be an array of objects (one per each executed XHarness command)
operations = json.load(open(diagnostics_file))

Expand Down

0 comments on commit 50b6cb2

Please sign in to comment.