[autotest] RepairStrategy broke repairs for devices with no power button |
||||||||||||
Issue descriptionVersion: 8762.0.0+ OS: Chrome The new Servo repair strategy flow introduced in https://chromium-review.googlesource.com/#/c/372980/ checks the status of the pwr_button Servo control. This check fails and labels the Servo as non-functional for platforms that don't have a power button at all. Some platforms rely on a Servo PowerStateDriver instead of a power button to cycle power, such as https://cs.corp.google.com/chromeos_public/src/third_party/hdctools/servo/drv/storm_power.py
,
Sep 13 2016
,
Sep 13 2016
... I've remembered that for chromeboxes, the 'lid_open' signal can return the value "not_applicable", which the verifier recognizes as "working". I think we should do that for pwr_button, too.
,
Sep 13 2016
I can add the "not applicable" section to the Storm (and Gale) Servo overlay xml files similarly to https://chromium-review.googlesource.com/#/c/383819/ if that would help
,
Sep 13 2016
It might be true that all overlays with the power_state control don't have power buttons. If that's the case maybe PowerStateDriver can simply check for this control if the power button appears stuck? https://cs.corp.google.com/search/?q=power_state+file:%5Esrc/third_party/hdctools/servo/data/+package:%5Echromeos_public$&type=cs
,
Sep 13 2016
might not be true, Stumpy seems to have both a power button and the power_state control in the overlay
,
Sep 13 2016
+ Simran as FYI, we may need your help as secondary on this
,
Sep 14 2016
,
Sep 19 2016
This is soon going to block adding Whirlwind devices for BVT and adding the new Gale platform to the commit queue.
,
Sep 19 2016
> If we get desperate, we could also simply hard-code a list > of boards for which we always pass the 'pwr_button' verifier. This'll be the quickest way to get past the problem.
,
Sep 21 2016
This is creeping up in priority a little bit - Jetstream has a couple p1 issues we're trying to sort out regarding FAFT, and this just bit jdiez@ He'll be able to workaround with a local change for the time being, but this will be a bigger problem if it creeps into next week. I can send out an ugly hack that passes the power button verifier for Gale, Whirlwind, and Arkham boards later this week if y'alls are still wrestling with the lab infra issues.
,
Sep 21 2016
OK, for the first step, sbasi@ will take on the work in c#10.
Here's the full plan for what we need:
* (sbasi) Change the verifier to hard-code the jetstream
boards as "always pass". We want this ASAP.
* (who?) Change hdctools to have boards like jetstream
report "not_applicable" for the "pwr_button" control.
* (deputy) Deploy the new hdctools to servo in the lab.
* (who?) Revert the original hard-coding change, and
replace it with "if pwr_button is not_applicable, pass".
,
Sep 21 2016
https://chromium-review.googlesource.com/387765 for hdctools changes Does anyone know of any non-Jetstream boards without a power button? I can update this CL and hit them also.
,
Sep 26 2016
John Hong mentioned veyron_mickey may be another example of such a board
,
Sep 27 2016
The hdctools changes needs an owner for step 2 of comment 12.
,
Oct 4 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/autotest/+/04a5c2420b98f3a2f49b32485664b510b31388af commit 04a5c2420b98f3a2f49b32485664b510b31388af Author: Simran Basi <sbasi@google.com> Date: Thu Sep 22 00:35:49 2016 autotest: Skip PowerButtonVerifier for boards w/o a power button. Certain boards do not have a power button, therefore attempting to manipulate it via servo will not work. Temporarily pass this verifier until a dummy signal is implemented. BUG=chromium:646593 TEST=None Change-Id: I870fd40fecff996f95a3359501353ae595ae9926 Reviewed-on: https://chromium-review.googlesource.com/388066 Reviewed-by: Richard Barnette <jrbarnette@google.com> Tested-by: John Carey <ranix@google.com> [modify] https://crrev.com/04a5c2420b98f3a2f49b32485664b510b31388af/server/hosts/servo_repair.py
,
Oct 4 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/third_party/autotest/+/04a5c2420b98f3a2f49b32485664b510b31388af commit 04a5c2420b98f3a2f49b32485664b510b31388af Author: Simran Basi <sbasi@google.com> Date: Thu Sep 22 00:35:49 2016 autotest: Skip PowerButtonVerifier for boards w/o a power button. Certain boards do not have a power button, therefore attempting to manipulate it via servo will not work. Temporarily pass this verifier until a dummy signal is implemented. BUG=chromium:646593 TEST=None Change-Id: I870fd40fecff996f95a3359501353ae595ae9926 Reviewed-on: https://chromium-review.googlesource.com/388066 Reviewed-by: Richard Barnette <jrbarnette@google.com> Tested-by: John Carey <ranix@google.com> [modify] https://crrev.com/04a5c2420b98f3a2f49b32485664b510b31388af/server/hosts/servo_repair.py
,
Jan 17 2017
Is this fixed?
,
Jan 17 2017
I think reading comment 12, the jetstream (or servo) guys needs to update hdctools:
Change hdctools to have boards like jetstream
report "not_applicable" for the "pwr_button" control.
Ranix do you guys have an owner for this?
+Kevin as he may know how much work this is on the hdctools side.
,
Jan 17 2017
You can fix this just in autotest, add a try/except in the repair code around the pwr_button get code for autotest_lib.client.common_lib.error.TestFail: https://chromium.googlesource.com/chromiumos/third_party/autotest/+/master/server/hosts/servo_repair.py#230 If you want to be extra careful, you can grep the exception for "No control named power_button.". That should be all that's necessary to cover devices without the power_button.
,
Jan 17 2017
I abandoned my change to do this because I wasn't clear who owned the other tasks https://chromium-review.googlesource.com/#/c/387765/
,
Jul 17 2017
ChromeOS Infra P1 Bugscrub. P1 Bugs in this component should be important enough to get weekly status updates. Is this already fixed? -> Fixed Is this no longer relevant? -> Archived or WontFix Is this not a P1, based on go/chromeos-infra-bug-slo rubric? -> lower priority. Is this a Feature Request rather than a bug? Type -> Feature Is this missing important information or scope needed to decide how to proceed? -> Ask question on bug, possibly reassign. Does this bug have the wrong owner? -> reassign. Bugs that remain in this state next week will be downgraded to P2.
,
Jul 24 2017
ChromeOS Infra P1 Bugscrub. Issue untouched in a week after previous message. Downgrading to P2.
,
Jun 8 2018
Hi, this bug has not been updated recently. Please acknowledge the bug and provide status within two weeks (6/22/2018), or the bug will be archived. Thank you.
,
Aug 2
|
||||||||||||
►
Sign in to add a comment |
||||||||||||
Comment 1 by jrbarnette@chromium.org
, Sep 13 2016