blob: 35ac8b97e2c866523cfb08b10d8ec720d8ae217d [file] [log] [blame]
joychen3cb228e2013-06-12 19:13:131# 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 constants shared across all other devserver modules."""
6
7#### Google Storage locations and names. ####
8# TODO (joyc) move the google storage filenames of artfacts here
Chris Sosa968a1062013-08-03 00:42:509CHANNELS = 'canary', 'dev', 'beta', 'stable'
joychenf8f07e22013-07-13 00:45:5110GS_IMAGE_DIR = 'gs://chromeos-image-archive'
Simran Basi99e63c02014-05-20 17:39:5211GS_LATEST_MASTER = '%(image_dir)s/%(board)s%(suffix)s/LATEST-master'
Gilad Arnold869e8ab2015-02-20 07:34:4912GS_LATEST_BASE_VERSION = (
13 '%(image_dir)s/%(board)s%(suffix)s/LATEST-%(base_version)s')
Chris Sosaea734d92013-10-11 18:28:5814IMAGE_DIR = '%(board)s%(suffix)s/%(version)s'
joychenf8f07e22013-07-13 00:45:5115
16GS_RELEASES_DIR = 'gs://chromeos-releases'
17GS_CHANNEL_DIR = GS_RELEASES_DIR + '/%(channel)s-channel/%(board)s/'
18
Gilad Arnold995f1842015-02-20 07:49:1619VERSION = r'[-0-9\.]+'
Simran Basief83d6a2014-08-28 21:32:0120VERSION_RE = 'R%s' % VERSION
21
22STAGED_BUILD_REGEX = '/static/(?P<build>.*-.*/%s)/.*' % VERSION_RE
23
joychen3cb228e2013-06-12 19:13:1324
25#### Local storage locations and names. ####
26AUTOTEST_DIR = 'autotest'
joychen921e1fb2013-06-28 18:12:2027BASE_IMAGE_FILE = 'chromiumos_base_image.bin'
joychen25d25972013-07-30 21:54:1628IMAGE_FILE = 'chromiumos_image.bin'
beepsc3d0f872013-08-01 04:50:4029FACTORY_IMAGE_FILE = 'factory_test/chromiumos_factory_image.bin'
joychen25d25972013-07-30 21:54:1630RECOVERY_IMAGE_FILE = 'recovery_image.bin'
joychen921e1fb2013-06-28 18:12:2031TEST_IMAGE_FILE = 'chromiumos_test_image.bin'
joychen25d25972013-07-30 21:54:1632
joychen121fc9b2013-08-02 21:30:3033ALL_IMAGES = (
Gilad Arnold995f1842015-02-20 07:49:1634 BASE_IMAGE_FILE,
35 IMAGE_FILE,
36 RECOVERY_IMAGE_FILE,
37 TEST_IMAGE_FILE,
joychen121fc9b2013-08-02 21:30:3038)
39
joychen25d25972013-07-30 21:54:1640#### Update files
41CACHE_DIR = 'cache'
42METADATA_FILE = 'update.meta'
David Zeuthen52ccd012013-10-31 19:58:2643METADATA_HASH_FILE = 'metadata_hash'
joychen25d25972013-07-30 21:54:1644STATEFUL_FILE = 'stateful.tgz'
45UPDATE_FILE = 'update.gz'