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

Side by Side Diff: appengine/swarming/server/bot_code.py

Issue 2013943002: Changing license header, again! (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: Fixed third parties Created 4 years, 7 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 | « appengine/swarming/server/bot_auth.py ('k') | appengine/swarming/server/bot_code_test.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 # Copyright 2014 The LUCI Authors. All rights reserved. 1 # Copyright 2014 The LUCI Authors. All rights reserved.
2 # Use of this source code is governed by the Apache v2.0 license that can be 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """Swarming bot code. Includes bootstrap and swarming_bot.zip. 5 """Swarming bot code. Includes bootstrap and swarming_bot.zip.
6 6
7 It includes everything that is AppEngine specific. The non-GAE code is in 7 It includes everything that is AppEngine specific. The non-GAE code is in
8 bot_archive.py. 8 bot_archive.py.
9 """ 9 """
10 10
11 import collections 11 import collections
12 import logging 12 import logging
13 import os.path 13 import os.path
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 # Get the start bot script from the database, if present. Pass an empty 178 # Get the start bot script from the database, if present. Pass an empty
179 # file if the files isn't present. 179 # file if the files isn't present.
180 additionals = {'config/bot_config.py': get_bot_config().content} 180 additionals = {'config/bot_config.py': get_bot_config().content}
181 bot_dir = os.path.join(ROOT_DIR, 'swarming_bot') 181 bot_dir = os.path.join(ROOT_DIR, 'swarming_bot')
182 content, bot_version = bot_archive.get_swarming_bot_zip( 182 content, bot_version = bot_archive.get_swarming_bot_zip(
183 bot_dir, host, utils.get_app_version(), additionals) 183 bot_dir, host, utils.get_app_version(), additionals)
184 memcache.set('code-%s' + bot_version, content, namespace='bot_code') 184 memcache.set('code-%s' + bot_version, content, namespace='bot_code')
185 logging.info('generated bot code %s; %d bytes', bot_version, len(content)) 185 logging.info('generated bot code %s; %d bytes', bot_version, len(content))
186 return content 186 return content
OLDNEW
« no previous file with comments | « appengine/swarming/server/bot_auth.py ('k') | appengine/swarming/server/bot_code_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698