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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 'bot_code/common.py', | 55 'bot_code/common.py', |
56 'bot_code/file_reader.py', | 56 'bot_code/file_reader.py', |
57 'bot_code/file_refresher.py', | 57 'bot_code/file_refresher.py', |
58 'bot_code/remote_client.py', | 58 'bot_code/remote_client.py', |
59 'bot_code/remote_client_errors.py', | 59 'bot_code/remote_client_errors.py', |
60 'bot_code/remote_client_grpc.py', | 60 'bot_code/remote_client_grpc.py', |
61 'bot_code/singleton.py', | 61 'bot_code/singleton.py', |
62 'bot_code/task_runner.py', | 62 'bot_code/task_runner.py', |
63 'client/auth.py', | 63 'client/auth.py', |
64 'client/cipd.py', | 64 'client/cipd.py', |
| 65 'client/isolate.py', |
| 66 'client/isolate_format.py', |
65 'client/isolate_storage.py', | 67 'client/isolate_storage.py', |
66 'client/isolated_format.py', | 68 'client/isolated_format.py', |
67 'client/isolateserver.py', | 69 'client/isolateserver.py', |
68 'client/named_cache.py', | 70 'client/named_cache.py', |
69 'client/proto/__init__.py', | 71 'client/proto/__init__.py', |
70 'client/proto/isolate_bot_pb2.py', | 72 'client/proto/isolate_bot_pb2.py', |
71 'client/run_isolated.py', | 73 'client/run_isolated.py', |
72 'config/__init__.py', | 74 'config/__init__.py', |
73 'infra_libs/__init__.py', | 75 'infra_libs/__init__.py', |
74 'infra_libs/_command_line_linux.py', | 76 'infra_libs/_command_line_linux.py', |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 h.update(str(len(name))) | 427 h.update(str(len(name))) |
426 h.update(name) | 428 h.update(name) |
427 h.update(str(len(content))) | 429 h.update(str(len(content))) |
428 h.update(content) | 430 h.update(content) |
429 except IOError: | 431 except IOError: |
430 logging.warning('Missing expected file. Hash will be invalid.') | 432 logging.warning('Missing expected file. Hash will be invalid.') |
431 bot_version = h.hexdigest() | 433 bot_version = h.hexdigest() |
432 logging.info( | 434 logging.info( |
433 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) | 435 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) |
434 return bot_version | 436 return bot_version |
OLD | NEW |