Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: gm/rebaseline_server/download_actuals.py

Issue 392353003: roll common DEPS, now using recursedeps (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: use list instead of set for recursedeps Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « DEPS ('k') | gm/rebaseline_server/server.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 """ 3 """
4 Copyright 2014 Google Inc. 4 Copyright 2014 Google Inc.
5 5
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 8
9 Download actual GM results for a particular builder. 9 Download actual GM results for a particular builder.
10 """ 10 """
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 create_subdirs_if_needed=True) 86 create_subdirs_if_needed=True)
87 87
88 88
89 def get_builders_list(summaries_bucket=GM_SUMMARIES_BUCKET): 89 def get_builders_list(summaries_bucket=GM_SUMMARIES_BUCKET):
90 """ Returns the list of builders we have actual results for. 90 """ Returns the list of builders we have actual results for.
91 91
92 Args: 92 Args:
93 summaries_bucket: Google Cloud Storage bucket containing the summary 93 summaries_bucket: Google Cloud Storage bucket containing the summary
94 JSON files 94 JSON files
95 """ 95 """
96 dirs, _ = gs_utils.list_bucket_contents(bucket=GM_SUMMARIES_BUCKET) 96 dirs, _ = gs_utils.GSUtils().list_bucket_contents(bucket=GM_SUMMARIES_BUCKET)
97 return dirs 97 return dirs
98 98
99 99
100 def main(): 100 def main():
101 parser = optparse.OptionParser() 101 parser = optparse.OptionParser()
102 required_params = [] 102 required_params = []
103 parser.add_option('--actuals-base-url', 103 parser.add_option('--actuals-base-url',
104 action='store', type='string', 104 action='store', type='string',
105 default=DEFAULT_ACTUALS_BASE_URL, 105 default=DEFAULT_ACTUALS_BASE_URL,
106 help=('Base URL from which to read files containing JSON ' 106 help=('Base URL from which to read files containing JSON '
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 remaining_args) 145 remaining_args)
146 146
147 downloader = Download(actuals_base_url=params.actuals_base_url) 147 downloader = Download(actuals_base_url=params.actuals_base_url)
148 downloader.fetch(builder_name=params.builder, 148 downloader.fetch(builder_name=params.builder,
149 dest_dir=params.dest_dir) 149 dest_dir=params.dest_dir)
150 150
151 151
152 152
153 if __name__ == '__main__': 153 if __name__ == '__main__':
154 main() 154 main()
OLDNEW
« no previous file with comments | « DEPS ('k') | gm/rebaseline_server/server.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698