mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 15:30:14 +01:00
ci/bare-metal: Retry booting chezas instead of failing when !POWER_GOOD
If we get this error, we can just try rebooting again and see if it comes up then. The POWER_GOOD failures are clustered in time, but it's better to retry a few times in a row in one job (which has its own 60min timeout) than to spuriously fail someone's pipeline. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6398>
This commit is contained in:
parent
c63648121e
commit
c27075e9e1
1 changed files with 9 additions and 2 deletions
|
|
@ -55,8 +55,12 @@ class CrosServoRun:
|
||||||
for line in self.cpu_ser.lines():
|
for line in self.cpu_ser.lines():
|
||||||
if re.match("---. end Kernel panic", line):
|
if re.match("---. end Kernel panic", line):
|
||||||
return 1
|
return 1
|
||||||
|
|
||||||
|
# The Cheza boards have issues with failing to bring up power to
|
||||||
|
# the system sometimes, possibly dependent on ambient temperature
|
||||||
|
# in the farm.
|
||||||
if re.match("POWER_GOOD not seen in time", line):
|
if re.match("POWER_GOOD not seen in time", line):
|
||||||
return 1
|
return 2
|
||||||
|
|
||||||
result = re.match("bare-metal result: (\S*)", line)
|
result = re.match("bare-metal result: (\S*)", line)
|
||||||
if result:
|
if result:
|
||||||
|
|
@ -76,7 +80,10 @@ def main():
|
||||||
|
|
||||||
servo = CrosServoRun(args.cpu, args.ec)
|
servo = CrosServoRun(args.cpu, args.ec)
|
||||||
|
|
||||||
|
while True:
|
||||||
retval = servo.run()
|
retval = servo.run()
|
||||||
|
if retval != 2:
|
||||||
|
break
|
||||||
|
|
||||||
# power down the CPU on the device
|
# power down the CPU on the device
|
||||||
servo.ec_write("power off\n")
|
servo.ec_write("power off\n")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue