• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Suite running in Skylab
2
3[TOC]
4
5This is the package of Skylab suite. See the [design
6doc](http://goto.google.com/chromeos-skylab-suites).
7
8The package of Autotest suite is in
9https://chromium.googlesource.com/chromiumos/third_party/autotest/+/master/server/cros/dynamic_suite/
10
11## Overview
12
13Skylab suite package provides two commands:
14
15- `bin/run_suite_skylab`
16- `bin/abort_suite_skylab`
17
18`run_suite_skylab` is a script to kick off a suite running in Skylab.
19`abort_suite_skylab`is a script to abort a suite running in Skylab.
20
21## Development
22
23To run unittests, in the autotest repository root, run:
24
25    $ bin/test_skylab_suite
26
27To test locally, some example commands are:
28
29    $ bin/run_suite_skylab --pool=suites --board=nyan_blaze --suite_name=sanity
30      --build=nyan_blaze-release/R69-10763.0.0 --priority 215 --do_nothing
31
32    $ bin/run_suite_skylab --pool=cq --board=nyan_blaze --suite_name=dummy
33      --build=nyan_blaze-release/R69-10763.0.0 --priority 80 --timeout_mins 30
34      --test_retry --max_retries 5
35
36    $ bin/run_suite_skylab --build nyan_blaze-release/R69-10763.0.0 --board nyan_blaze
37      --suite_name provision --pool suites --priority 50 --timeout_min 30 --test_retry
38      --max_retries 5 --suite_args "{u'num_required': 1} --create_and_return
39
40To trigger a suite to staging lab, in the chromite repository root, run:
41
42   $ ./third_party/swarming.client/swarming.py run --auth-service-account-json [secret_file]
43     --swarming https://chromium-swarm-dev.appspot.com --raw-cmd
44     --dimension pool ChromeOSSkylab-suite --dimension id [cros-skylab-staging-2-*]
45     '--tags=luci_project:chromiumos' --tags='build:nyan_blaze-release/R70-11012.0.0' --
46     /usr/local/autotest/bin/run_suite_skylab --build nyan_blaze-release/R70-11012.0.0
47     [omit other parameters...] --create_and_return --use_fallback --pre_check
48