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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
317 'third_party/rsa/rsa/util.py', | 317 'third_party/rsa/rsa/util.py', |
318 'third_party/rsa/rsa/varblock.py', | 318 'third_party/rsa/rsa/varblock.py', |
319 'third_party/six/__init__.py', | 319 'third_party/six/__init__.py', |
320 'third_party/uritemplate/__init__.py', | 320 'third_party/uritemplate/__init__.py', |
321 'utils/__init__.py', | 321 'utils/__init__.py', |
322 'utils/auth_server.py', | 322 'utils/auth_server.py', |
323 'utils/authenticators.py', | 323 'utils/authenticators.py', |
324 'utils/cacert.pem', | 324 'utils/cacert.pem', |
325 'utils/file_path.py', | 325 'utils/file_path.py', |
326 'utils/fs.py', | 326 'utils/fs.py', |
| 327 'utils/grpc_proxy.py', |
327 'utils/large.py', | 328 'utils/large.py', |
328 'utils/logging_utils.py', | 329 'utils/logging_utils.py', |
329 'utils/lru.py', | 330 'utils/lru.py', |
330 'utils/net.py', | 331 'utils/net.py', |
331 'utils/oauth.py', | 332 'utils/oauth.py', |
332 'utils/on_error.py', | 333 'utils/on_error.py', |
333 'utils/subprocess42.py', | 334 'utils/subprocess42.py', |
334 'utils/threading_utils.py', | 335 'utils/threading_utils.py', |
335 'utils/tools.py', | 336 'utils/tools.py', |
336 'utils/zip_package.py', | 337 'utils/zip_package.py', |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 h.update(str(len(name))) | 459 h.update(str(len(name))) |
459 h.update(name) | 460 h.update(name) |
460 h.update(str(len(content))) | 461 h.update(str(len(content))) |
461 h.update(content) | 462 h.update(content) |
462 except IOError: | 463 except IOError: |
463 logging.warning('Missing expected file. Hash will be invalid.') | 464 logging.warning('Missing expected file. Hash will be invalid.') |
464 bot_version = h.hexdigest() | 465 bot_version = h.hexdigest() |
465 logging.info( | 466 logging.info( |
466 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) | 467 'get_swarming_bot_version(%s) = %s', sorted(additionals), bot_version) |
467 return bot_version | 468 return bot_version |
OLD | NEW |