Chris Sosa | 76e44b9 | 2013-01-31 20:11:38 | [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-06 00:01:33 | [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 20:11:38 | [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-10-01 00:21:45 | [diff] [blame] | 35 | # The developer image - the base image with developer enhancements. |
| 36 | DEV_IMAGE = 'dev_image' |
| 37 | |
Chris Sosa | 76e44b9 | 2013-01-31 20:11:38 | [diff] [blame] | 38 | #### Autotest related packages. #### |
| 39 | |
| 40 | # Autotest -- the main autotest directory without the test_suites subdir. |
| 41 | AUTOTEST = 'autotest' |
| 42 | |
| 43 | # Test Suites - just the test suites control files from the autotest directory. |
| 44 | TEST_SUITES = 'test_suites' |
| 45 | |
| 46 | # AU Suite - The control files for the autotest autoupdate suite. |
| 47 | AU_SUITE = 'au_suite' |
| 48 | |
Chris Sosa | 968a106 | 2013-08-03 00:42:50 | [diff] [blame] | 49 | # AU Suite - The control files for the paygen autoupdate suite (depends |
| 50 | # on channel defined in devserver_constants). |
| 51 | PAYGEN_AU_SUITE_TEMPLATE = 'paygen_au_%(channel)s_suite' |
Chris Sosa | 5d1b079 | 2013-07-31 17:54:52 | [diff] [blame] | 52 | |
Chris Sosa | 76e44b9 | 2013-01-31 20:11:38 | [diff] [blame] | 53 | #### Miscellaneous artifacts. #### |
| 54 | |
| 55 | # Firmware tarball. |
| 56 | FIRMWARE = 'firmware' |
| 57 | |
| 58 | # Tarball containing debug symbols for the given build. |
| 59 | SYMBOLS = 'symbols' |
| 60 | |
beeps | c3d0f87 | 2013-08-01 04:50:40 | [diff] [blame] | 61 | # The factory test image. |
| 62 | FACTORY_IMAGE = 'factory_image' |
Chris Sosa | 76e44b9 | 2013-01-31 20:11:38 | [diff] [blame] | 63 | |
| 64 | # In general, downloading one artifact usually indicates that the caller will |
| 65 | # want to download other artifacts later. The following map explicitly defines |
| 66 | # this relationship. Specifically: |
| 67 | # If X is requested, all items in Y should also get triggered for download. |
| 68 | REQUESTED_TO_OPTIONAL_MAP = { |
| 69 | TEST_SUITES: [AUTOTEST], |
| 70 | } |