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

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

Issue 2024313003: Send authorization headers when calling Swarming backend. (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@master
Patch Set: rebase Created 4 years, 6 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/doc/Magic-Values.md ('k') | appengine/swarming/swarming_bot/api/bot.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 under the Apache License, Version 2.0 2 # Use of this source code is governed under the Apache License, Version 2.0
3 # that can be found in the LICENSE file. 3 # that can be found in the LICENSE file.
4 4
5 """Generates the swarming_bot.zip archive for the bot. 5 """Generates the swarming_bot.zip archive for the bot.
6 6
7 Unlike the other source files, this file can be run from ../tools/bot_archive.py 7 Unlike the other source files, this file can be run from ../tools/bot_archive.py
8 stand-alone to generate a swarming_bot.zip for local testing so it doesn't 8 stand-alone to generate a swarming_bot.zip for local testing so it doesn't
9 import anything from the AppEngine SDK. 9 import anything from the AppEngine SDK.
10 10
(...skipping 19 matching lines...) Expand all
30 'api/os_utilities.py', 30 'api/os_utilities.py',
31 'api/platforms/__init__.py', 31 'api/platforms/__init__.py',
32 'api/platforms/android.py', 32 'api/platforms/android.py',
33 'api/platforms/common.py', 33 'api/platforms/common.py',
34 'api/platforms/gce.py', 34 'api/platforms/gce.py',
35 'api/platforms/linux.py', 35 'api/platforms/linux.py',
36 'api/platforms/osx.py', 36 'api/platforms/osx.py',
37 'api/platforms/posix.py', 37 'api/platforms/posix.py',
38 'api/platforms/win.py', 38 'api/platforms/win.py',
39 'bot_code/__init__.py', 39 'bot_code/__init__.py',
40 'bot_code/bot_auth.py',
40 'bot_code/bot_main.py', 41 'bot_code/bot_main.py',
41 'bot_code/common.py', 42 'bot_code/common.py',
43 'bot_code/file_reader.py',
44 'bot_code/file_refresher.py',
45 'bot_code/remote_client.py',
42 'bot_code/singleton.py', 46 'bot_code/singleton.py',
43 'bot_code/task_runner.py', 47 'bot_code/task_runner.py',
44 'client/auth.py', 48 'client/auth.py',
45 'client/isolated_format.py', 49 'client/isolated_format.py',
46 'client/isolateserver.py', 50 'client/isolateserver.py',
47 'client/run_isolated.py', 51 'client/run_isolated.py',
48 'config/__init__.py', 52 'config/__init__.py',
49 'third_party/__init__.py', 53 'third_party/__init__.py',
50 'third_party/colorama/__init__.py', 54 'third_party/colorama/__init__.py',
51 'third_party/colorama/ansi.py', 55 'third_party/colorama/ansi.py',
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 h.update(str(len(name))) 298 h.update(str(len(name)))
295 h.update(name) 299 h.update(name)
296 h.update(str(len(content))) 300 h.update(str(len(content)))
297 h.update(content) 301 h.update(content)
298 except IOError: 302 except IOError:
299 logging.warning('Missing expected file. Hash will be invalid.') 303 logging.warning('Missing expected file. Hash will be invalid.')
300 bot_version = h.hexdigest() 304 bot_version = h.hexdigest()
301 logging.info( 305 logging.info(
302 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) 306 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version)
303 return bot_version 307 return bot_version
OLDNEW
« no previous file with comments | « appengine/swarming/doc/Magic-Values.md ('k') | appengine/swarming/swarming_bot/api/bot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698