Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/usr/bin/python | |
| 2 | |
| 3 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
| 4 # Use of this source code is governed by a BSD-style license that can be | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 """Archive builds from the multivm and dartium perf builders | |
|
ricow1
2014/05/14 17:28:18
does this really get called for dartium perf build
Bill Hesse
2014/05/15 10:46:37
Yes, since the setup is identical for multivm and
| |
| 8 | |
| 9 Archive dartium, content_shell, and chromedriver to the old cloud storage bucket | |
| 10 gs://dartium-archive. | |
| 11 """ | |
| 12 | |
| 13 import os | |
| 14 import platform | |
| 15 import re | |
| 16 import subprocess | |
| 17 import sys | |
| 18 | |
| 19 import upload_steps | |
| 20 import utils | |
| 21 | |
| 22 SRC_PATH = os.path.dirname( | |
|
ricow1
2014/05/14 17:28:18
how about putting this in utils and using it here
Bill Hesse
2014/05/15 10:46:37
Done. But:
The file utils.py contains only total
| |
| 23 os.path.dirname( | |
| 24 os.path.dirname( | |
| 25 os.path.dirname(os.path.abspath(__file__))))) | |
| 26 | |
| 27 def main(): | |
| 28 multivm_deps = os.path.join(os.path.dirname(SRC_PATH), 'multivm.deps') | |
| 29 revision_directory = (multivm_deps if (os.path.isdir(multivm_deps)) | |
| 30 else os.path.join(SRC_PATH, 'dart')) | |
| 31 output, _ = subprocess.Popen(['svn', 'info'], | |
| 32 stdout=subprocess.PIPE, | |
| 33 stderr=subprocess.STDOUT, | |
| 34 shell=(platform.system == 'Windows'), | |
| 35 cwd = revision_directory).communicate() | |
| 36 revision = re.search('Last Changed Rev: (\d+)', output).group(1) | |
| 37 version = revision + '.0' | |
| 38 info = upload_steps.BuildInfo(version, revision) | |
| 39 | |
| 40 # Archive to the revision bucket unless integration build | |
|
ricow1
2014/05/14 17:28:18
what does integration build mean here?
Bill Hesse
2014/05/15 10:46:37
Stray comment - fixed.
| |
| 41 if info.is_build: | |
| 42 upload_steps.ArchiveAndUpload(info, archive_latest=False) | |
| 43 | |
| 44 if __name__ == '__main__': | |
| 45 sys.exit(main()) | |
| OLD | NEW |