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

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

Issue 2847153002: Cache/retrieve extracted CIPD packages in local isolate cache (Closed)
Patch Set: Fix unicode glitch and make assertions less terrible to find Created 3 years, 7 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 | « no previous file | client/cipd.py » ('j') | client/cipd.py » ('J')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | client/cipd.py » ('j') | client/cipd.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698