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

Issue 758115 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Sep 7
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

Clean up test list from "factory.py" and eliminate Python based test list

Project Member Reported by hungte@chromium.org, Aug 23 2017

Issue description

We should remove the support of python based test list when poppy factory branch has been created (i.e., it's known to be stable).
 

Comment 1 by hungte@chromium.org, Aug 23 2017

And to clarify, I don't think we need to migrate all ToT board overlays. poppy+fizz+coral should give us enough coverage of all form factors and ODM requests.

So when Poppy factory branch is created, I'd prefer to remove all ToT factory-board ebuilds that does not use JSON test list, instead of migrating them.

Comment 2 by hungte@chromium.org, Sep 21 2017

Meanwhile I think we should do some refactoring to current test list modules.

We currently have
 - cros.factory.test.factory # FactoryTest and FactoryTestList here, with other test list related objects
 - cros.factory.test.test_lists.test_lists # the builder of test lists
 - cros.factory.test.test_lists.mananger # JSON loader

I think we should move test list related definition from test.factory into a new module with descriptive name. And probably not always saying "Goofy" instead. Ideally the test list thing should be a generic structure, not depending on Goofy, and instead can be used by any test harness that is compatible of the test list.

Calling that cros.factory.test.test_list may be fine, or we need a better name - describing "this is where we store the configuration of what tests should be executed and how (args)". test_list is usually fine, except it may look weird if we do

 raise test_list.FactoryTestFailure

But it's probably fine to see test_list.TestState.

Comment 3 by hungte@chromium.org, Sep 21 2017

I think the goal is to have
 - cros.factory.test.test_list # for definition of test list objects
 - cros.factory.test.test_lists.manager # for reading and loading test lists, including active test list control.

So functions in test_lists.test_lists:
 - builders should be removed
 - utilities for managing active test list should go manager
 - other uselesss functions should be removed

Comment 4 by hungte@chromium.org, Sep 21 2017

Summary: Clean up test list from "factory.py" and eliminate Python based test list (was: Eliminate Python based test list)

Comment 5 by hungte@chromium.org, Sep 21 2017

Owner: hungte@chromium.org
Status: Started (was: Untriaged)
I have few CLs doing some of the refactoring. Realized that it's hard to really remove 'factory.py' so far because it contains all FactoryTest and TestList stuff, where FactoryTest relies on TestState, which is also needed by FactoryTestFailure - and they are all inside factory.py as "common types".

For example, it's weird if we move FactoryTestFailure to module 'test_list' and use it there like "test_list.FactoryTestFailure".

So for how I'd do the refactoring that
  - cros.factory.test.test_lists.test_lists should move utility functions to manager, and leaving it only python test list builder functions (so we can remove it anytime)
  - clean factory.py to that it contains only types of objects derived from test list, plus the exception of FactoryTestFailure.
Project Member

Comment 6 by bugdroid1@chromium.org, Sep 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/ab78fc40b75d1472e8b48710ef49faf10ba2b099

commit ab78fc40b75d1472e8b48710ef49faf10ba2b099
Author: Hung-Te Lin <hungte@chromium.org>
Date: Fri Sep 22 02:38:24 2017

test_lists: Clean up test_lists utility functions.

The `test_lists.py` is current having both Python test list builders and
general helper functions like GetActiveTestListId, which we should move
to test_lists/manager.

This commit moved GetActiveTestListId and SetActiveTestList to
manager.Manager as static method. We also removed unused constants and
functions: CUSTOM_DIR and YamlDumpTestListDestructive.

BUG= chromium:758115 
TEST=make test

Change-Id: I8bce850c81c38834afd884aceb290956e04269b4
Reviewed-on: https://chromium-review.googlesource.com/676830
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>

[modify] https://crrev.com/ab78fc40b75d1472e8b48710ef49faf10ba2b099/py/goofy/goofy_rpc.py
[modify] https://crrev.com/ab78fc40b75d1472e8b48710ef49faf10ba2b099/py/test/test_lists/test_lists.py
[modify] https://crrev.com/ab78fc40b75d1472e8b48710ef49faf10ba2b099/py/tools/factory.py
[modify] https://crrev.com/ab78fc40b75d1472e8b48710ef49faf10ba2b099/py/tools/goofy_ghost/goofy_ghost.py
[modify] https://crrev.com/ab78fc40b75d1472e8b48710ef49faf10ba2b099/py/test/test_lists/manager.py
[modify] https://crrev.com/ab78fc40b75d1472e8b48710ef49faf10ba2b099/py/goofy/goofy_remote.py
[modify] https://crrev.com/ab78fc40b75d1472e8b48710ef49faf10ba2b099/py/goofy/goofy.py

Project Member

Comment 7 by bugdroid1@chromium.org, Sep 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/0006727f1b8ce4e9790404eb69e17744998c4f9d

commit 0006727f1b8ce4e9790404eb69e17744998c4f9d
Author: Hung-Te Lin <hungte@chromium.org>
Date: Fri Sep 22 02:38:24 2017

test_lists: Remove IgnoredTestListModules.

The IgnoredTestListModules (IGNORE) was introduced at the time that
Python test lists were poorly maintained and easily left unusable test
lists.

In JSON test list world there should be no modules to be ignored.

BUG= chromium:758115 
TEST=make test

Change-Id: Iffa707c943e681f0f1d5e5808b1319151787f78b
Reviewed-on: https://chromium-review.googlesource.com/676831
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>

[modify] https://crrev.com/0006727f1b8ce4e9790404eb69e17744998c4f9d/py/goofy/goofy_remote.py
[modify] https://crrev.com/0006727f1b8ce4e9790404eb69e17744998c4f9d/py/test/test_lists/test_lists.py
[modify] https://crrev.com/0006727f1b8ce4e9790404eb69e17744998c4f9d/py/test/test_lists/README.md

Project Member

Comment 8 by bugdroid1@chromium.org, Sep 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/7486ee7ba5958e22a14e773b5abc37ab2870e6ac

commit 7486ee7ba5958e22a14e773b5abc37ab2870e6ac
Author: Hung-Te Lin <hungte@chromium.org>
Date: Fri Sep 22 13:10:14 2017

factory: Change 'console' to initialize on use.

The 'console' is now as a delayed-loaded wrapper so modules importing
'factory' won't spend time doing file I/O (TryMakeDirs) until first
logging request is invoked.

BUG= chromium:758115 
TEST=make test

Change-Id: I4357d7e9816251e862007e8c4cc9215612a588ef
Reviewed-on: https://chromium-review.googlesource.com/676545
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org>

[modify] https://crrev.com/7486ee7ba5958e22a14e773b5abc37ab2870e6ac/py/test/factory.py

Project Member

Comment 9 by bugdroid1@chromium.org, Sep 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/8fc0d65354920b84b63092851f575e6fafae1bca

commit 8fc0d65354920b84b63092851f575e6fafae1bca
Author: Hung-Te Lin <hungte@chromium.org>
Date: Fri Sep 22 13:10:13 2017

utils: Add a new log_utils for manipulating logging.

The factory.init_logging is actually a general function not just for
factory. Moved to utils.log_utils.InitLogging.

BUG= chromium:758115 
TEST=make test

Change-Id: Ifc6413ccc46552f52114711747e4f002b27b5e79
Reviewed-on: https://chromium-review.googlesource.com/676886
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/tools/cpu_usage_monitor.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/goofy/goofy_unittest.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/goofy/invocation.py
[add] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/utils/log_utils.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/tools/factory.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/test/pytests/charger.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/goofy/goofy_base_unittest.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/test/factory.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/test/factory_unittest.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/tools/key_filter.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/goofy/goofy.py
[modify] https://crrev.com/8fc0d65354920b84b63092851f575e6fafae1bca/py/tools/thermal_monitor.py

Project Member

Comment 10 by bugdroid1@chromium.org, Sep 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/a49691a6bbeb4877ce029a493a934bec8982a8e2

commit a49691a6bbeb4877ce029a493a934bec8982a8e2
Author: Hung-Te Lin <hungte@chromium.org>
Date: Fri Sep 22 15:08:54 2017

test: Move invocation related functions to test/utils/test_invocation.py

To clean up cros.factory.test.factory, we are moving its test invocation
related functions (get_current_test_path, get_verbose_log_path) to a new
module cros.factory.test.utils.test_invocation.

BUG= chromium:758115 
TEST=make test

Change-Id: Ie213606074639738fce2267983d97023fd255f13
Reviewed-on: https://chromium-review.googlesource.com/676630
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org>

[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/pytests/countdown.py
[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/pytests/wifi_throughput.py
[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/test_ui_unittest.py
[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/goofy/invocation.py
[add] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/utils/test_invocation.py
[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/pytests/finalize/finalize.py
[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/pytests/charger.py
[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/test_ui.py
[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/factory.py
[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/pytests/vswr/vswr.py
[modify] https://crrev.com/a49691a6bbeb4877ce029a493a934bec8982a8e2/py/test/pytests/rf_graphyte/rf_graphyte.py

Project Member

Comment 11 by bugdroid1@chromium.org, Sep 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/36b5963b99cf5ea61a5baf4973561f1ffd9fb8f4

commit 36b5963b99cf5ea61a5baf4973561f1ffd9fb8f4
Author: Hung-Te Lin <hungte@chromium.org>
Date: Fri Sep 22 15:08:55 2017

test: Move get_toolkit_version to update_utils.GetToolkitVersion.

The toolkit version should be implemented in where it is usually used
(the update module) and not in shared `factory` module.

Another solution is to use toolkit_version from DUT (via
CreateStationInterface), but the users currently (goofy/updater and
event_log) don't have DUT instances yet. We can review this when
event_log is deprecated, and then see how we can revise Goofy.

Also fixed Goofy updater unittest, which raised unexpected exception in
thread and not caught.

BUG= chromium:758115 
TEST=make test

Change-Id: I617b3d48f8b08f59cba29f9789ddf0e328b79cd8
Reviewed-on: https://chromium-review.googlesource.com/676631
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Youcheng Syu <youcheng@chromium.org>

[modify] https://crrev.com/36b5963b99cf5ea61a5baf4973561f1ffd9fb8f4/py/goofy/updater_unittest.py
[modify] https://crrev.com/36b5963b99cf5ea61a5baf4973561f1ffd9fb8f4/py/test/event_log.py
[modify] https://crrev.com/36b5963b99cf5ea61a5baf4973561f1ffd9fb8f4/py/test/utils/update_utils.py
[modify] https://crrev.com/36b5963b99cf5ea61a5baf4973561f1ffd9fb8f4/py/goofy/updater.py
[modify] https://crrev.com/36b5963b99cf5ea61a5baf4973561f1ffd9fb8f4/py/test/factory.py

Project Member

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

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/0fef51b75c73b9266fba51e59f00201bb3a9435a

commit 0fef51b75c73b9266fba51e59f00201bb3a9435a
Author: Hung-Te Lin <hungte@chromium.org>
Date: Mon Sep 25 18:32:16 2017

factory: Remove FactoryTest.AsYaml.

The AsYaml is currently only used by unit test and should be removed.

BUG= chromium:758115 
TEST=make test

Change-Id: Icac4ac6e24390cb17cad356f9e938cc03cdf1bbc
Reviewed-on: https://chromium-review.googlesource.com/676832
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org>

[modify] https://crrev.com/0fef51b75c73b9266fba51e59f00201bb3a9435a/py/test/factory.py
[modify] https://crrev.com/0fef51b75c73b9266fba51e59f00201bb3a9435a/py/goofy/goofy_unittest.py

Owner: stimim@chromium.org
Per offline discussion:

- we want to move test list related stuff to 'test_objects.py'
- manager.py#Testlist should be merged to test_objects#TestList
- factory#TestState should be moved to cros.factory.test.state
- The FactoryState#test.state should be renamed to TestStateServer
- FactoryTestFailure should be eliminated (or TestFailure in test.state?)

Project Member

Comment 14 by bugdroid1@chromium.org, Sep 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/1bfc5a42582a1e353a5c44863a5a641f43375f84

commit 1bfc5a42582a1e353a5c44863a5a641f43375f84
Author: Wei-Han Chen <stimim@google.com>
Date: Thu Sep 28 04:12:57 2017

test_list: add BuildTestListForUnittest

We were using 'BuildTestListFromString' to build test lists in
unittests.  'BuildTestListFromString' depends on legacy test list
(python test list), which we would like to deprecate.
`BuildTestListForUnittest` is added to manager module.  Example:

  test_list = manager.BuildTestListForUnittest(
      test_list_config={
          'tests': [
              'Idle',
              'Idle'
          ]
      },
      manager=manager_instance
  )

`goofy_unittest.py`, `factory_unittest.py`,
`test_list_iterator_unittest.py` are changed to use new function.

BUG= chromium:758115 
TEST=make test

Change-Id: Icab941a3c92cbceb43c9860df927ea35325a6d9f
Reviewed-on: https://chromium-review.googlesource.com/686678
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/1bfc5a42582a1e353a5c44863a5a641f43375f84/py/test/factory_unittest.py
[modify] https://crrev.com/1bfc5a42582a1e353a5c44863a5a641f43375f84/py/test/test_lists/manager.py
[modify] https://crrev.com/1bfc5a42582a1e353a5c44863a5a641f43375f84/py/goofy/goofy_unittest.py
[modify] https://crrev.com/1bfc5a42582a1e353a5c44863a5a641f43375f84/py/goofy/test_list_iterator_unittest.py

Project Member

Comment 15 by bugdroid1@chromium.org, Sep 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/da8eb991c2e92c06b18739518b3335fe9f4f83e2

commit da8eb991c2e92c06b18739518b3335fe9f4f83e2
Author: Hung-Te Lin <hungte@chromium.org>
Date: Thu Sep 28 10:59:25 2017

test: Add new 'session' for test session and invocation.

What we used to put in 'factory' module for 'general test utilities'
are actually utilities for test sessions (which, in current
implementation, is provided by the test harness Goofy).

This change merged `testlog_goofy`, `utils/test_invocation`,
`utils/update_utils#GetToolkitVersion` into the new `session` module.

BUG= chromium:758115 
TEST=make test

Change-Id: I2e629eff197d2081477e2a01357c1110ebe1f521
Reviewed-on: https://chromium-review.googlesource.com/688374
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org>

[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/goofy/updater_unittest.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/event_log.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/pytests/countdown.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/test_ui_unittest.py
[delete] https://crrev.com/d8b1d34b685a4d6133be1e6711df5287c8943f91/py/test/utils/test_invocation.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/pytests/bluetooth.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/utils/update_utils.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/goofy/plugins/system_log_manager.py
[delete] https://crrev.com/d8b1d34b685a4d6133be1e6711df5287c8943f91/py/test/testlog_goofy_unittest.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/pytests/gps/gps.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/tools/ghost.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/goofy/invocation.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/pytests/charger.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/pytests/vswr/vswr.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/tools/deps.conf
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/goofy/goofy.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/pytests/rf_graphyte/rf_graphyte.py
[delete] https://crrev.com/d8b1d34b685a4d6133be1e6711df5287c8943f91/py/test/testlog_goofy.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/goofy/plugins/system_log_manager_unittest.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/event_log_unittest.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/pytests/finalize/finalize.py
[add] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/session_unittest.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/pytests/wifi_throughput.py
[add] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/session.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/goofy/updater.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/test_ui.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/goofy/plugins/instalog.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/test/factory.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/device/info.py
[modify] https://crrev.com/da8eb991c2e92c06b18739518b3335fe9f4f83e2/py/goofy/plugins/station_setup/station_setup.py

Project Member

Comment 16 by bugdroid1@chromium.org, Sep 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/05633bb5a5b8fbf6c215cd5fe6a8d60ba4ab40c5

commit 05633bb5a5b8fbf6c215cd5fe6a8d60ba4ab40c5
Author: Hung-Te Lin <hungte@chromium.org>
Date: Thu Sep 28 10:59:25 2017

utils: Add 'CachedGetter' for getter functions that rarely changes.

There are many getter functions, especially those value won't change
until reboot, wants their value to be cached.

This @CachedGetter provides an easy way to help caching getter
function results without adding global variables.

BUG= chromium:758115 
TEST=make test

Change-Id: I158b8e77a0d3479747cd39a7cec1eaa9600b8983
Reviewed-on: https://chromium-review.googlesource.com/688514
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org>

[modify] https://crrev.com/05633bb5a5b8fbf6c215cd5fe6a8d60ba4ab40c5/py/utils/type_utils.py
[modify] https://crrev.com/05633bb5a5b8fbf6c215cd5fe6a8d60ba4ab40c5/py/utils/type_utils_unittest.py

Project Member

Comment 17 by bugdroid1@chromium.org, Sep 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/73c763699da8aca1fab39cf02adcb34705a7976d

commit 73c763699da8aca1fab39cf02adcb34705a7976d
Author: Peter Shih <pihsun@chromium.org>
Date: Thu Sep 28 13:27:25 2017

pytests: Move example to JSON test list format.

Move all examples to use JSON test list format, instead of the old
Python based test list format.

BUG= chromium:758115 , chromium:737920 
TEST=make test
TEST=make doc

Change-Id: I76cb3b6ed293c398cc59da550a5f065f5f1724f3
Reviewed-on: https://chromium-review.googlesource.com/686218
Commit-Ready: Pi-Hsun Shih <pihsun@chromium.org>
Tested-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/thermal_sensors.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/audio.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/countdown.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/sample_customized_test.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/plankton_charge.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/memory_size.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/exec_python.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/wait_external_test.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/bluetooth.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/storage_simple_stress.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/recovery_button.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/select_for_sampling.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/ping_test.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/sync_factory_server.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/sync_time.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/battery_sysfs.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/plankton_cc_flip_check.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/shopfloor_service.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/summary/summary.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/flash_netboot.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/external_display.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/exec_shell.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/battery_current.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/touchpad_hover.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/robot_movement.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/rf_graphyte/rf_graphyte.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/button.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/nop.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/network_setup/network_setup.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/stressapptest.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/touchscreen.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/update_device_data.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/scan/scan.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/finalize/finalize.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/update_cr50_firmware.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/touchpad.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/read_device_data_from_vpd.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/battery.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/camera.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/urandom.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/light_sensor.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/message/message.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/shutdown/shutdown.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/station_setup.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/retrieve_config.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/battery_basic.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/line_check_item.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/verify_value.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/station_entry.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/start/start.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/stylus.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/write_device_data_to_vpd.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/removable_storage/removable_storage.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/mrc_cache.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/check_image_version.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/factory_state.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/model_sku.py
[modify] https://crrev.com/73c763699da8aca1fab39cf02adcb34705a7976d/py/test/pytests/blocking_charge.py

Project Member

Comment 18 by bugdroid1@chromium.org, Sep 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/6a2f4d5e5abab4cf5422b457ba049d51df997528

commit 6a2f4d5e5abab4cf5422b457ba049d51df997528
Author: Hung-Te Lin <hungte@chromium.org>
Date: Thu Sep 28 16:16:27 2017

session: Cache getters using decorator CachedGetter.

Change session getter functions to cache properly.

BUG= chromium:758115 
TEST=make test

Change-Id: Ife33aad315201cd2b9cbb2f5cb41125d9dcbe3fd
Reviewed-on: https://chromium-review.googlesource.com/688515
Commit-Ready: Hung-Te Lin <hungte@chromium.org>
Tested-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org>

[modify] https://crrev.com/6a2f4d5e5abab4cf5422b457ba049d51df997528/py/utils/type_utils.py
[modify] https://crrev.com/6a2f4d5e5abab4cf5422b457ba049d51df997528/py/test/session.py
[modify] https://crrev.com/6a2f4d5e5abab4cf5422b457ba049d51df997528/py/test/session_unittest.py

Project Member

Comment 20 by bugdroid1@chromium.org, Sep 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/dbc0fa243f28583cc64aa0c6f85e6d75649f55fc

commit dbc0fa243f28583cc64aa0c6f85e6d75649f55fc
Author: Wei-Han Chen <stimim@google.com>
Date: Thu Sep 28 16:16:26 2017

test list: remove "DescribeTestLists"

This function is now basically:

  (lambda test_lists: "%r" % sorted(test_lists.keys()))

which can be done by the caller itself.

BUG= chromium:758115 
TEST=None

Change-Id: Iff1daa3dbd349fbc9e85d1cf15368bc0486b6bf3
Reviewed-on: https://chromium-review.googlesource.com/688936
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/dbc0fa243f28583cc64aa0c6f85e6d75649f55fc/py/goofy/goofy.py
[modify] https://crrev.com/dbc0fa243f28583cc64aa0c6f85e6d75649f55fc/py/test/test_lists/test_lists.py

Project Member

Comment 21 by bugdroid1@chromium.org, Sep 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/4e383923b7eee4eae6537d80f9b327123ef1c239

commit 4e383923b7eee4eae6537d80f9b327123ef1c239
Author: Wei-Han Chen <stimim@google.com>
Date: Thu Sep 28 18:18:52 2017

test_list: remove legacy test list building blocks in test_lists.py

``test_lists.TestList``, ``test_lists.FactoryTest``,
``test_lists.TestGroup``, etc... are building blocks for legacy test
lists, which is deprecated now.

BUG= chromium:758115 
TEST=make test

Change-Id: Ic7c637ce94082b46a8a45c36d7f8268a08e62cd7
Reviewed-on: https://chromium-review.googlesource.com/688876
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/4e383923b7eee4eae6537d80f9b327123ef1c239/po/zh-CN.po
[modify] https://crrev.com/4e383923b7eee4eae6537d80f9b327123ef1c239/doc/test_list_api.rst
[delete] https://crrev.com/514cfdf89df8c5f30dfb1871c3456433c4f11cce/py/test/test_lists/station_based_test_list.py
[modify] https://crrev.com/4e383923b7eee4eae6537d80f9b327123ef1c239/py/test/factory.py
[modify] https://crrev.com/4e383923b7eee4eae6537d80f9b327123ef1c239/py/test/test_lists/test_lists.py

Project Member

Comment 22 by bugdroid1@chromium.org, Sep 29 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/26c5174f795fbd24e6f0d5557b0057328877679d

commit 26c5174f795fbd24e6f0d5557b0057328877679d
Author: Peter Shih <pihsun@chromium.org>
Date: Fri Sep 29 10:41:50 2017

doc: Fix generate_rsts.py.

The BuildAllTestLists no longer have argument after Python test list is
removed.

BUG= chromium:758115 
TEST=make test
TEST=make doc

Change-Id: I77e9194b5b4c66402dd625e32d63832eb2f81be8
Reviewed-on: https://chromium-review.googlesource.com/691638
Commit-Ready: Pi-Hsun Shih <pihsun@chromium.org>
Tested-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/26c5174f795fbd24e6f0d5557b0057328877679d/py/doc/generate_rsts.py

Project Member

Comment 24 by bugdroid1@chromium.org, Sep 29 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/530af56be4ca194095ab63da40a060bea44a877f

commit 530af56be4ca194095ab63da40a060bea44a877f
Author: Peter Shih <pihsun@chromium.org>
Date: Fri Sep 29 13:29:12 2017

pytests: Move Python test list to JSON in documents.

Move all examples in document from Python test list to JSON, since
Python test list no longer works.

The TEST_LIST.md and test_list_api.rst would need a total rewrite.

BUG= chromium:758115 
TEST=make test

Change-Id: I6f10038f17df5e2b5f0e979493d94ac064ad3609
Reviewed-on: https://chromium-review.googlesource.com/691640
Commit-Ready: Pi-Hsun Shih <pihsun@chromium.org>
Tested-by: Pi-Hsun Shih <pihsun@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/gyroscope.py
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/probe/README.md
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/light_sensor_calibration.py
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/sample_customized_test.py
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/touch_uniformity.py
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/audio_loop/audio_loop.py
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/README.md
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/accelerometers_calibration.py
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/tablet_rotation.py
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/lte_verify_config.py
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/doc/regions.rst
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/offline_test/shell/README.md
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/accelerometers_lid_angle.py
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/rf_graphyte/README.md
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/goofy/plugins/README.md
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/doc/test_api.rst
[modify] https://crrev.com/530af56be4ca194095ab63da40a060bea44a877f/py/test/pytests/probe/probe.py

Project Member

Comment 25 by bugdroid1@chromium.org, Oct 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/0311391cc28373e53cc8ad4f66c3d99fe765200e

commit 0311391cc28373e53cc8ad4f66c3d99fe765200e
Author: Wei-Han Chen <stimim@google.com>
Date: Thu Oct 05 17:36:11 2017

test_list: move FactoryTest to test_object

BUG= chromium:758115 
TEST=make test

Change-Id: Ie2f9d51151ff9bcc35f922ef7db6e2b356c6c6d6
Reviewed-on: https://chromium-review.googlesource.com/691536
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>

[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/test/test_lists/checker.py
[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/tools/list_pytests.py
[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/test/test_lists/manager.py
[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/po/zh-CN.po
[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/test/test_lists/checker_unittest.py
[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/test/factory.py
[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/goofy/invocation.py
[rename] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/test/test_lists/test_object_unittest.py
[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/goofy/goofy.py
[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/goofy/goofy_rpc_unittest.py
[add] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/test/test_lists/test_object.py
[modify] https://crrev.com/0311391cc28373e53cc8ad4f66c3d99fe765200e/py/goofy/test_list_iterator.py

Project Member

Comment 26 by bugdroid1@chromium.org, Oct 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/1a1146806ea672e89d839e77b1958539552c0d3c

commit 1a1146806ea672e89d839e77b1958539552c0d3c
Author: Wei-Han Chen <stimim@google.com>
Date: Thu Oct 05 17:36:11 2017

test_list: move Hooks to cros.factory.goofy.hooks

Class ``Hooks`` is only used by Goofy, so ``cros.factory.goofy.hooks``
should be a better place for it.

BUG= chromium:758115 
TEST=make test

Change-Id: I18eecfc0c44c3add448ccf83af78813b921d72b1
Reviewed-on: https://chromium-review.googlesource.com/694063
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/1a1146806ea672e89d839e77b1958539552c0d3c/py/test/factory.py
[modify] https://crrev.com/1a1146806ea672e89d839e77b1958539552c0d3c/py/goofy/goofy.py
[add] https://crrev.com/1a1146806ea672e89d839e77b1958539552c0d3c/py/goofy/hooks.py

Project Member

Comment 27 by bugdroid1@chromium.org, Oct 15 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/f1c345feae1b37a0028414d19ab2a22ccaaa48ae

commit f1c345feae1b37a0028414d19ab2a22ccaaa48ae
Author: Wei-Han Chen <stimim@google.com>
Date: Fri Oct 13 21:44:38 2017

test_list: move options to test_list.py

test_lists.py is renamed to test_list.py

test_object.FactoryTestList and manager.TestList should be merged into
one and moved to test_list.py in the future.

BUG= chromium:758115 
TEST=make test

Change-Id: I9ebeea70c8465ca5f2a86d8d1e49866a758d03d0
Reviewed-on: https://chromium-review.googlesource.com/701878
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/test/test_lists/checker.py
[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/test/test_lists/test_list.schema.json
[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/test/test_lists/manager.py
[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/test/test_lists/checker_unittest.py
[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/test/factory.py
[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/doc/test_list_api.rst
[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/test/test_lists/JSON_TEST_LIST.md
[delete] https://crrev.com/e5c0f87babfe794979a8de3cd525db1982556627/py/test/test_lists/test_lists.py
[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/goofy/goofy.py
[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/test/test_lists/TEST_LIST.md
[modify] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/test/test_lists/test_object.py
[add] https://crrev.com/f1c345feae1b37a0028414d19ab2a22ccaaa48ae/py/test/test_lists/test_list.py

Project Member

Comment 28 by bugdroid1@chromium.org, Oct 15 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/f75eb11a3fd3f3e53445b6662d3256e9412a54e6

commit f75eb11a3fd3f3e53445b6662d3256e9412a54e6
Author: Wei-Han Chen <stimim@google.com>
Date: Fri Oct 13 21:44:39 2017

factory: remove 'status' from FactoryTestFailure

This feature is not currently used by anyone.

BUG= chromium:758115 
TEST=make test

Change-Id: I0ee05b07fcfd2738ea684298be77462335c14685
Reviewed-on: https://chromium-review.googlesource.com/716098
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>

[modify] https://crrev.com/f75eb11a3fd3f3e53445b6662d3256e9412a54e6/py/goofy/invocation.py
[modify] https://crrev.com/f75eb11a3fd3f3e53445b6662d3256e9412a54e6/py/test/factory.py

Project Member

Comment 29 by bugdroid1@chromium.org, Oct 15 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71

commit 3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71
Author: Wei-Han Chen <stimim@google.com>
Date: Fri Oct 13 21:44:39 2017

test_list: move TestState to cros.factory.test.state

BUG= chromium:758115 
TEST=make test

Change-Id: I10c7ca818cd52f245916f44eb6cba08707edcab5
Reviewed-on: https://chromium-review.googlesource.com/716099
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/goofy/goofy_rpc.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/pytests/shutdown/shutdown.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/goofy/goofy_unittest.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/test_ui_unittest.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/goofy/invocation.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/pytests/summary/summary.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/test_ui.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/pytests/shutdown/shutdown_e2etest.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/factory.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/state.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/pytests/vswr/vswr.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/e2e_test/e2e_test.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/tools/factory.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/goofy/test_list_iterator_unittest.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/goofy/goofy.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/shopfloor/README.md
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/state_unittest.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/test_lists/test_object.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/test/run_pytest.py
[modify] https://crrev.com/3b0304939803bdd391cdc11ac8ccd2cf2a6a6e71/py/goofy/test_list_iterator.py

Project Member

Comment 30 by bugdroid1@chromium.org, Oct 20 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/a14210e323d8e575534c4e8d84771164e036cd85

commit a14210e323d8e575534c4e8d84771164e036cd85
Author: Wei-Han Chen <stimim@google.com>
Date: Fri Oct 20 15:22:11 2017

test_list: replace dummy test list by new test list class

If the active test list is not available, we used to return an empty
LegacyTestList(FactoryTestList()) instance.  Because we are going to
deprecate LegacyTestList, we need to change implementation for this
case.

BUG= chromium:758115 
TEST=make test

Change-Id: I246622a2078d89bf8b5f739190e505fa7dd038c2
Reviewed-on: https://chromium-review.googlesource.com/730248
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org>

[modify] https://crrev.com/a14210e323d8e575534c4e8d84771164e036cd85/py/goofy/goofy.py
[modify] https://crrev.com/a14210e323d8e575534c4e8d84771164e036cd85/py/test/test_lists/manager.py

Project Member

Comment 32 by bugdroid1@chromium.org, Nov 7 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/0f8448c94897a59ef5c288c3eb4d771929c861a9

commit 0f8448c94897a59ef5c288c3eb4d771929c861a9
Author: Wei-Han Chen <stimim@google.com>
Date: Tue Nov 07 23:25:17 2017

test list: remove TestArgEng

LegacyTestList is removed completely, so there won't be lambda functions
in test lists, and TestArgEnv is not used anymore.

BUG= chromium:758115 
TEST=make test

Change-Id: I858afe78f8a58281df9a86f273baf5a3ba867c93
Reviewed-on: https://chromium-review.googlesource.com/755620
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/0f8448c94897a59ef5c288c3eb4d771929c861a9/py/goofy/invocation.py
[modify] https://crrev.com/0f8448c94897a59ef5c288c3eb4d771929c861a9/py/test/test_lists/manager.py
[modify] https://crrev.com/0f8448c94897a59ef5c288c3eb4d771929c861a9/py/test/test_lists/manager_unittest.py
[modify] https://crrev.com/0f8448c94897a59ef5c288c3eb4d771929c861a9/py/goofy/test_list_iterator_unittest.py
[modify] https://crrev.com/0f8448c94897a59ef5c288c3eb4d771929c861a9/py/goofy/test_list_iterator.py

Project Member

Comment 33 by bugdroid1@chromium.org, Nov 8 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/cb6790c7f5aaedd9e044be0c37ed549b6f214c43

commit cb6790c7f5aaedd9e044be0c37ed549b6f214c43
Author: Wei-Han Chen <stimim@google.com>
Date: Wed Nov 08 09:11:16 2017

test list: move FactoryTestList, ITestList to test_list.py

Dependency (latter depends on former):

  type_utils
  test_object
  test_list
  checker
  manager

BUG= chromium:758115 
TEST=make test

Change-Id: Ic688fa796e05025936a83ab2ec3cea67c6bd7d39
Reviewed-on: https://chromium-review.googlesource.com/756052
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>

[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/test/test_lists/checker.py
[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/test/test_lists/manager_unittest.py
[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/test/test_lists/test_list.py
[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/po/zh-CN.po
[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/test/test_lists/manager.py
[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/test/test_lists/test_object_unittest.py
[add] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/test/test_lists/test_list_unittest.py
[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/goofy/goofy_rpc_unittest.py
[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/test/test_lists/test_object.py
[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/goofy/test_list_iterator.py
[modify] https://crrev.com/cb6790c7f5aaedd9e044be0c37ed549b6f214c43/py/utils/type_utils.py

Project Member

Comment 34 by bugdroid1@chromium.org, Nov 9 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/platform/factory/+/df8b5903c7e6c0ab0f18ee7595720dffadf99a16

commit df8b5903c7e6c0ab0f18ee7595720dffadf99a16
Author: Wei-Han Chen <stimim@google.com>
Date: Thu Nov 09 01:25:43 2017

test list: remove TEST_LIST.md, refine JSON_TEST_LIST.md

TEST_LIST.md was a readme file for legacy test list, which is completely
removed now.  Move relavent contents to JSON_TEST_LIST.md and delete the
file.

BUG= chromium:758115 
TEST=make test

Change-Id: I0ec6fc81cf9ff6b5989a96a234bc0826a9343c4b
Reviewed-on: https://chromium-review.googlesource.com/756073
Commit-Ready: Wei-Han Chen <stimim@chromium.org>
Tested-by: Wei-Han Chen <stimim@chromium.org>
Reviewed-by: Wei-Han Chen <stimim@chromium.org>

[delete] https://crrev.com/358fd3be5e0ef3a411e778bbd1572181e7f6cfc1/py/test/test_lists/TEST_LIST.md
[modify] https://crrev.com/df8b5903c7e6c0ab0f18ee7595720dffadf99a16/py/test/test_lists/JSON_TEST_LIST.md
[modify] https://crrev.com/df8b5903c7e6c0ab0f18ee7595720dffadf99a16/py/test/test_lists/README.md

Status: Fixed (was: Started)

Sign in to add a comment