OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |