History log of /external/autotest/server/site_host_attributes.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f4fa49b09cfa64e039355f78df2c34a9acca0c0c 12-Jan-2013 Chris Sosa <sosa@chromium.org> Refactor autoupdate endtoend test to remove servo requirement.

This is a rather large CL that refactors the autoupdate end-to-end test
to not require servo. As part of this refactoring, I've moved around most of
the initialization into sub-methods i.e. preparing the base image and staging
payloads for the test to make it easier to read and follow.

I've also gone ahead and cleaned up a lot of arguments that were passed
in every method and made them class members that are defined in the test's
initialize method (making it easier to see how variables get passed around).
I also switched from catching all exceptions to delete the devserver to
utilizing autotest cleanup appropriately.

Finally, I fixed a couple bugs found using utils/run_pylint.py and while
running the test locally from a local devserver.

Still TODO in later patches:
There are way too many args. To do the simple test described in my test_stanza
I had to define:
board=x86-generic name=npo image_type=test update_type=full
source_release=3557.0.2013_01_14_1438
target_release=3557.0.2013_01_14_1438 source_branch=R26 target_branch=R26
source_image_uri=http://localhost:8080/x86-generic-release/\
R26-3557.0.2013_01_14_1438/update.gz
target_payload_uri=http://localhost:8080/x86-generic-release/
R26-3557.0.2013_01_14_1438/update.gz

A lot of this information is a redundant and makes using this test a real
hassle.

Finally I've modified site_host_attributes import to catch all exceptions
as currently running run_remote_tests without this change does not work from
the autotest_dir.

BUG=chromium-os:12345
TEST=Ran on my machine using a local archive devserver and local omaha server.
Ran a N->N test without servo. Also, ran run_pylint.py and pyflakes.

Change-Id: Ib14f05b2c6c59c414d7a41da3dfd49957c3515db
Reviewed-on: https://gerrit.chromium.org/gerrit/41237
Reviewed-by: Chris Sosa <sosa@chromium.org>
Tested-by: Chris Sosa <sosa@chromium.org>
Commit-Queue: Chris Sosa <sosa@chromium.org>
/external/autotest/server/site_host_attributes.py
ed460583324d389c2ed66cccb8203adcfe3ccc20 02-Aug-2012 J. Richard Barnette <jrbarnette@chromium.org> Update attribute parsing in site_host_attributes.

Host Labels in the database include values like board:x86-alex
and cros-version:x86-zgb-release/R22-2650.0.0. This change updates
attribute parsing to recognize the embedded ':' as associating a
key (left of the ':') with a value (right of the ':').

BUG=None
TEST=ad hoc test using a private_host_attributes file

Change-Id: Ifa3b1e8d9c6efb2b18596b160ce819f89a453ebf
Reviewed-on: https://gerrit.chromium.org/gerrit/28992
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Richard Barnette <jrbarnette@chromium.org>
Commit-Ready: Richard Barnette <jrbarnette@chromium.org>
/external/autotest/server/site_host_attributes.py
3c0b6fd13aed4cbd4ec109ad5f071edbf3391f91 14-Jun-2011 Dale Curtis <dalecurtis@chromium.org> Control au checks with has_chromeos_firmware. Cleaned old labels.

Some of the new test hardware doesn't have Chrome OS firmware, so it
will never pass some of the extended AU checks. As such, allow these
checks to be controlled by a host label.

I've also cleaned up some dead labels as well as changed the default on
the has_bluetooth label to the more common case.

BUG=none
TEST=run_remote_tests. Ran in production.

Change-Id: Ifd19a51d780e801a649aaa43e060327ef4af31e9
Reviewed-on: http://gerrit.chromium.org/gerrit/2575
Reviewed-by: Paul Pendlebury <pauldean@chromium.org>
Reviewed-by: Scott Zawalski <scottz@chromium.org>
Tested-by: Dale Curtis <dalecurtis@chromium.org>
/external/autotest/server/site_host_attributes.py
1478e245b31359559c20c6167127c9fe5a317266 18-May-2011 Dale Curtis <dalecurtis@chromium.org> Disable network_3GRecoverFromGobiDesync on Cr-48 hardware.

Also fixed up the indentation.

BUG=chromium-os:15487
TEST=Ran new test suite.

Change-Id: I3e76195d719b433f91ba50008912f51b7627fa2c
Reviewed-on: http://gerrit.chromium.org/gerrit/1127
Reviewed-by: Eric Li <ericli@chromium.org>
Tested-by: Dale Curtis <dalecurtis@chromium.org>
/external/autotest/server/site_host_attributes.py
7c1fdcfa00048155cce198cbedf776fcef0d9d38 04-May-2011 Paul Pendlebury <pauldean@chromium.org> Adding parser to report desktopui/gtest individual test status.

Added a new method to server_job to run gtests.

Added two new classes to server_job_utils to run and parse gtests.

Added three new suites to hold individual gtest suites that were in one browertest suite.

http://pauldean.kir/afe/#tab_id=view_job&object_id=259
http://pauldean.kir/afe/#tab_id=view_job&object_id=260
http://pauldean.kir/afe/#tab_id=view_job&object_id=261

BUG=None.
TEST=Lots of runs on local and lab machines.

Change-Id: I6c02c40d7889ade5342ccdd99da7f5d15a9f50d8

Fixes from code review.

Added gtest_runner.py to hold runner/parser for gtests.

Added host_attributes.get_attributes() method.

Updated documentation.

BUG=None.
TEST=Runs on lab machines.

Change-Id: Id591da132037bbc277c4dcb2353cbc2a61103444

Code review updates.

Removing server_job.run_gtest_tests() and making gtest_runner available in the environment of the control files.

Adding test_item.run_tests() to make it easer to execute tests from different classes.

Adding actions to test tuple to support reboot before/after running tests.

Removing uneeded methods on host_attributes class.

Reworking documentation in site_host_attributes to fix pylint errors.

Changing control files from job.run_gtest_tests() to gtest_runner.run()

Change-Id: I9f36f1176b24226ee83826cf84e5125c8af87b76

BUG=None.
TEST=Lots of runs on local and lab machines.

Change-Id: If8696119bcd391de1adc88cc95d55fdb74cf2129
Reviewed-on: http://gerrit.chromium.org/gerrit/343
Reviewed-by: Eric Li <ericli@chromium.org>
Tested-by: Eric Li <ericli@chromium.org>
/external/autotest/server/site_host_attributes.py
7b2bd4d0125874548765463389d597fdc34a015e 02-May-2011 Dale Curtis <dalecurtis@chromium.org> Surface board host attribute labels for per-board control.

Occasionally we need to disable tests for certain boards. To allow this,
I've surfaced the platform labels for each machine through the standard
site_host_attributes interface.

There's a small catch though. In order to prevent accidental board leaks
we need to make sure names are hashed. As such, the netbook labels
stored in the dict are "netbook_" plus the first eight characters of the
SHA256 hash of the remainder of the netbook label.

Since most people shouldn't be using this feature, a lack of usability
is okay.

For the first test, we need to disable some of ther Kenel crash tests
for a certain board type.

BUG=chromium-os:14497
TEST=Running in production.

Change-Id: Ie006d47fbd6ad898af4858c683065f89e15f5df5
/external/autotest/server/site_host_attributes.py
1232f28f6ff53d03c3b0e0d97999023e41edeb68 28-Feb-2011 Simon Glass <sjg@chromium.org> Set 'has_chromeos_firmware' to True by default

The KernelCrashServer test will not run is this is False. We set it to True
by default since this is the normal case.

Also added a few comments.

BUG=chromium-os:12454
TEST=./run_remote_tests.sh --remote=seaboard0 KernelCrashServer
Check that it passes all 5 tests.
Requires kcrashmem and crash_reporter changes also: 6087006, 6599022, 6597027.

Change-Id: Ice24d483efaee680a0dd358f00b7dd1d9d55515a

Review URL: http://codereview.chromium.org/6591022
/external/autotest/server/site_host_attributes.py
aacc0ef5b0d605c3464bf97aabe53d023d053d98 17-Oct-2010 Ken Mixter <kmixter@chromium.org> Enable kernel crash test for platforms with firmware

Change-Id: Ia750fed3387dd0e23264e40aa18b9058ae5984e1

BUG=
TEST=Verify doesn't run when no firmware.

Review URL: http://codereview.chromium.org/3489001
/external/autotest/server/site_host_attributes.py
67ff5623731b66908668bb3433f473523a3a9fcd 01-Oct-2010 Ken Mixter <kmixter@chromium.org> autotest: Test new meta files in crash directory

Change-Id: I01f6dd829ba470934b27d0d9cc7756c0f2e6b1ed

BUG=6100,5805,5624,6865
TEST=These tests pass

Review URL: http://codereview.chromium.org/3454023
/external/autotest/server/site_host_attributes.py
38dfe85afa3c87f46355b3ae524049b7b31f8cd9 19-Aug-2010 Ken Mixter <kmixter@google.com> Added full E2E kcrash testing

BUG=1914

Review URL: http://codereview.chromium.org/3114016
/external/autotest/server/site_host_attributes.py
15b425c420fcd37f1680d576ad72aedf5a6fba50 05-Aug-2010 Dale Curtis <dalecurtis@google.com> Fixed unknown attribute errors in 3G and NightlyPower suites.

Review URL: http://codereview.chromium.org/3069029
/external/autotest/server/site_host_attributes.py
cd61a4f631162aea229df90acfc0eace178705c5 19-Jul-2010 Paul Stewart <pstew@chromium.org> Handle string types correctly

Tested using a script:

import site_host_attributes
print str(site_host_attributes.HostAttributes('foo').__dict__)

with a private_host_attributes_config.py file:

private_host_attributes = {
"foo": ["foo,True",
"bar,False",
"baz,string,Hello,World",
"bo,not,string"]
}

BUG=none
TEST=see above

Review URL: http://codereview.chromium.org/3038007
/external/autotest/server/site_host_attributes.py
ac3127e968117a93e8363f980025b55546c66fd7 28-May-2010 David James <davidjames@google.com> Skip bluetooth tests for machines that don't support bluetooth.

TEST=Ran bluetooth portion of BuildVerify test on eeepc with has_bluetooth on and off
BUG=none

Review URL: http://codereview.chromium.org/2345003
/external/autotest/server/site_host_attributes.py
f87edc8575577056eebe7cfed593fb7ef9cb31b9 03-May-2010 Eric Li <ericli@google.com> Fix bug in site_host_attributes.

the code path which is executed on autotest server (inside scheduler) is slightly different than run_remote_hosts, so it is not caught until deployed.

Review URL: http://codereview.chromium.org/1837002
/external/autotest/server/site_host_attributes.py
768fe6460419c221ea178da0a16d68cac4e3ce66 01-May-2010 Ken Mixter <kmixter@google.com> Enable tests to have host-specific parameters. Remove a bunch of todos where we disabled tests because they would not work everywhere. Now we selectively enable and set constraints on BVTs.

Review URL: http://codereview.chromium.org/1780007
/external/autotest/server/site_host_attributes.py