autotest: Set needs_manual_repair state after 50 attempts
After update scheduler to run repair once per 4 hours we can reduce the count of attempts for repair to 50.
BUG=b:168836277
TEST=None
Change-Id: I94e42ebf0346d9d3913e93979964c13afa50a54a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2558380
Tested-by: Otabek Kasimov <otabek@google.com>
Commit-Queue: Otabek Kasimov <otabek@google.com>
Reviewed-by: Garry Wang <xianuowang@chromium.org>
diff --git a/server/hosts/cros_host.py b/server/hosts/cros_host.py
index 10949cb..44c2ee9 100644
--- a/server/hosts/cros_host.py
+++ b/server/hosts/cros_host.py
@@ -2914,11 +2914,12 @@
return
needs_manual_repair = False
dhp = self.health_profile
- if dhp and dhp.get_repair_fail_count() > 168:
- # 168 = 24 times during 7 days.
+ if dhp and dhp.get_repair_fail_count() > 49:
+ # 42 = 6 times during 7 days. (every 4 hour repair)
+ # round up to 50 in case somebody will run some attempt on it.
logging.info(
'DUT is not sshable and fail %s times.'
- ' Limit to try repair is 168 times',
+ ' Limit to try repair is 50 times',
dhp.get_repair_fail_count())
needs_manual_repair = True