• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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# TODO(ihf): Find a good aapt and update to it.
6SDK_TOOLS_DIR = 'gs://chromeos-arc-images/builds/git_nyc-mr1-arc-linux-static_sdk_tools/3544738'
7SDK_TOOLS_FILES = ['aapt']
8
9# To stabilize adb behavior, we use statically linked adb.
10ADB_DIR = 'gs://chromeos-arc-images/builds/git_qt-release-static_sdk_tools/6118618'
11ADB_FILES = ['adb']
12
13ADB_POLLING_INTERVAL_SECONDS = 1
14ADB_CONNECT_TIMEOUT_SECONDS = 10
15ADB_KILL_SERVER_TIMEOUT_SECONDS = 10
16ADB_READY_TIMEOUT_SECONDS = 30
17
18ARC_POLLING_INTERVAL_SECONDS = 1
19ARC_READY_TIMEOUT_SECONDS = 60
20
21TRADEFED_PREFIX = 'autotest-tradefed-install_'
22# While running CTS tradefed creates state in the installed location (there is
23# currently no way to specify a dedicated result directory for all changes).
24# For this reason we start each test with a clean copy of the CTS/GTS bundle.
25TRADEFED_CACHE_LOCAL = '/tmp/autotest-tradefed-cache'
26# On lab servers and moblab all server tests run inside of lxc instances
27# isolating file systems from each other. To avoid downloading CTS artifacts
28# repeatedly for each test (or lxc instance) we share a common location
29# /usr/local/autotest/results/shared which is visible to all lxc instances on
30# that server. It needs to be writable as the cache is maintained jointly by
31# all CTS/GTS tests. Currently both read and write access require taking the
32# lock. Writes happen rougly monthly while reads are many times a day. If this
33# becomes a bottleneck we could examine allowing concurrent reads.
34TRADEFED_CACHE_CONTAINER = '/usr/local/autotest/results/shared/cache'
35TRADEFED_CACHE_CONTAINER_LOCK = '/usr/local/autotest/results/shared/lock'
36# The maximum size of the shared global cache. It needs to be able to hold
37# N, M, x86, arm CTS bundles (500MB), the GTS bundle and media stress videos
38# (2GB) zipped to not thrash. In addition it needs to be able to hold one
39# different revision per Chrome OS branch. While this sounds  like a lot,
40# only a single bundle is copied into each lxc instance (500MB), hence the
41# impact of running say 100 CTS tests in parallel is acceptable (quarter
42# servers have 500GB of disk, while full servers have 2TB).
43TRADEFED_CACHE_MAX_SIZE = (20 * 1024 * 1024 * 1024)
44# The path that cts-tradefed uses to place media assets. By downloading and
45# expanding the archive here beforehand, tradefed can reuse the content.
46TRADEFED_MEDIA_PATH = '/tmp/android-cts-media'
47
48# It looks like the GCE builder can be very slow and login on VMs take much
49# longer than on hardware or bare metal.
50LOGIN_BOARD_TIMEOUT = {'betty': 300, 'betty-arcnext': 300, 'betty-pi-arc': 300}
51LOGIN_DEFAULT_TIMEOUT = 90
52
53# Approximately assume ChromeOS revision Rdd-xxxxx.y.z with y>=45 as stable.
54APPROXIMATE_STABLE_BRANCH_NUMBER = 45
55
56# Directories for overriding powerd prefs during tests.
57POWERD_PREF_DIR = '/var/lib/power_manager'
58POWERD_TEMP_DIR = '/tmp/autotest_powerd_prefs'
59
60PRIVATE_KEY = '''-----BEGIN PRIVATE KEY-----
61MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCnHNzujonYRLoI
62F2pyJX1SSrqmiT/3rTRCP1X0pj1V/sPGwgvIr+3QjZehLUGRQL0wneBNXd6EVrST
63drO4cOPwSxRJjCf+/PtS1nwkz+o/BGn5yhNppdSro7aPoQxEVM8qLtN5Ke9tx/zE
64ggxpF8D3XBC6Los9lAkyesZI6xqXESeofOYu3Hndzfbz8rAjC0X+p6Sx561Bt1dn
65T7k2cP0mwWfITjW8tAhzmKgL4tGcgmoLhMHl9JgScFBhW2Nd0QAR4ACyVvryJ/Xa
662L6T2YpUjqWEDbiJNEApFb+m+smIbyGz0H/Kj9znoRs84z3/8rfyNQOyf7oqBpr2
6752XG4totAgMBAAECggEARisKYWicXKDO9CLQ4Uj4jBswsEilAVxKux5Y+zbqPjeR
68AN3tkMC+PHmXl2enRlRGnClOS24ExtCZVenboLBWJUmBJTiieqDC7o985QAgPYGe
699fFxoUSuPbu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