xref: /aosp_15_r20/external/autotest/server/site_tests/tast/control.critical-chrome-shard-0 (revision 9c5db1993ded3edbeafc8092d69fe5de2ee02df7)
1# Copyright 2018 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from autotest_lib.client.common_lib import utils
6
7AUTHOR = 'Chromium OS team'
8NAME = 'tast.critical-chrome-shard-0'
9TIME = 'MEDIUM'
10TEST_TYPE = 'Server'
11DEPENDENCIES = 'servo_state:WORKING'
12# Android changes can't break Chrome tests (so we don't need to run them in the
13# Android PFQ), but OS changes can (so we need to run them in the CQ).
14ATTRIBUTES = 'suite:bvt-tast-cq, suite:bvt-tast-chrome-pfq, suite:py3-beta, suite:cft-beta'
15MAX_RESULT_SIZE_KB = 256 * 1024
16PY_VERSION = 3
17
18# tast.py uses binaries installed from autotest_server_package.tar.bz2.
19REQUIRE_SSP = True
20
21DOC = '''
22Run the Tast must-pass Chrome test suite.
23
24Tast is an integration-testing framework analagous to the test-running portion
25of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
26more information.
27
28This test runs Chrome-dependent Tast-based tests that are required to pass
29against a remote DUT. It fails if any individual Tast tests fail.
30
31See http://go/tast-failures for information about investigating failures.
32'''
33
34args_dict = utils.args_to_dict(args)
35assert 'servo_state:WORKING' in DEPENDENCIES
36servo_args = hosts.CrosHost.get_servo_arguments(args_dict)
37
38def run(machine):
39    # TODO(crbug.com/992303): Fix android condition.
40    job.run_test('tast',
41                 host=hosts.create_host(machine, servo_args=servo_args),
42                 test_exprs=['('
43                             '"group:mainline" && '
44                             '!informational && '
45                             '"dep:chrome" && '
46                             '!"name:crostini.*" && '
47                             '!"dep:android*"'
48                             ')'],
49                 ignore_test_failures=False, max_run_sec=7200,
50                 totalshards=3,
51                 shardindex=0,
52                 command_args=args,
53                 clear_tpm=True,
54                 retries=2)
55
56parallel_simple(run, machines)
57