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 5 SDK_TOOLS_DIR = 'gs://chromeos-arc-images/builds/git_nyc-mr1-arc-linux-static_sdk_tools/3544738' 6 SDK_TOOLS_FILES = ['aapt'] 7 8 # To stabilize adb behavior, we use dynamically linked adb. 9 ADB_DIR = 'gs://chromeos-arc-images/builds/git_nyc-mr1-arc-linux-cheets_arm-user/3544738' 10 ADB_FILES = ['adb'] 11 12 ADB_POLLING_INTERVAL_SECONDS = 1 13 ADB_READY_TIMEOUT_SECONDS = 60 14 ANDROID_ADB_KEYS_PATH = '/data/misc/adb/adb_keys' 15 16 ARC_POLLING_INTERVAL_SECONDS = 1 17 ARC_READY_TIMEOUT_SECONDS = 60 18 19 TRADEFED_PREFIX = 'autotest-tradefed-install_' 20 # While running CTS tradefed creates state in the installed location (there is 21 # currently no way to specify a dedicated result directory for all changes). 22 # For this reason we start each test with a clean copy of the CTS/GTS bundle. 23 TRADEFED_CACHE_LOCAL = '/tmp/autotest-tradefed-cache' 24 # On lab servers and moblab all server tests run inside of lxc instances 25 # isolating file systems from each other. To avoid downloading CTS artifacts 26 # repeatedly for each test (or lxc instance) we share a common location 27 # /usr/local/autotest/results/shared which is visible to all lxc instances on 28 # that server. It needs to be writable as the cache is maintained jointly by 29 # all CTS/GTS tests. Currently both read and write access require taking the 30 # lock. Writes happen rougly monthly while reads are many times a day. If this 31 # becomes a bottleneck we could examine allowing concurrent reads. 32 TRADEFED_CACHE_CONTAINER = '/usr/local/autotest/results/shared/cache' 33 TRADEFED_CACHE_CONTAINER_LOCK = '/usr/local/autotest/results/shared/lock' 34 # The maximum size of the shared global cache. It needs to be able to hold 35 # N, M, x86, arm CTS bundles (500MB), the GTS bundle and media stress videos 36 # (2GB) zipped to not thrash. In addition it needs to be able to hold one 37 # different revision per Chrome OS branch. While this sounds like a lot, 38 # only a single bundle is copied into each lxc instance (500MB), hence the 39 # impact of running say 100 CTS tests in parallel is acceptable (quarter 40 # servers have 500GB of disk, while full servers have 2TB). 41 TRADEFED_CACHE_MAX_SIZE = (20 * 1024 * 1024 * 1024) 42 43 # It looks like the GCE builder can be very slow and login on VMs take much 44 # longer than on hardware or bare metal. 45 LOGIN_BOARD_TIMEOUT = {'betty': 300} 46 LOGIN_DEFAULT_TIMEOUT = 90 47