New issue
Advanced search Search tips

Issue 785949 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

cros trybot: warn that by default HWTests are not run

Project Member Reported by jorgelo@chromium.org, Nov 16 2017

Issue description

This CL: https://chromium-review.googlesource.com/c/chromiumos/platform2/+/760486

Passed PreCQ twice, but failed the CQ. The reason for that is that HWTests are disabled on paladin trybots. Why do we do that?

edgar-paladin: The HWTest [bvt-cq] stage failed: ** HWTest failed (code 1) ** in https://luci-milo.appspot.com/buildbot/chromeos/edgar-paladin/1421
cyan-paladin: The HWTest [bvt-arc] stage failed: ** HWTest failed (code 1) ** in https://luci-milo.appspot.com/buildbot/chromeos/cyan-paladin/4519
quawks-paladin: The HWTest [bvt-arc] stage failed: ** HWTest failed (code 1) ** in https://luci-milo.appspot.com/buildbot/chromeos/quawks-paladin/1420
wizpig-paladin: The HWTest [bvt-inline] stage failed: ** HWTest failed (code 1) ** in https://luci-milo.appspot.com/buildbot/chromeos/wizpig-paladin/1544

However, {edgar, cyan, quawks, wizpig}-paladin trybots passed:
https://uberchromegw.corp.google.com/i/chromiumos.tryserver/builders/paladin/builds/4412
https://uberchromegw.corp.google.com/i/chromiumos.tryserver/builders/paladin/builds/4413
https://uberchromegw.corp.google.com/i/chromiumos.tryserver/builders/paladin/builds/4414
https://uberchromegw.corp.google.com/i/chromiumos.tryserver/builders/paladin/builds/4415

Without trybot repro, this is impossible to diagnose.
 

Comment 1 by nxia@chromium.org, Nov 17 2017

Cc: dgarr...@chromium.org
HWTests are always disabled on tryjob unless you run tryjob with --hwtest.

+ dgarrett@ to confirm 
Ah thank you, that's good to know. Any reason why that's not the default? Can we at least add a warning? I don't think most people know this.
nxia is correct. We disable them by default because we don't have the lab capacity to handle unplanned load very well.

Even if you enable them, tryjob hwtests should only be consider "best effort" since there may or may not be any DUTs available to run them. Further, it's possible for tryjob hwtests to interfere with normal testing (mostly only a problem when weekly test suites are running).

From a lab management point of view, we'd love to fully disable them. From a developer support point of view, we'd love to enable them by default.

What we have now is the compromise.

Would you accept a CL with a text warning?
Sure. It would be best if it only issues the warning if the build config in question includes hwtests to start with.
Where does that mapping live?
cli/cros/cros_tryjob.


VerifyOptions is the right place for the warning.

It already lookups up config_lib.BuildConfig to see if they are production configs (for master, we can't for branched configs).

One you have a config_lib.BuildConfig object, you can test for hwtests with:

if build_config.hwtests and now options.hwtests:
  # Issue warning.

You can run the unitests with:

chromite/cli/cros/cros_tryjob_unittest

Summary: cros trybot: warn that by default HWTests are not run (was: CL passes PreCQ and paladin trybots, fails on CQ because trybots disable HWTest)
Hi, this bug has not been updated recently and remains untriaged. Please acknowledge the bug and provide status within two weeks (6/8/2018), or the bug will be closed. Thank you.
Labels: -Pri-1 -M-64 M-69 Pri-2
Owner: jorgelo@chromium.org
Status: Assigned (was: Untriaged)

Sign in to add a comment