Chris Sosa | 76e44b9 | 2013-01-31 12:11:38 -0800 | [diff] [blame] | 1 | # 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 Sosa | 6b0c617 | 2013-08-05 17:01:33 -0700 | [diff] [blame] | 9 | # 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 Sosa | 76e44b9 | 2013-01-31 12:11:38 -0800 | [diff] [blame] | 13 | #### Update payload names. #### |
| 14 | |
| 15 | # The name of artifact to stage a full update payload. |
| 16 | FULL_PAYLOAD = 'full_payload' |
| 17 | |
| 18 | # The name of the artifact to stage all delta payloads for a build. |
| 19 | DELTA_PAYLOADS = 'delta_payloads' |
| 20 | |
| 21 | # The payload containing stateful data not stored on the rootfs of the image. |
| 22 | STATEFUL_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. |
| 27 | BASE_IMAGE = 'base_image' |
| 28 | |
| 29 | # The recovery image - the image used to recover a chromiumos device. |
| 30 | RECOVERY_IMAGE = 'recovery_image' |
| 31 | |
| 32 | # The test image - the base image with both develolper and test enhancements. |
| 33 | TEST_IMAGE = 'test_image' |
| 34 | |
Chris Sosa | 7549080 | 2013-09-30 17:21:45 -0700 | [diff] [blame] | 35 | # The developer image - the base image with developer enhancements. |
| 36 | DEV_IMAGE = 'dev_image' |
| 37 | |
Chris Sosa | 76e44b9 | 2013-01-31 12:11:38 -0800 | [diff] [blame] | 38 | #### Autotest related packages. #### |
| 39 | |
| 40 | # Autotest -- the main autotest directory without the test_suites subdir. |
| 41 | AUTOTEST = 'autotest' |
| 42 | |
Simran Basi | ea0590d | 2014-10-29 11:31:26 -0700 | [diff] [blame] | 43 | # Control Files -- the autotest control files without the test_suites subdir. |
| 44 | CONTROL_FILES = 'control_files' |
| 45 | |
| 46 | # Autotest Packages-- the autotest packages subdirectory. |
| 47 | AUTOTEST_PACKAGES = 'autotest_packages' |
| 48 | |
Simran Basi | 6459bba | 2015-02-04 14:47:23 -0800 | [diff] [blame] | 49 | # Autotest Server Package. |
| 50 | AUTOTEST_SERVER_PACKAGE = 'autotest_server_package' |
| 51 | |
Chris Sosa | 76e44b9 | 2013-01-31 12:11:38 -0800 | [diff] [blame] | 52 | # Test Suites - just the test suites control files from the autotest directory. |
| 53 | TEST_SUITES = 'test_suites' |
| 54 | |
| 55 | # AU Suite - The control files for the autotest autoupdate suite. |
| 56 | AU_SUITE = 'au_suite' |
| 57 | |
Chris Sosa | 968a106 | 2013-08-02 17:42:50 -0700 | [diff] [blame] | 58 | # AU Suite - The control files for the paygen autoupdate suite (depends |
| 59 | # on channel defined in devserver_constants). |
| 60 | PAYGEN_AU_SUITE_TEMPLATE = 'paygen_au_%(channel)s_suite' |
Chris Sosa | 5d1b079 | 2013-07-31 10:54:52 -0700 | [diff] [blame] | 61 | |
Chris Sosa | 76e44b9 | 2013-01-31 12:11:38 -0800 | [diff] [blame] | 62 | #### Miscellaneous artifacts. #### |
| 63 | |
| 64 | # Firmware tarball. |
| 65 | FIRMWARE = 'firmware' |
| 66 | |
| 67 | # Tarball containing debug symbols for the given build. |
| 68 | SYMBOLS = 'symbols' |
| 69 | |
beeps | c3d0f87 | 2013-07-31 21:50:40 -0700 | [diff] [blame] | 70 | # The factory test image. |
| 71 | FACTORY_IMAGE = 'factory_image' |
Chris Sosa | 76e44b9 | 2013-01-31 12:11:38 -0800 | [diff] [blame] | 72 | |
Gabe Black | 3b56720 | 2015-09-23 14:07:59 -0700 | [diff] [blame] | 73 | #### Android artifacts. These are in a different namespace from the above. #### |
| 74 | |
| 75 | # Various android images stored in a zip file (including boot and system). |
| 76 | # For example, shamu-img-2284311.zip contains boot.img, cache.img, recovery.img, |
| 77 | # system.img and userdata.img. fastboot can use the zip file to update the dut |
| 78 | # in a single command. Therefore, devserver does not unzip the zip file to avoid |
| 79 | # unnecessary load on the devserver. |
| 80 | ANDROID_ZIP_IMAGES = 'zip_images' |
| 81 | |
| 82 | # Radio image. |
| 83 | ANDROID_RADIO_IMAGE = 'radio_image' |
| 84 | |
| 85 | # Bootloader image. |
| 86 | ANDROID_BOOTLOADER_IMAGE = 'bootloader_image' |
| 87 | |
| 88 | # fastboot, utility to flash image to Android device. |
| 89 | ANDROID_FASTBOOT = 'fastboot' |
| 90 | |
| 91 | # Test zip file for Android build, e.g., shamu-tests-2284311.zip |
| 92 | ANDROID_TEST_ZIP = 'test_zip' |
| 93 | |
Dan Shi | 74136ae | 2015-12-01 14:40:06 -0800 | [diff] [blame] | 94 | # Zip file of vendor partitions used by Brillo device. |
| 95 | ANDROID_VENDOR_PARTITION_ZIP = 'vendor_partitions' |
| 96 | |
Chris Sosa | 76e44b9 | 2013-01-31 12:11:38 -0800 | [diff] [blame] | 97 | # In general, downloading one artifact usually indicates that the caller will |
| 98 | # want to download other artifacts later. The following map explicitly defines |
| 99 | # this relationship. Specifically: |
| 100 | # If X is requested, all items in Y should also get triggered for download. |
| 101 | REQUESTED_TO_OPTIONAL_MAP = { |
Simran Basi | 4243a86 | 2014-12-12 12:48:33 -0800 | [diff] [blame] | 102 | TEST_SUITES: [CONTROL_FILES, AUTOTEST_PACKAGES], |
Chris Sosa | 76e44b9 | 2013-01-31 12:11:38 -0800 | [diff] [blame] | 103 | } |
Dan Shi | 2f13686 | 2016-02-11 15:38:38 -0800 | [diff] [blame^] | 104 | |
| 105 | # Map between the artifact name and the folder after it's unzipped. |
| 106 | ARTIFACT_UNZIP_FOLDER_MAP = { |
| 107 | ANDROID_TEST_ZIP: 'DATA', |
| 108 | } |