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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_storage.py', | 65 'client/isolate_storage.py', |
66 'client/isolated_format.py', | 66 'client/isolated_format.py', |
67 'client/isolateserver.py', | 67 'client/isolateserver.py', |
68 'client/named_cache.py', | 68 'client/named_cache.py', |
69 'client/proto/__init__.py', | 69 'client/proto/__init__.py', |
70 'client/proto/isolate_bot_pb2.py', | 70 'client/proto/bytestream_pb2.py', |
71 'client/run_isolated.py', | 71 'client/run_isolated.py', |
72 'config/__init__.py', | 72 'config/__init__.py', |
73 'infra_libs/__init__.py', | 73 'infra_libs/__init__.py', |
74 'infra_libs/_command_line_linux.py', | 74 'infra_libs/_command_line_linux.py', |
75 'infra_libs/_command_line_stub.py', | 75 'infra_libs/_command_line_stub.py', |
76 'infra_libs/httplib2_utils.py', | 76 'infra_libs/httplib2_utils.py', |
77 'infra_libs/ts_mon/__init__.py', | 77 'infra_libs/ts_mon/__init__.py', |
78 'infra_libs/ts_mon/common/__init__.py', | 78 'infra_libs/ts_mon/common/__init__.py', |
79 'infra_libs/ts_mon/common/distribution.py', | 79 'infra_libs/ts_mon/common/distribution.py', |
80 'infra_libs/ts_mon/common/errors.py', | 80 'infra_libs/ts_mon/common/errors.py', |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 'libs/arfile/__init__.py', | 113 'libs/arfile/__init__.py', |
114 'libs/arfile/arfile.py', | 114 'libs/arfile/arfile.py', |
115 'libs/luci_context/__init__.py', | 115 'libs/luci_context/__init__.py', |
116 'libs/luci_context/luci_context.py', | 116 'libs/luci_context/luci_context.py', |
117 'proto_bot/__init__.py', | 117 'proto_bot/__init__.py', |
118 'proto_bot/swarming_bot_pb2.py', | 118 'proto_bot/swarming_bot_pb2.py', |
119 'python_libusb1/__init__.py', | 119 'python_libusb1/__init__.py', |
120 'python_libusb1/libusb1.py', | 120 'python_libusb1/libusb1.py', |
121 'python_libusb1/usb1.py', | 121 'python_libusb1/usb1.py', |
122 'third_party/__init__.py', | 122 'third_party/__init__.py', |
| 123 'third_party/cachetools/abc.py', |
| 124 'third_party/cachetools/cache.py', |
| 125 'third_party/cachetools/func.py', |
| 126 'third_party/cachetools/__init__.py', |
| 127 'third_party/cachetools/keys.py', |
| 128 'third_party/cachetools/lfu.py', |
| 129 'third_party/cachetools/lru.py', |
| 130 'third_party/cachetools/rr.py', |
| 131 'third_party/cachetools/ttl.py', |
123 'third_party/colorama/__init__.py', | 132 'third_party/colorama/__init__.py', |
124 'third_party/colorama/ansi.py', | 133 'third_party/colorama/ansi.py', |
125 'third_party/colorama/ansitowin32.py', | 134 'third_party/colorama/ansitowin32.py', |
126 'third_party/colorama/initialise.py', | 135 'third_party/colorama/initialise.py', |
127 'third_party/colorama/win32.py', | 136 'third_party/colorama/win32.py', |
128 'third_party/colorama/winterm.py', | 137 'third_party/colorama/winterm.py', |
129 'third_party/depot_tools/__init__.py', | 138 'third_party/depot_tools/__init__.py', |
130 'third_party/depot_tools/fix_encoding.py', | 139 'third_party/depot_tools/fix_encoding.py', |
131 'third_party/depot_tools/subcommand.py', | 140 'third_party/depot_tools/subcommand.py', |
132 'third_party/google/__init__.py', | 141 'third_party/google/__init__.py', |
| 142 'third_party/google/auth/app_engine.py', |
| 143 'third_party/google/auth/_cloud_sdk.py', |
| 144 'third_party/google/auth/credentials.py', |
| 145 'third_party/google/auth/crypt.py', |
| 146 'third_party/google/auth/_default.py', |
| 147 'third_party/google/auth/environment_vars.py', |
| 148 'third_party/google/auth/exceptions.py', |
| 149 'third_party/google/auth/_helpers.py', |
| 150 'third_party/google/auth/iam.py', |
| 151 'third_party/google/auth/__init__.py', |
| 152 'third_party/google/auth/jwt.py', |
| 153 'third_party/google/auth/_oauth2client.py', |
| 154 'third_party/google/auth/_service_account_info.py', |
| 155 'third_party/google/auth/compute_engine/credentials.py', |
| 156 'third_party/google/auth/compute_engine/__init__.py', |
| 157 'third_party/google/auth/compute_engine/_metadata.py', |
| 158 'third_party/google/auth/transport/grpc.py', |
| 159 'third_party/google/auth/transport/_http_client.py', |
| 160 'third_party/google/auth/transport/__init__.py', |
| 161 'third_party/google/auth/transport/requests.py', |
| 162 'third_party/google/auth/transport/urllib3.py', |
| 163 'third_party/google/oauth2/_client.py', |
| 164 'third_party/google/oauth2/credentials.py', |
| 165 'third_party/google/oauth2/id_token.py', |
| 166 'third_party/google/oauth2/__init__.py', |
| 167 'third_party/google/oauth2/service_account.py', |
133 'third_party/google/protobuf/__init__.py', | 168 'third_party/google/protobuf/__init__.py', |
134 'third_party/google/protobuf/descriptor.py', | 169 'third_party/google/protobuf/descriptor.py', |
135 'third_party/google/protobuf/descriptor_database.py', | 170 'third_party/google/protobuf/descriptor_database.py', |
136 'third_party/google/protobuf/descriptor_pb2.py', | 171 'third_party/google/protobuf/descriptor_pb2.py', |
137 'third_party/google/protobuf/descriptor_pool.py', | 172 'third_party/google/protobuf/descriptor_pool.py', |
138 'third_party/google/protobuf/internal/__init__.py', | 173 'third_party/google/protobuf/internal/__init__.py', |
139 'third_party/google/protobuf/internal/api_implementation.py', | 174 'third_party/google/protobuf/internal/api_implementation.py', |
140 'third_party/google/protobuf/internal/containers.py', | 175 'third_party/google/protobuf/internal/containers.py', |
141 'third_party/google/protobuf/internal/decoder.py', | 176 'third_party/google/protobuf/internal/decoder.py', |
142 'third_party/google/protobuf/internal/encoder.py', | 177 'third_party/google/protobuf/internal/encoder.py', |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 h.update(str(len(name))) | 460 h.update(str(len(name))) |
426 h.update(name) | 461 h.update(name) |
427 h.update(str(len(content))) | 462 h.update(str(len(content))) |
428 h.update(content) | 463 h.update(content) |
429 except IOError: | 464 except IOError: |
430 logging.warning('Missing expected file. Hash will be invalid.') | 465 logging.warning('Missing expected file. Hash will be invalid.') |
431 bot_version = h.hexdigest() | 466 bot_version = h.hexdigest() |
432 logging.info( | 467 logging.info( |
433 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) | 468 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) |
434 return bot_version | 469 return bot_version |
OLD | NEW |