ci/freedreno: Restart the run if cheza spontenously reboots.
authorEmma Anholt <emma@anholt.net>
Mon, 4 Oct 2021 20:15:21 +0000 (13:15 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 4 Oct 2021 22:15:27 +0000 (22:15 +0000)
Occasionally (once every couple weeks?) a cheza reboots mid run, around a
GPU fault.  Detect that and do an internal retry instead of failing out
the job.

Closes: #5388
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13181>

.gitlab-ci/bare-metal/cros_servo_run.py

index ecb6c46..995e112 100755 (executable)
@@ -145,6 +145,11 @@ class CrosServoRun:
                 self.print_error("Detected cheza power management bus error, restarting run...")
                 return 2
 
+            if re.search("coreboot.*bootblock starting", line):
+                self.print_error(
+                    "Detected spontaneous reboot, restarting run...")
+                return 2
+
             result = re.search("hwci: mesa: (\S*)", line)
             if result:
                 if result.group(1) == "pass":