History log of /external/autotest/frontend/afe/management.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0739d68fcbd84d02839a85ce3c594e774e82c602 26-Feb-2015 Simran Basi <sbasi@google.com> Moblab: Servo Support via Host Attributes.

Moblab devices will look for servo_args inside a host's host
attributes.

Host attributes can be set via the CLI or the Web Frontend.

CLI to see attributes:
atest host stat <host>

CLI to set attribute:
atest host mod --attribute <attribute> --value <value> <host>

Updated the afe's management system so that it properly configures
the admin interface to allow editing of host attributes.

BUG=chromium:394544
TEST=local moblab setup. Tested both CLI and AFE host attribute
manipulation. Launched Servod, and ensure servo host is only
created when the attribute is applied to the host.

Change-Id: Ie3cccab31aa7518435ef0abc6ce206363406c272
Reviewed-on: https://chromium-review.googlesource.com/255550
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
/external/autotest/frontend/afe/management.py
3986bac27734a8c3cd864d9ade775131a2261413 21-May-2013 Aviv Keshet <akeshet@chromium.org> [autotest] reduce verbosity of unittests that use django

Prior to this CL, running a unit test that uses a test django setup (for
instance with `utils/unittest_suite.py
autotest_lib.scheduler.monitor_db_unittest --debug`) results in a huge
amount of meaningless repetitions of messages like "No permission for
add_group", coming from repeated setups and teardowns of a test django
database without all of the prod admin groups set up. This CL silences
these messages behind a verbosity flag.

BUG=None
TEST=`utils/unittest_suite.py
autotest_lib.scheduler.monitor_db_unittest --debug`; no more "No
permission X" spam.

Change-Id: I64e0be1cb8e5864a22a0e7dd26aaa0d8a4c842cf
Reviewed-on: https://gerrit.chromium.org/gerrit/56096
Tested-by: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Simran Basi <sbasi@chromium.org>
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
/external/autotest/frontend/afe/management.py
62cf0477206aa81c0163de63b3c86c26ed72eb79 05-May-2013 Aviv Keshet <akeshet@chromium.org> [autotest] add lightweight django setup for use in test_that

BUG=chromium:236471
TEST=new unit test, ensure that jobs can be added to django_lite db

Change-Id: I340934126f46e8158dd80b4727e6d54f856787dd
Reviewed-on: https://gerrit.chromium.org/gerrit/50210
Commit-Queue: Aviv Keshet <akeshet@chromium.org>
Reviewed-by: Aviv Keshet <akeshet@chromium.org>
Tested-by: Aviv Keshet <akeshet@chromium.org>
/external/autotest/frontend/afe/management.py
a5288b4bb2b09aafe914d0b7d5aab79a7e433eaf 28-Jul-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Upgrade from Django 0.96 to Django 1.0.2.

Risk: high (framework change)
Visibility: medium

Signed-off-by: James Ren <jamesren@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3457 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/management.py
d1677ebabfa318980cc6fbe3cd08990d800dcbac 16-Apr-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Update management so that it adds permissions for 'atomicgroup'

Signed-off-by: Scott Zawalski <scottz@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@2992 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/management.py
ca4bbc1c3d6c1c6465900965b68e724736a240bc 25-Feb-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> acl_group -> aclgroup, per gps' previous change. without this, syncdb won't add the permission for editing ACL groups and they'll disappear from the admin interface.

Signed-off-by: Steve Howard <showard@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2821 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/management.py
043abc1c38db968c11d7a5f8b5830e53ceb0fc8c 14-Jan-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Fix creation of "Basic Admin" group, at long last.

Signed-off-by: Steve Howard <showard@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2652 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/management.py
56e9377c6d618ba478bc2ca92679830ece8dff52 06-Oct-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Get the frontend unittest to run against SQLite. This required scattered changes:
* change frontend_unittest to tell django to use an in-memory SQLite database. ideally this would've been the only change necessary, but it wasn't.
* change long to ints in the doctests, as that's what pysqlite2 returns
* change several imports to use autotest_lib; that's the way everything should be, and the other way breaks things when trying to run stuff without using manage.py
* make readonly_connection better support testing by changing its connection attribute into a method, and adding the capability to disable the module completely during testing
* get rid of use of GROUP_CONCAT in models.py; SQLite doesn't support it (not in our old version anyhow), and it;s really not necessary anyway



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2244 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/management.py
2b9a88bcd336233fa483490892338e29f0a5fa67 13-Jun-2008 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> -allow users to select profilers in the create job view
-create profilers table + model
-create RPCs for managing profilers
-modify control file generation code to accept profilers
-modify create job view
-some refactoring to create job view to allow code sharing and do things more cleanly with some sweet generics
-get rid of rpc_utils.sorted. who knew there was a builtin?


git-svn-id: http://test.kernel.org/svn/autotest/trunk@1703 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/management.py
0afbb6369aa5aa9a75ea67dd9e95ec4b21c0c181 06-Jun-2008 jadmanski <jadmanski@592f7852-d20e-0410-864c-8624ca9c26a4> Convert all python code to use four-space indents instead of eight-space tabs.

Signed-off-by: John Admanski <jadmanski@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@1658 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/management.py
e8819cdf80ca0e0602d22551a50f970aa68e108d 15-Feb-2008 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Add frontend and scheduler for Autotest

The attached tarball includes the new Autotest web frontend for creating
and monitoring jobs and the new scheduler for executing jobs. We've
been working hard to get these complete and stabilized, and although
they still have a long, long way to go in terms of features, we believe
they are now stable and powerful enough to be useful.

The frontend consists of two parts, the server and the client. The
server is implemented in Python using the Django web framework, and is
contained under frontend/ and frontend/afe. The client is implemented
using Google Web Toolkit and is contained under frontend/client. We
tried to use Dojo initially, as was generally agreed on, but it proved
to be too young and poorly documented of a framework, and developing in
it was just too inefficient.

The scheduler is contained entirely in the scheduler/monitor_db Python
file. It looks at the database used by the web frontend and spawns
autoserv processes to run jobs, monitoring them and recording status.
The scheduler was developed by Paul Turner, who will be sending out some
detailed documentation of it soon.

I've also included the DB migrations code for which I recently submitted
a patch to the mailing list. I've included this code because it is
necessary to create the frontend DB, but it will (hopefully) soon be
part of the SVN repository.

Lastly, there is an apache directory containing configuration files for
running the web server through Apache.

I've put instructions for installing a full Autotest server, including
the web frontend, the scheduler, and the existing "tko" results backend,
at http://test.kernel.org/autotest/AutotestServerInstall. I've also
created a brief guide to using the web frontend, with plenty of
screenshots, at http://test.kernel.org/autotest/WebFrontendHowTo.
Please let me know if you find any problems with either of these pages.

Take a look, try it out, send me comments, complaints, and bugs, and I
hope you find it useful!

Steve Howard, and the rest of the Google Autotest team

From: Steve Howard <showard@google.com>




git-svn-id: http://test.kernel.org/svn/autotest/trunk@1242 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/frontend/afe/management.py