libv8 5.2.361.43.1 → 5.3.332.38.0beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +4 -0
  4. data/README.md +1 -0
  5. data/Rakefile +4 -4
  6. data/ext/libv8/paths.rb +1 -1
  7. data/lib/libv8/version.rb +1 -1
  8. data/libv8.gemspec +1 -1
  9. data/patches/0001-Build-a-standalone-static-library.patch +4 -4
  10. data/patches/0002-Don-t-compile-unnecessary-stuff.patch +4 -4
  11. data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +4 -4
  12. data/patches/0004-Reinterpret-thread-hash-for-FreeBSD-too.patch +8 -8
  13. data/spec/location_spec.rb +1 -1
  14. data/vendor/depot_tools/README.gclient.md +67 -0
  15. data/vendor/depot_tools/README.git-cl.md +112 -0
  16. data/vendor/depot_tools/README.md +50 -36
  17. data/vendor/depot_tools/bootstrap/win/README.md +5 -5
  18. data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +203 -0
  19. data/vendor/depot_tools/bootstrap/win/git_version.txt +1 -0
  20. data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +1 -0
  21. data/vendor/depot_tools/bootstrap/win/win_tools.bat +1 -148
  22. data/vendor/depot_tools/cit.py +27 -21
  23. data/vendor/depot_tools/codereview.settings +1 -1
  24. data/vendor/depot_tools/cpplint.py +1 -1
  25. data/vendor/depot_tools/fix_encoding.py +1 -1
  26. data/vendor/depot_tools/gclient.py +4 -3
  27. data/vendor/depot_tools/gclient_scm.py +20 -9
  28. data/vendor/depot_tools/gclient_utils.py +84 -13
  29. data/vendor/depot_tools/gerrit_util.py +1 -1
  30. data/vendor/depot_tools/git_cl.py +374 -218
  31. data/vendor/depot_tools/git_cl_completion.sh +34 -0
  32. data/vendor/depot_tools/git_common.py +11 -7
  33. data/vendor/depot_tools/infra/config/OWNERS +1 -0
  34. data/vendor/depot_tools/infra/config/cq.cfg +3 -12
  35. data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
  36. data/vendor/depot_tools/presubmit_canned_checks.py +4 -2
  37. data/vendor/depot_tools/presubmit_support.py +26 -40
  38. data/vendor/depot_tools/recipe_modules/bot_update/api.py +31 -11
  39. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/apply_gerrit_ref.json +26 -0
  40. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic.json +1 -1
  41. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_output_manifest.json +1 -1
  42. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +1 -1
  43. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/clobber.json +1 -1
  44. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/forced.json +1 -1
  45. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +44 -0
  46. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +1 -1
  47. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/no_shallow.json +1 -1
  48. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/off.json +1 -1
  49. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +1 -1
  50. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange.json +1 -1
  51. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2.json +1 -1
  52. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob.json +1 -1
  53. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail.json +1 -1
  54. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +1 -1
  55. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +3 -3
  56. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +1 -1
  57. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8.json +1 -1
  58. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +1 -1
  59. data/vendor/depot_tools/recipe_modules/bot_update/example.py +35 -18
  60. data/vendor/depot_tools/recipe_modules/bot_update/resources/apply_gerrit.py +33 -0
  61. data/vendor/depot_tools/recipe_modules/bot_update/resources/bot_update.py +45 -76
  62. data/vendor/depot_tools/recipe_modules/bot_update/test_api.py +13 -18
  63. data/vendor/depot_tools/recipe_modules/cipd/__init__.py +10 -0
  64. data/vendor/depot_tools/recipe_modules/cipd/api.py +244 -0
  65. data/vendor/depot_tools/recipe_modules/cipd/example.expected/basic.json +445 -0
  66. data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-failed.json +128 -0
  67. data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-many-instances.json +453 -0
  68. data/vendor/depot_tools/recipe_modules/cipd/example.expected/install-failed.json +31 -0
  69. data/vendor/depot_tools/recipe_modules/cipd/example.expected/mac64.json +445 -0
  70. data/vendor/depot_tools/recipe_modules/cipd/example.expected/win64.json +445 -0
  71. data/vendor/depot_tools/recipe_modules/cipd/example.py +115 -0
  72. data/vendor/depot_tools/recipe_modules/cipd/resources/bootstrap.py +218 -0
  73. data/vendor/depot_tools/recipe_modules/cipd/test_api.py +102 -0
  74. data/vendor/depot_tools/recipe_modules/gclient/api.py +34 -53
  75. data/vendor/depot_tools/recipe_modules/gclient/config.py +22 -128
  76. data/vendor/depot_tools/recipe_modules/gclient/example.expected/basic.json +44 -6
  77. data/vendor/depot_tools/recipe_modules/gclient/example.expected/revision.json +44 -6
  78. data/vendor/depot_tools/recipe_modules/gclient/example.expected/tryserver.json +44 -17
  79. data/vendor/depot_tools/recipe_modules/gclient/example.py +1 -1
  80. data/vendor/depot_tools/recipe_modules/gclient/test_api.py +4 -9
  81. data/vendor/depot_tools/recipe_modules/git/api.py +25 -7
  82. data/vendor/depot_tools/recipe_modules/git/example.expected/basic.json +3 -0
  83. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_branch.json +3 -0
  84. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_file_name.json +3 -0
  85. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_hash.json +3 -0
  86. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_ref.json +3 -0
  87. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_submodule_update_force.json +3 -0
  88. data/vendor/depot_tools/recipe_modules/git/example.expected/can_fail_build.json +3 -0
  89. data/vendor/depot_tools/recipe_modules/git/example.expected/cannot_fail_build.json +3 -0
  90. data/vendor/depot_tools/recipe_modules/git/example.expected/cat-file_test.json +3 -0
  91. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_delta.json +3 -0
  92. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_failed.json +3 -0
  93. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output.json +3 -0
  94. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output_fails_build.json +3 -0
  95. data/vendor/depot_tools/recipe_modules/git/example.expected/curl_trace_file.json +2 -1
  96. data/vendor/depot_tools/recipe_modules/git/example.expected/git-cache-checkout.json +41 -3
  97. data/vendor/depot_tools/recipe_modules/git/example.expected/platform_win.json +7 -1
  98. data/vendor/depot_tools/recipe_modules/git/example.expected/rebase_failed.json +3 -0
  99. data/vendor/depot_tools/recipe_modules/git/example.expected/remote_not_origin.json +3 -0
  100. data/vendor/depot_tools/recipe_modules/git/example.expected/set_got_revision.json +3 -0
  101. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch.json +4 -1
  102. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch_new.json +4 -1
  103. data/vendor/depot_tools/recipes.py +8 -2
  104. data/vendor/depot_tools/roll-dep-svn.bat +10 -10
  105. data/vendor/depot_tools/roll_dep.py +0 -1
  106. data/vendor/depot_tools/third_party/upload.py +1 -25
  107. data/vendor/depot_tools/upload_to_google_storage.py +1 -1
  108. metadata +24 -32
  109. data/release/armhf-linux/Vagrantfile +0 -97
  110. data/release/armhf-linux/initrd.img +0 -0
  111. data/release/armhf-linux/vmlinuz +0 -0
  112. data/release/x86-linux/Vagrantfile +0 -85
  113. data/release/x86_64-freebsd-10/Vagrantfile +0 -88
  114. data/release/x86_64-linux/Vagrantfile +0 -85
  115. data/vendor/depot_tools/README.codereview +0 -99
  116. data/vendor/depot_tools/README.gclient +0 -82
  117. data/vendor/depot_tools/README.git-cl +0 -52
  118. data/vendor/depot_tools/chrome-update-create-task.bat +0 -52
  119. data/vendor/depot_tools/chrome-update.bat +0 -5
  120. data/vendor/depot_tools/chrome-update.py +0 -91
  121. data/vendor/depot_tools/create-chromium-git-src +0 -200
  122. data/vendor/depot_tools/drover +0 -25
  123. data/vendor/depot_tools/drover.bat +0 -9
  124. data/vendor/depot_tools/drover.py +0 -648
  125. data/vendor/depot_tools/gcl +0 -8
  126. data/vendor/depot_tools/gcl.bat +0 -6
  127. data/vendor/depot_tools/gcl.py +0 -1523
  128. data/vendor/depot_tools/git-try +0 -9
  129. data/vendor/depot_tools/git_try.py +0 -76
  130. data/vendor/depot_tools/luci_hacks/README.md +0 -35
  131. data/vendor/depot_tools/luci_hacks/__init__.py +0 -0
  132. data/vendor/depot_tools/luci_hacks/luci_recipe_run.isolate +0 -12
  133. data/vendor/depot_tools/luci_hacks/luci_recipe_run.py +0 -81
  134. data/vendor/depot_tools/luci_hacks/trigger_luci_job.py +0 -128
  135. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/svn_mode.json +0 -59
  136. data/vendor/depot_tools/trychange.py +0 -1265
@@ -15,7 +15,7 @@ import bot_update
15
15
 
16
16
  class BotUpdateTestApi(recipe_test_api.RecipeTestApi):
17
17
  def output_json(self, master, builder, slave, root, first_sln,
18
- revision_mapping, git_mode, force=False, fail_patch=False,
18
+ revision_mapping, force=False, fail_patch=False,
19
19
  output_manifest=False, fixed_revisions=None):
20
20
  """Deterministically synthesize json.output test data for gclient's
21
21
  --output-json option.
@@ -30,23 +30,15 @@ class BotUpdateTestApi(recipe_test_api.RecipeTestApi):
30
30
  # Add in extra json output if active.
31
31
  if active:
32
32
  properties = {
33
- property_name: self.gen_revision(project_name, git_mode)
33
+ property_name: self.gen_revision(project_name)
34
34
  for project_name, property_name in revision_mapping.iteritems()
35
35
  }
36
36
  properties.update({
37
37
  '%s_cp' % property_name: ('refs/heads/master@{#%s}' %
38
- self.gen_revision(project_name, False))
38
+ self.gen_commit_position(project_name))
39
39
  for project_name, property_name in revision_mapping.iteritems()
40
40
  })
41
41
 
42
- # We also want to simulate outputting "got_revision_git": ...
43
- # when git mode is off to match what bot_update.py does.
44
- if not git_mode:
45
- properties.update({
46
- '%s_git' % property_name: self.gen_revision(project_name, True)
47
- for project_name, property_name in revision_mapping.iteritems()
48
- })
49
-
50
42
  output.update({
51
43
  'patch_root': root or first_sln,
52
44
  'root': first_sln,
@@ -59,7 +51,7 @@ class BotUpdateTestApi(recipe_test_api.RecipeTestApi):
59
51
  'manifest': {
60
52
  project_name: {
61
53
  'repository': 'https://fake.org/%s.git' % project_name,
62
- 'revision': self.gen_revision(project_name, git_mode),
54
+ 'revision': self.gen_revision(project_name),
63
55
  }
64
56
  for project_name in revision_mapping
65
57
  }
@@ -77,10 +69,13 @@ class BotUpdateTestApi(recipe_test_api.RecipeTestApi):
77
69
  return self.m.json.output(output)
78
70
 
79
71
  @staticmethod
80
- def gen_revision(project, GIT_MODE):
81
- """Hash project to bogus deterministic revision values."""
72
+ def gen_revision(project):
73
+ """Hash project to bogus deterministic git hash values."""
74
+ h = hashlib.sha1(project)
75
+ return h.hexdigest()
76
+
77
+ @staticmethod
78
+ def gen_commit_position(project):
79
+ """Hash project to bogus deterministic Cr-Commit-Position values."""
82
80
  h = hashlib.sha1(project)
83
- if GIT_MODE:
84
- return h.hexdigest()
85
- else:
86
- return struct.unpack('!I', h.digest()[:4])[0] % 300000
81
+ return struct.unpack('!I', h.digest()[:4])[0] % 300000
@@ -0,0 +1,10 @@
1
+ DEPS = [
2
+ 'infra_paths',
3
+ 'recipe_engine/json',
4
+ 'recipe_engine/path',
5
+ 'recipe_engine/platform',
6
+ 'recipe_engine/properties',
7
+ 'recipe_engine/python',
8
+ 'recipe_engine/raw_io',
9
+ 'recipe_engine/step',
10
+ ]
@@ -0,0 +1,244 @@
1
+ # Copyright 2015 The Chromium Authors. All rights reserved.
2
+ # Use of this source code is governed by a BSD-style license that can be
3
+ # found in the LICENSE file.
4
+
5
+ from recipe_engine import recipe_api
6
+
7
+
8
+ class CIPDApi(recipe_api.RecipeApi):
9
+ """CIPDApi provides support for CIPD."""
10
+ def __init__(self, *args, **kwargs):
11
+ super(CIPDApi, self).__init__(*args, **kwargs)
12
+ self._cipd_executable = None
13
+ self._cipd_version = None
14
+ self._cipd_credentials = None
15
+
16
+ def set_service_account_credentials(self, path):
17
+ self._cipd_credentials = path
18
+
19
+ @property
20
+ def default_bot_service_account_credentials(self):
21
+ # Path to a service account credentials to use to talk to CIPD backend.
22
+ # Deployed by Puppet.
23
+ if self.m.platform.is_win:
24
+ return 'C:\\creds\\service_accounts\\service-account-cipd-builder.json'
25
+ else:
26
+ return '/creds/service_accounts/service-account-cipd-builder.json'
27
+
28
+ def platform_suffix(self):
29
+ """Use to get full package name that is platform indepdent.
30
+
31
+ Example:
32
+ >>> 'my/package/%s' % api.cipd.platform_suffix()
33
+ 'my/package/linux-amd64'
34
+ """
35
+ return '%s-%s' % (
36
+ self.m.platform.name.replace('win', 'windows'),
37
+ {
38
+ 32: '386',
39
+ 64: 'amd64',
40
+ }[self.m.platform.bits],
41
+ )
42
+
43
+ def install_client(self, step_name='install cipd', version=None):
44
+ """Ensures the client is installed.
45
+
46
+ If you specify version as a hash, make sure its correct platform.
47
+ """
48
+ # TODO(seanmccullough): clean up older CIPD installations.
49
+ step = self.m.python(
50
+ name=step_name,
51
+ script=self.resource('bootstrap.py'),
52
+ args=[
53
+ '--platform', self.platform_suffix(),
54
+ '--dest-directory', self.m.path['slave_build'].join('cipd'),
55
+ '--json-output', self.m.json.output(),
56
+ ] +
57
+ (['--version', version] if version else []),
58
+ step_test_data=lambda: self.test_api.example_install_client(version)
59
+ )
60
+ self._cipd_executable = step.json.output['executable']
61
+
62
+ step.presentation.step_text = (
63
+ 'cipd instance_id: %s' % step.json.output['instance_id'])
64
+ return step
65
+
66
+ def get_executable(self):
67
+ return self._cipd_executable
68
+
69
+ def build(self, input_dir, output_package, package_name, install_mode=None):
70
+ assert self._cipd_executable
71
+ assert not install_mode or install_mode in ['copy', 'symlink']
72
+ return self.m.step(
73
+ 'build %s' % self.m.path.basename(package_name),
74
+ [
75
+ self._cipd_executable,
76
+ 'pkg-build',
77
+ '--in', input_dir,
78
+ '--name', package_name,
79
+ '--out', output_package,
80
+ '--json-output', self.m.json.output(),
81
+ ] + (
82
+ ['--install-mode', install_mode] if install_mode else []
83
+ ),
84
+ step_test_data=lambda: self.test_api.example_build(package_name)
85
+ )
86
+
87
+ def register(self, package_name, package_path, refs=None, tags=None):
88
+ assert self._cipd_executable
89
+
90
+ cmd = [
91
+ self._cipd_executable,
92
+ 'pkg-register', package_path,
93
+ '--json-output', self.m.json.output(),
94
+ ]
95
+ if self._cipd_credentials:
96
+ cmd.extend(['--service-account-json', self._cipd_credentials])
97
+ if refs:
98
+ for ref in refs:
99
+ cmd.extend(['--ref', ref])
100
+ if tags:
101
+ for tag, value in sorted(tags.items()):
102
+ cmd.extend(['--tag', '%s:%s' % (tag, value)])
103
+ return self.m.step(
104
+ 'register %s' % package_name,
105
+ cmd,
106
+ step_test_data=lambda: self.test_api.example_register(package_name)
107
+ )
108
+
109
+ def create(self, pkg_def, refs=None, tags=None):
110
+ """Creates a package based on YAML package definition file.
111
+
112
+ This builds and uploads the package in one step.
113
+ """
114
+ assert self._cipd_executable
115
+ cmd = [
116
+ self._cipd_executable,
117
+ 'create',
118
+ '--pkg-def', pkg_def,
119
+ '--json-output', self.m.json.output(),
120
+ ]
121
+ if self._cipd_credentials:
122
+ cmd.extend(['--service-account-json', self._cipd_credentials])
123
+ if refs:
124
+ for ref in refs:
125
+ cmd.extend(['--ref', ref])
126
+ if tags:
127
+ for tag, value in sorted(tags.items()):
128
+ cmd.extend(['--tag', '%s:%s' % (tag, value)])
129
+ return self.m.step('create %s' % self.m.path.basename(pkg_def), cmd)
130
+
131
+ def ensure(self, root, packages):
132
+ """Ensures that packages are installed in a given root dir.
133
+
134
+ packages must be a mapping from package name to its version, where
135
+ * name must be for right platform (see also ``platform_suffix``),
136
+ * version could be either instance_id, or ref, or unique tag.
137
+
138
+ If installing a package requires credentials, call
139
+ ``set_service_account_credentials`` before calling this function.
140
+ """
141
+ assert self._cipd_executable
142
+
143
+ package_list = ['%s %s' % (name, version)
144
+ for name, version in sorted(packages.items())]
145
+ list_data = self.m.raw_io.input('\n'.join(package_list))
146
+ cmd = [
147
+ self._cipd_executable,
148
+ 'ensure',
149
+ '--root', root,
150
+ '--list', list_data,
151
+ '--json-output', self.m.json.output(),
152
+ ]
153
+ if self._cipd_credentials:
154
+ cmd.extend(['--service-account-json', self._cipd_credentials])
155
+ return self.m.step(
156
+ 'ensure_installed', cmd,
157
+ step_test_data=lambda: self.test_api.example_ensure(packages)
158
+ )
159
+
160
+ def set_tag(self, package_name, version, tags):
161
+ assert self._cipd_executable
162
+
163
+ cmd = [
164
+ self._cipd_executable,
165
+ 'set-tag', package_name,
166
+ '--version', version,
167
+ '--json-output', self.m.json.output(),
168
+ ]
169
+ if self._cipd_credentials:
170
+ cmd.extend(['--service-account-json', self._cipd_credentials])
171
+ for tag, value in sorted(tags.items()):
172
+ cmd.extend(['--tag', '%s:%s' % (tag, value)])
173
+
174
+ return self.m.step(
175
+ 'cipd set-tag %s' % package_name,
176
+ cmd,
177
+ step_test_data=lambda: self.test_api.example_set_tag(
178
+ package_name, version
179
+ )
180
+ )
181
+
182
+ def set_ref(self, package_name, version, refs):
183
+ assert self._cipd_executable
184
+
185
+ cmd = [
186
+ self._cipd_executable,
187
+ 'set-ref', package_name,
188
+ '--version', version,
189
+ '--json-output', self.m.json.output(),
190
+ ]
191
+ if self._cipd_credentials:
192
+ cmd.extend(['--service-account-json', self._cipd_credentials])
193
+ for r in refs:
194
+ cmd.extend(['--ref', r])
195
+
196
+ return self.m.step(
197
+ 'cipd set-ref %s' % package_name,
198
+ cmd,
199
+ step_test_data=lambda: self.test_api.example_set_ref(
200
+ package_name, version
201
+ )
202
+ )
203
+
204
+ def search(self, package_name, tag):
205
+ assert self._cipd_executable
206
+ assert ':' in tag, 'tag must be in a form "k:v"'
207
+
208
+ cmd = [
209
+ self._cipd_executable,
210
+ 'search', package_name,
211
+ '--tag', tag,
212
+ '--json-output', self.m.json.output(),
213
+ ]
214
+ if self._cipd_credentials:
215
+ cmd.extend(['--service-account-json', self._cipd_credentials])
216
+
217
+ return self.m.step(
218
+ 'cipd search %s %s' % (package_name, tag),
219
+ cmd,
220
+ step_test_data=lambda: self.test_api.example_search(package_name)
221
+ )
222
+
223
+ def describe(self, package_name, version,
224
+ test_data_refs=None, test_data_tags=None):
225
+ assert self._cipd_executable
226
+
227
+ cmd = [
228
+ self._cipd_executable,
229
+ 'describe', package_name,
230
+ '--version', version,
231
+ '--json-output', self.m.json.output(),
232
+ ]
233
+ if self._cipd_credentials:
234
+ cmd.extend(['--service-account-json', self._cipd_credentials])
235
+
236
+ return self.m.step(
237
+ 'cipd describe %s' % package_name,
238
+ cmd,
239
+ step_test_data=lambda: self.test_api.example_describe(
240
+ package_name, version,
241
+ test_data_refs=test_data_refs,
242
+ test_data_tags=test_data_tags
243
+ )
244
+ )
@@ -0,0 +1,445 @@
1
+ [
2
+ {
3
+ "cmd": [
4
+ "python",
5
+ "-u",
6
+ "RECIPE_MODULE[depot_tools::cipd]/resources/bootstrap.py",
7
+ "--platform",
8
+ "linux-amd64",
9
+ "--dest-directory",
10
+ "[SLAVE_BUILD]/cipd",
11
+ "--json-output",
12
+ "/path/to/tmp/json"
13
+ ],
14
+ "name": "install cipd",
15
+ "~followup_annotations": [
16
+ "@@@STEP_TEXT@cipd instance_id: 40-chars-fake-of-the-package-instance_id@@@",
17
+ "@@@STEP_LOG_LINE@json.output@{@@@",
18
+ "@@@STEP_LOG_LINE@json.output@ \"executable\": \"[SLAVE_BUILD]/cipd/cipd\", @@@",
19
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\"@@@",
20
+ "@@@STEP_LOG_LINE@json.output@}@@@",
21
+ "@@@STEP_LOG_END@json.output@@@"
22
+ ]
23
+ },
24
+ {
25
+ "cmd": [
26
+ "python",
27
+ "-u",
28
+ "RECIPE_MODULE[depot_tools::cipd]/resources/bootstrap.py",
29
+ "--platform",
30
+ "linux-amd64",
31
+ "--dest-directory",
32
+ "[SLAVE_BUILD]/cipd",
33
+ "--json-output",
34
+ "/path/to/tmp/json",
35
+ "--version",
36
+ "deadbeaf"
37
+ ],
38
+ "name": "install cipd (2)",
39
+ "~followup_annotations": [
40
+ "@@@STEP_TEXT@cipd instance_id: 40-chars-fake-of-the-package-instance_id@@@",
41
+ "@@@STEP_LOG_LINE@json.output@{@@@",
42
+ "@@@STEP_LOG_LINE@json.output@ \"executable\": \"[SLAVE_BUILD]/cipd/cipd\", @@@",
43
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\"@@@",
44
+ "@@@STEP_LOG_LINE@json.output@}@@@",
45
+ "@@@STEP_LOG_END@json.output@@@"
46
+ ]
47
+ },
48
+ {
49
+ "cmd": [
50
+ "[SLAVE_BUILD]/cipd/cipd",
51
+ "ensure",
52
+ "--root",
53
+ "[SLAVE_BUILD]/packages",
54
+ "--list",
55
+ "public/package/linux-amd64 7f751b2237df2fdf3c1405be00590fefffbaea2d",
56
+ "--json-output",
57
+ "/path/to/tmp/json",
58
+ "--service-account-json",
59
+ "/creds/service_accounts/service-account-cipd-builder.json"
60
+ ],
61
+ "name": "ensure_installed",
62
+ "~followup_annotations": [
63
+ "@@@STEP_LOG_LINE@json.output@{@@@",
64
+ "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
65
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
66
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"7f751b2237df2fdf3c1405be00590fefffbaea2d\", @@@",
67
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"public/package/linux-amd64\"@@@",
68
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
69
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
70
+ "@@@STEP_LOG_LINE@json.output@}@@@",
71
+ "@@@STEP_LOG_END@json.output@@@"
72
+ ]
73
+ },
74
+ {
75
+ "cmd": [
76
+ "[SLAVE_BUILD]/cipd/cipd",
77
+ "search",
78
+ "public/package/linux-amd64",
79
+ "--tag",
80
+ "git_revision:40-chars-long-hash",
81
+ "--json-output",
82
+ "/path/to/tmp/json",
83
+ "--service-account-json",
84
+ "/creds/service_accounts/service-account-cipd-builder.json"
85
+ ],
86
+ "name": "cipd search public/package/linux-amd64 git_revision:40-chars-long-hash",
87
+ "~followup_annotations": [
88
+ "@@@STEP_LOG_LINE@json.output@{@@@",
89
+ "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
90
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
91
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
92
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"public/package/linux-amd64\"@@@",
93
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
94
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
95
+ "@@@STEP_LOG_LINE@json.output@}@@@",
96
+ "@@@STEP_LOG_END@json.output@@@"
97
+ ]
98
+ },
99
+ {
100
+ "cmd": [
101
+ "[SLAVE_BUILD]/cipd/cipd",
102
+ "describe",
103
+ "public/package/linux-amd64",
104
+ "--version",
105
+ "40-chars-fake-of-the-package-instance_id",
106
+ "--json-output",
107
+ "/path/to/tmp/json",
108
+ "--service-account-json",
109
+ "/creds/service_accounts/service-account-cipd-builder.json"
110
+ ],
111
+ "name": "cipd describe public/package/linux-amd64",
112
+ "~followup_annotations": [
113
+ "@@@STEP_LOG_LINE@json.output@{@@@",
114
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
115
+ "@@@STEP_LOG_LINE@json.output@ \"pin\": {@@@",
116
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
117
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"public/package/linux-amd64\"@@@",
118
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
119
+ "@@@STEP_LOG_LINE@json.output@ \"refs\": [@@@",
120
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
121
+ "@@@STEP_LOG_LINE@json.output@ \"modified_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
122
+ "@@@STEP_LOG_LINE@json.output@ \"modified_ts\": 1446574210, @@@",
123
+ "@@@STEP_LOG_LINE@json.output@ \"ref\": \"latest\"@@@",
124
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
125
+ "@@@STEP_LOG_LINE@json.output@ ], @@@",
126
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
127
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
128
+ "@@@STEP_LOG_LINE@json.output@ \"tags\": [@@@",
129
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
130
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
131
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
132
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"buildbot_build:some.waterfall/builder/1234\"@@@",
133
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
134
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
135
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
136
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
137
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"git_repository:https://chromium.googlesource.com/some/repo\"@@@",
138
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
139
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
140
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
141
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
142
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"git_revision:397a2597cdc237f3026e6143b683be4b9ab60540\"@@@",
143
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
144
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
145
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
146
+ "@@@STEP_LOG_LINE@json.output@}@@@",
147
+ "@@@STEP_LOG_END@json.output@@@"
148
+ ]
149
+ },
150
+ {
151
+ "cmd": [
152
+ "[SLAVE_BUILD]/cipd/cipd",
153
+ "ensure",
154
+ "--root",
155
+ "[SLAVE_BUILD]/packages",
156
+ "--list",
157
+ "private/package/linux-amd64 latest\npublic/package/linux-amd64 7f751b2237df2fdf3c1405be00590fefffbaea2d",
158
+ "--json-output",
159
+ "/path/to/tmp/json",
160
+ "--service-account-json",
161
+ "fake-credentials.json"
162
+ ],
163
+ "name": "ensure_installed (2)",
164
+ "~followup_annotations": [
165
+ "@@@STEP_LOG_LINE@json.output@{@@@",
166
+ "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
167
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
168
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-latest----------\", @@@",
169
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"private/package/linux-amd64\"@@@",
170
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
171
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
172
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"7f751b2237df2fdf3c1405be00590fefffbaea2d\", @@@",
173
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"public/package/linux-amd64\"@@@",
174
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
175
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
176
+ "@@@STEP_LOG_LINE@json.output@}@@@",
177
+ "@@@STEP_LOG_END@json.output@@@"
178
+ ]
179
+ },
180
+ {
181
+ "cmd": [
182
+ "[SLAVE_BUILD]/cipd/cipd",
183
+ "search",
184
+ "private/package/linux-amd64",
185
+ "--tag",
186
+ "key:value",
187
+ "--json-output",
188
+ "/path/to/tmp/json",
189
+ "--service-account-json",
190
+ "fake-credentials.json"
191
+ ],
192
+ "name": "cipd search private/package/linux-amd64 key:value",
193
+ "~followup_annotations": [
194
+ "@@@STEP_LOG_LINE@json.output@{@@@",
195
+ "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
196
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
197
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
198
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"private/package/linux-amd64\"@@@",
199
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
200
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
201
+ "@@@STEP_LOG_LINE@json.output@}@@@",
202
+ "@@@STEP_LOG_END@json.output@@@"
203
+ ]
204
+ },
205
+ {
206
+ "cmd": [
207
+ "[SLAVE_BUILD]/cipd/cipd",
208
+ "describe",
209
+ "private/package/linux-amd64",
210
+ "--version",
211
+ "40-chars-fake-of-the-package-instance_id",
212
+ "--json-output",
213
+ "/path/to/tmp/json",
214
+ "--service-account-json",
215
+ "fake-credentials.json"
216
+ ],
217
+ "name": "cipd describe private/package/linux-amd64",
218
+ "~followup_annotations": [
219
+ "@@@STEP_LOG_LINE@json.output@{@@@",
220
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
221
+ "@@@STEP_LOG_LINE@json.output@ \"pin\": {@@@",
222
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
223
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"private/package/linux-amd64\"@@@",
224
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
225
+ "@@@STEP_LOG_LINE@json.output@ \"refs\": [@@@",
226
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
227
+ "@@@STEP_LOG_LINE@json.output@ \"modified_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
228
+ "@@@STEP_LOG_LINE@json.output@ \"modified_ts\": 1446574210, @@@",
229
+ "@@@STEP_LOG_LINE@json.output@ \"ref\": \"latest\"@@@",
230
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
231
+ "@@@STEP_LOG_LINE@json.output@ ], @@@",
232
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
233
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
234
+ "@@@STEP_LOG_LINE@json.output@ \"tags\": [@@@",
235
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
236
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
237
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
238
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"custom:tagged\"@@@",
239
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
240
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
241
+ "@@@STEP_LOG_LINE@json.output@ \"registered_by\": \"user:44-blablbla@developer.gserviceaccount.com\", @@@",
242
+ "@@@STEP_LOG_LINE@json.output@ \"registered_ts\": 1446574210, @@@",
243
+ "@@@STEP_LOG_LINE@json.output@ \"tag\": \"key:value\"@@@",
244
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
245
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
246
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
247
+ "@@@STEP_LOG_LINE@json.output@}@@@",
248
+ "@@@STEP_LOG_END@json.output@@@"
249
+ ]
250
+ },
251
+ {
252
+ "cmd": [
253
+ "[SLAVE_BUILD]/cipd/cipd",
254
+ "pkg-build",
255
+ "--in",
256
+ "fake-input-dir",
257
+ "--name",
258
+ "infra/fake-package",
259
+ "--out",
260
+ "fake-package-path",
261
+ "--json-output",
262
+ "/path/to/tmp/json"
263
+ ],
264
+ "name": "build fake-package",
265
+ "~followup_annotations": [
266
+ "@@@STEP_LOG_LINE@json.output@{@@@",
267
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
268
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
269
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/fake-package\"@@@",
270
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
271
+ "@@@STEP_LOG_LINE@json.output@}@@@",
272
+ "@@@STEP_LOG_END@json.output@@@"
273
+ ]
274
+ },
275
+ {
276
+ "cmd": [
277
+ "[SLAVE_BUILD]/cipd/cipd",
278
+ "pkg-build",
279
+ "--in",
280
+ "fake-input-dir",
281
+ "--name",
282
+ "infra/fake-package",
283
+ "--out",
284
+ "fake-package-path",
285
+ "--json-output",
286
+ "/path/to/tmp/json",
287
+ "--install-mode",
288
+ "copy"
289
+ ],
290
+ "name": "build fake-package (2)",
291
+ "~followup_annotations": [
292
+ "@@@STEP_LOG_LINE@json.output@{@@@",
293
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
294
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
295
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/fake-package\"@@@",
296
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
297
+ "@@@STEP_LOG_LINE@json.output@}@@@",
298
+ "@@@STEP_LOG_END@json.output@@@"
299
+ ]
300
+ },
301
+ {
302
+ "cmd": [
303
+ "[SLAVE_BUILD]/cipd/cipd",
304
+ "pkg-register",
305
+ "fake-package-path",
306
+ "--json-output",
307
+ "/path/to/tmp/json",
308
+ "--service-account-json",
309
+ "fake-credentials.json",
310
+ "--ref",
311
+ "fake-ref-1",
312
+ "--ref",
313
+ "fake-ref-2",
314
+ "--tag",
315
+ "fake_tag_1:fake_value_1",
316
+ "--tag",
317
+ "fake_tag_2:fake_value_2"
318
+ ],
319
+ "name": "register infra/fake-package",
320
+ "~followup_annotations": [
321
+ "@@@STEP_LOG_LINE@json.output@{@@@",
322
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
323
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
324
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"infra/fake-package\"@@@",
325
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
326
+ "@@@STEP_LOG_LINE@json.output@}@@@",
327
+ "@@@STEP_LOG_END@json.output@@@"
328
+ ]
329
+ },
330
+ {
331
+ "cmd": [
332
+ "[SLAVE_BUILD]/cipd/cipd",
333
+ "create",
334
+ "--pkg-def",
335
+ "[SLAVE_BUILD]/fake-package.yaml",
336
+ "--json-output",
337
+ "/path/to/tmp/json",
338
+ "--service-account-json",
339
+ "fake-credentials.json",
340
+ "--ref",
341
+ "fake-ref-1",
342
+ "--ref",
343
+ "fake-ref-2",
344
+ "--tag",
345
+ "fake_tag_1:fake_value_1",
346
+ "--tag",
347
+ "fake_tag_2:fake_value_2"
348
+ ],
349
+ "name": "create fake-package.yaml",
350
+ "~followup_annotations": [
351
+ "@@@STEP_LOG_LINE@json.output (invalid)@null@@@",
352
+ "@@@STEP_LOG_END@json.output (invalid)@@@"
353
+ ]
354
+ },
355
+ {
356
+ "cmd": [
357
+ "[SLAVE_BUILD]/cipd/cipd",
358
+ "set-tag",
359
+ "fake-package",
360
+ "--version",
361
+ "long/weird/ref/which/doesn/not/fit/into/40chars",
362
+ "--json-output",
363
+ "/path/to/tmp/json",
364
+ "--service-account-json",
365
+ "fake-credentials.json",
366
+ "--tag",
367
+ "dead:beaf",
368
+ "--tag",
369
+ "more:value"
370
+ ],
371
+ "name": "cipd set-tag fake-package",
372
+ "~followup_annotations": [
373
+ "@@@STEP_LOG_LINE@json.output@{@@@",
374
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
375
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"fake-package\", @@@",
376
+ "@@@STEP_LOG_LINE@json.output@ \"pin\": {@@@",
377
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-long/weird/ref/w\", @@@",
378
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"fake-package\"@@@",
379
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
380
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
381
+ "@@@STEP_LOG_LINE@json.output@}@@@",
382
+ "@@@STEP_LOG_END@json.output@@@"
383
+ ]
384
+ },
385
+ {
386
+ "cmd": [
387
+ "[SLAVE_BUILD]/cipd/cipd",
388
+ "set-ref",
389
+ "fake-package",
390
+ "--version",
391
+ "latest",
392
+ "--json-output",
393
+ "/path/to/tmp/json",
394
+ "--service-account-json",
395
+ "fake-credentials.json",
396
+ "--ref",
397
+ "any",
398
+ "--ref",
399
+ "some"
400
+ ],
401
+ "name": "cipd set-ref fake-package",
402
+ "~followup_annotations": [
403
+ "@@@STEP_LOG_LINE@json.output@{@@@",
404
+ "@@@STEP_LOG_LINE@json.output@ \"result\": {@@@",
405
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"fake-package\", @@@",
406
+ "@@@STEP_LOG_LINE@json.output@ \"pin\": {@@@",
407
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"resolved-instance_id-of-latest----------\", @@@",
408
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"fake-package\"@@@",
409
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
410
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
411
+ "@@@STEP_LOG_LINE@json.output@}@@@",
412
+ "@@@STEP_LOG_END@json.output@@@"
413
+ ]
414
+ },
415
+ {
416
+ "cmd": [
417
+ "[SLAVE_BUILD]/cipd/cipd",
418
+ "search",
419
+ "fake-package/linux-amd64",
420
+ "--tag",
421
+ "dead:beaf",
422
+ "--json-output",
423
+ "/path/to/tmp/json",
424
+ "--service-account-json",
425
+ "fake-credentials.json"
426
+ ],
427
+ "name": "cipd search fake-package/linux-amd64 dead:beaf",
428
+ "~followup_annotations": [
429
+ "@@@STEP_LOG_LINE@json.output@{@@@",
430
+ "@@@STEP_LOG_LINE@json.output@ \"result\": [@@@",
431
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
432
+ "@@@STEP_LOG_LINE@json.output@ \"instance_id\": \"40-chars-fake-of-the-package-instance_id\", @@@",
433
+ "@@@STEP_LOG_LINE@json.output@ \"package\": \"fake-package/linux-amd64\"@@@",
434
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
435
+ "@@@STEP_LOG_LINE@json.output@ ]@@@",
436
+ "@@@STEP_LOG_LINE@json.output@}@@@",
437
+ "@@@STEP_LOG_END@json.output@@@"
438
+ ]
439
+ },
440
+ {
441
+ "name": "$result",
442
+ "recipe_result": null,
443
+ "status_code": 0
444
+ }
445
+ ]