blob: 19081ed6603a37216b840287109c8bbcff15a25b [file] [log] [blame]
Chris Sosa76e44b92013-01-31 20:11:381# Copyright (c) 2013 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"""Module contains a list of artifact name related constants and methods."""
6
7############ Artifact Names ############
8
Chris Sosa6b0c6172013-08-06 00:01:339# Note these are the available 'artifacts' that are known to the devserver. If
10# you just need to stage a file from gs directly, use the files api. See the
11# stage documentation for more info.
12
Chris Sosa76e44b92013-01-31 20:11:3813#### Update payload names. ####
14
15# The name of artifact to stage a full update payload.
16FULL_PAYLOAD = 'full_payload'
17
18# The name of the artifact to stage all delta payloads for a build.
19DELTA_PAYLOADS = 'delta_payloads'
20
21# The payload containing stateful data not stored on the rootfs of the image.
22STATEFUL_PAYLOAD = 'stateful'
23
24#### The following are the names of images to stages. ####
25
26# The base image i.e. the image without any test/developer enhancements.
27BASE_IMAGE = 'base_image'
28
29# The recovery image - the image used to recover a chromiumos device.
30RECOVERY_IMAGE = 'recovery_image'
31
32# The test image - the base image with both develolper and test enhancements.
33TEST_IMAGE = 'test_image'
34
Chris Sosa75490802013-10-01 00:21:4535# The developer image - the base image with developer enhancements.
36DEV_IMAGE = 'dev_image'
37
David Riley0655bab2017-11-02 17:44:2638# The name of artifact to stage a quick provision payload.
39QUICK_PROVISION = 'quick_provision'
40
Chris Sosa76e44b92013-01-31 20:11:3841#### Autotest related packages. ####
42
43# Autotest -- the main autotest directory without the test_suites subdir.
44AUTOTEST = 'autotest'
45
Simran Basiea0590d2014-10-29 18:31:2646# Control Files -- the autotest control files without the test_suites subdir.
47CONTROL_FILES = 'control_files'
48
49# Autotest Packages-- the autotest packages subdirectory.
50AUTOTEST_PACKAGES = 'autotest_packages'
51
Simran Basi6459bba2015-02-04 22:47:2352# Autotest Server Package.
53AUTOTEST_SERVER_PACKAGE = 'autotest_server_package'
54
Chris Sosa76e44b92013-01-31 20:11:3855# Test Suites - just the test suites control files from the autotest directory.
56TEST_SUITES = 'test_suites'
57
58# AU Suite - The control files for the autotest autoupdate suite.
59AU_SUITE = 'au_suite'
60
Chris Sosa968a1062013-08-03 00:42:5061# AU Suite - The control files for the paygen autoupdate suite (depends
62# on channel defined in devserver_constants).
63PAYGEN_AU_SUITE_TEMPLATE = 'paygen_au_%(channel)s_suite'
Chris Sosa5d1b0792013-07-31 17:54:5264
Chris Sosa76e44b92013-01-31 20:11:3865#### Miscellaneous artifacts. ####
66
67# Firmware tarball.
68FIRMWARE = 'firmware'
69
70# Tarball containing debug symbols for the given build.
71SYMBOLS = 'symbols'
72
Dan Shi55d0f972016-10-04 18:45:0073# A compressed tarball containing only sym files of debug symbols for the
74# given build.
75SYMBOLS_ONLY = 'symbols_only'
76
beepsc3d0f872013-08-01 04:50:4077# The factory test image.
78FACTORY_IMAGE = 'factory_image'
Chris Sosa76e44b92013-01-31 20:11:3879
Mike Frysingera0e6a282016-09-01 21:29:0880# The factory shim image.
81FACTORY_SHIM_IMAGE = 'factory_shim_image'
82
Justin Giorgib7590522017-02-07 21:36:2483#### Libiota Artifacts. These are in the same namespace as the above. ####
84
85# Archive with test binaries for flashing to the DUT.
86LIBIOTA_TEST_BINARIES = 'libiota_test_binaries'
87
88# Utilities required for managing the DUT.
89LIBIOTA_BOARD_UTILS = 'libiota_board_utils'
90
Gabe Black3b567202015-09-23 21:07:5991#### Android artifacts. These are in a different namespace from the above. ####
92
93# Various android images stored in a zip file (including boot and system).
94# For example, shamu-img-2284311.zip contains boot.img, cache.img, recovery.img,
95# system.img and userdata.img. fastboot can use the zip file to update the dut
96# in a single command. Therefore, devserver does not unzip the zip file to avoid
97# unnecessary load on the devserver.
98ANDROID_ZIP_IMAGES = 'zip_images'
99
100# Radio image.
101ANDROID_RADIO_IMAGE = 'radio_image'
102
103# Bootloader image.
104ANDROID_BOOTLOADER_IMAGE = 'bootloader_image'
105
106# fastboot, utility to flash image to Android device.
107ANDROID_FASTBOOT = 'fastboot'
108
109# Test zip file for Android build, e.g., shamu-tests-2284311.zip
110ANDROID_TEST_ZIP = 'test_zip'
111
Dan Shi74136ae2015-12-01 22:40:06112# Zip file of vendor partitions used by Brillo device.
113ANDROID_VENDOR_PARTITION_ZIP = 'vendor_partitions'
114
Simran Basi05be7212016-03-16 20:08:23115# Zip file of native tests used by Android devices.
116ANDROID_NATIVETESTS_ZIP = 'nativetests'
Ralph Nathan6c7fe5e2016-06-22 22:50:10117ANDROID_CONTINUOUS_NATIVE_TESTS_ZIP = 'continuous_native_tests'
Justin Giorgibb32ac42016-08-04 17:34:35118ANDROID_CONTINUOUS_INSTRUMENTATION_TESTS_ZIP = (
119 'continuous_instrumentation_tests')
Justin Giorgi4faa8902016-08-20 02:54:30120ANDROID_CTS_ZIP = 'android-cts'
Simran Basi05be7212016-03-16 20:08:23121
Justin Giorgi576c1542016-06-24 15:24:20122# Zip file including all target files and images
123ANDROID_TARGET_FILES_ZIP = 'target_files'
124
125# Zip file containing DTB for emulators
126ANDROID_DTB_ZIP = 'dtb'
127
Chris Sosa76e44b92013-01-31 20:11:38128# In general, downloading one artifact usually indicates that the caller will
129# want to download other artifacts later. The following map explicitly defines
130# this relationship. Specifically:
131# If X is requested, all items in Y should also get triggered for download.
Dan Shi6c2b2a22016-03-04 23:52:19132CROS_REQUESTED_TO_OPTIONAL_MAP = {
Simran Basi4243a862014-12-12 20:48:33133 TEST_SUITES: [CONTROL_FILES, AUTOTEST_PACKAGES],
Chris Sosa76e44b92013-01-31 20:11:38134}
Dan Shi6c2b2a22016-03-04 23:52:19135# Launch Control builds do not support autotest package.
136ANDROID_REQUESTED_TO_OPTIONAL_MAP = {
137 TEST_SUITES: [CONTROL_FILES],
138}
Dan Shi2f136862016-02-11 23:38:38139
140# Map between the artifact name and the folder after it's unzipped.
141ARTIFACT_UNZIP_FOLDER_MAP = {
142 ANDROID_TEST_ZIP: 'DATA',
143}