New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 592146 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

lucid sleep label uses hard coded board label to determine if label is applicable

Project Member Reported by kevcheng@chromium.org, Mar 4 2016

Issue description

Is there a better way to determine if the 'lucidsleep' label is applicable?
https://cs.corp.google.com/chromeos_public/src/third_party/autotest/files/server/hosts/cros_host.py?rcl=c882fe2ed29dde6040a48d42d579d36e502499dc&l=48

I have a cl that is refactoring the label methods and we're hoping to remove hard-coded board as a label detection method.

https://chromium-review.googlesource.com/#/c/328731/3/server/hosts/cros_label.py
 
Status: Assigned (was: Untriaged)

Comment 2 by benhenry@google.com, Apr 26 2016

Components: Infra>Client>ChromeOS
Labels: -Infra-ChromeOS

Comment 3 by derat@chromium.org, Jul 26 2016

I'll check in a powerd change to make it easy to check if dark resume, formerly called lucid sleep, is enabled. (Hmm. It'd be good to rename this label too.)

Comment 4 by derat@chromium.org, Jul 26 2016

Cc: ejcaruso@chromium.org
Owner: derat@chromium.org
Status: Started (was: Assigned)

Comment 5 by derat@chromium.org, Jul 26 2016

This label currently hardcodes samus and lulu, but I see the following boards configured to use dark resume:

elm
link
lulu (disabled)
oak (disabled)
parrot
samus (disabled)

Will changing the label to accurately reflect the powerd config cause problems, since it'll change where some existing tests do or don't get run?
If I understand correctly, your change will have the 'lucidsleep' label only apply to elm, link and parrot (and remove it from samus/lulu)?

Yeah that will probably cause problems, I'd check on the test writers who use that label to see if the targets should change.  Here's a list of tests that use the label:

$ grep -rni lucidsleep . | grep DEPENDENCIES --include=*control*
./server/site_tests/network_WiFi_FastReconnectInDarkResume/control:9:DEPENDENCIES = 'servo, wificell, lucidsleep'
./server/site_tests/network_WiFi_WakeOnWiFiThrottling/control:9:DEPENDENCIES = 'servo, wificell, lucidsleep'
./server/site_tests/network_WiFi_ReconnectInDarkResume/control.DisconnectAfterSuspendSameAP:11:DEPENDENCIES = 'wificell, servo, lucidsleep'
./server/site_tests/network_WiFi_ReconnectInDarkResume/control.Stress:9:DEPENDENCIES = 'servo, wificell, lucidsleep'
./server/site_tests/network_WiFi_ReconnectInDarkResume/control.DisconnectBeforeSuspendSameAP:9:DEPENDENCIES = 'servo, wificell, lucidsleep'
./server/site_tests/network_WiFi_ReconnectInDarkResume/control.DisconnectAfterSuspendDiffAP:11:DEPENDENCIES = 'wificell, servo, lucidsleep'
./server/site_tests/network_WiFi_ReconnectInDarkResume/control.DisconnectBeforeSuspendDiffAP:9:DEPENDENCIES = 'servo, wificell, lucidsleep'
./server/site_tests/network_WiFi_WakeOnSSID/control:11:DEPENDENCIES = 'wificell, servo, lucidsleep'
./server/site_tests/network_WiFi_WakeOnDisconnect/control:11:DEPENDENCIES = 'wificell, servo, lucidsleep'
./server/site_tests/network_WiFi_DarkResumeActiveScans/control:11:DEPENDENCIES = 'wificell, servo, lucidsleep'
./server/site_tests/network_WiFi_WoWLAN/control:11:DEPENDENCIES = 'wificell, servo, lucidsleep'

Comment 7 by derat@chromium.org, Jul 26 2016

Sigh. I don't even understand how those tests work at all if they depend on dark resume but only run on two boards where it's been disabled.
> Sigh. I don't even understand how those tests work
> at all if they depend on dark resume but only run
> on two boards where it's been disabled.

As best I can tell, they don't, they know it, and they
even say so:
    https://wmatrix.googleplex.com/failures/unfiltered?suites=wifi_lucidsleep&builds=R54-8628.0.0&releases=tot&platforms=lulu

:-(

Comment 9 by derat@chromium.org, Jul 26 2016

I've sent out changes to introduce a new (accurate) dark_resume label that we can move tests over to.
Cc: abhishekbh@chromium.org harpreet@chromium.org ravisadineni@chromium.org
Did anyone ever get a proper dark_resume label? Those 2 hardcoded boards still don't have it enabled, but I think there's some work going on for adding new ones.

Considering the test throws TestNA appropriately, we could remove the label usage entirely :)

Or can we do the same thing that lucid_sleep_test_base.py does, and check for wifi_client:is_wake_on_wifi_supported()?
Project Member

Comment 12 by bugdroid1@chromium.org, Sep 25 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/autotest/+/42099294451201338cedce544535ddbf44e9b61a

commit 42099294451201338cedce544535ddbf44e9b61a
Author: Brian Norris <briannorris@chromium.org>
Date: Mon Sep 25 22:52:46 2017

cros_host: remove dead lucid-sleep code

Not used. And we have wifi_client:is_wake_on_wifi_supported() for
determining essentially the same thing.

BUG=chromium:592146
TEST=suite:wifi_lucidsleep

Change-Id: I67ed7ecbc7bdb5e3167ed0b749163d3647fb571d
Signed-off-by: Brian Norris <briannorris@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/679935
Reviewed-by: Eric Caruso <ejcaruso@chromium.org>

[modify] https://crrev.com/42099294451201338cedce544535ddbf44e9b61a/server/hosts/cros_host.py

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.
Status: WontFix (was: Started)
I don't think that this is particularly relevant anymore. If anyone else wants to take it over, feel free to reopen and reassign.
Cc: -jrbarnette@chromium.org derat@chromium.org tbroch@chromium.org
Owner: ravisadineni@chromium.org
Status: Assigned (was: WontFix)
Ahem, Ravi is reviving these tests, so I think the TODO is still alive:

https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/1316341

Sign in to add a comment