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
@@ -0,0 +1,445 @@
1
+ [
2
+ {
3
+ "cmd": [
4
+ "python",
5
+ "-u",
6
+ "RECIPE_MODULE[depot_tools::cipd]\\resources\\bootstrap.py",
7
+ "--platform",
8
+ "windows-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
+ "windows-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/windows-amd64 7f751b2237df2fdf3c1405be00590fefffbaea2d",
56
+ "--json-output",
57
+ "/path/to/tmp/json",
58
+ "--service-account-json",
59
+ "C:\\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/windows-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/windows-amd64",
79
+ "--tag",
80
+ "git_revision:40-chars-long-hash",
81
+ "--json-output",
82
+ "/path/to/tmp/json",
83
+ "--service-account-json",
84
+ "C:\\creds\\service_accounts\\service-account-cipd-builder.json"
85
+ ],
86
+ "name": "cipd search public/package/windows-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/windows-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/windows-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
+ "C:\\creds\\service_accounts\\service-account-cipd-builder.json"
110
+ ],
111
+ "name": "cipd describe public/package/windows-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/windows-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/windows-amd64 latest\npublic/package/windows-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/windows-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/windows-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/windows-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/windows-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/windows-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/windows-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/windows-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/windows-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/windows-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/windows-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/windows-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
+ ]
@@ -0,0 +1,115 @@
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
+ DEPS = [
6
+ 'recipe_engine/path',
7
+ 'recipe_engine/platform',
8
+ 'recipe_engine/properties',
9
+ 'recipe_engine/step',
10
+ 'cipd',
11
+ ]
12
+
13
+ def RunSteps(api):
14
+ # First, you need a cipd client.
15
+ api.cipd.install_client('install cipd')
16
+ api.cipd.install_client('install cipd', version='deadbeaf')
17
+ assert api.cipd.get_executable()
18
+
19
+ # Need to set service account credentials.
20
+ api.cipd.set_service_account_credentials(
21
+ api.cipd.default_bot_service_account_credentials)
22
+
23
+ package_name = 'public/package/%s' % api.cipd.platform_suffix()
24
+ package_instance_id = '7f751b2237df2fdf3c1405be00590fefffbaea2d'
25
+ packages = {package_name: package_instance_id}
26
+
27
+ cipd_root = api.path['slave_build'].join('packages')
28
+ # Some packages don't require credentials to be installed or queried.
29
+ api.cipd.ensure(cipd_root, packages)
30
+ step = api.cipd.search(package_name, tag='git_revision:40-chars-long-hash')
31
+ api.cipd.describe(package_name,
32
+ version=step.json.output['result'][0]['instance_id'])
33
+
34
+ # Others do, so provide creds first.
35
+ api.cipd.set_service_account_credentials('fake-credentials.json')
36
+ private_package_name = 'private/package/%s' % api.cipd.platform_suffix()
37
+ packages[private_package_name] = 'latest'
38
+ api.cipd.ensure(cipd_root, packages)
39
+ step = api.cipd.search(private_package_name, tag='key:value')
40
+ api.cipd.describe(private_package_name,
41
+ version=step.json.output['result'][0]['instance_id'],
42
+ test_data_tags=['custom:tagged', 'key:value'],
43
+ test_data_refs=['latest'])
44
+
45
+ # The rest of commands expect credentials to be set.
46
+
47
+ # Build & register new package version.
48
+ api.cipd.build('fake-input-dir', 'fake-package-path', 'infra/fake-package')
49
+ api.cipd.build('fake-input-dir', 'fake-package-path', 'infra/fake-package',
50
+ install_mode='copy')
51
+ api.cipd.register('infra/fake-package', 'fake-package-path',
52
+ refs=['fake-ref-1', 'fake-ref-2'],
53
+ tags={'fake_tag_1': 'fake_value_1',
54
+ 'fake_tag_2': 'fake_value_2'})
55
+
56
+ # Create (build & register).
57
+ api.cipd.create(api.path['slave_build'].join('fake-package.yaml'),
58
+ refs=['fake-ref-1', 'fake-ref-2'],
59
+ tags={'fake_tag_1': 'fake_value_1',
60
+ 'fake_tag_2': 'fake_value_2'})
61
+
62
+ # Set tag or ref of an already existing package.
63
+ api.cipd.set_tag('fake-package',
64
+ version='long/weird/ref/which/doesn/not/fit/into/40chars',
65
+ tags={'dead': 'beaf', 'more': 'value'})
66
+ api.cipd.set_ref('fake-package', version='latest', refs=['any', 'some'])
67
+ # Search by the new tag.
68
+ api.cipd.search('fake-package/%s' % api.cipd.platform_suffix(),
69
+ tag='dead:beaf')
70
+
71
+
72
+ def GenTests(api):
73
+ yield (
74
+ # This is very common dev workstation, but not all devs are on it.
75
+ api.test('basic') +
76
+ api.platform('linux', 64)
77
+ )
78
+
79
+ yield (
80
+ api.test('mac64') +
81
+ api.platform('mac', 64)
82
+ )
83
+
84
+ yield (
85
+ api.test('win64') +
86
+ api.platform('win', 64)
87
+ )
88
+
89
+ yield (
90
+ api.test('install-failed') +
91
+ api.step_data('install cipd', retcode=1)
92
+ )
93
+
94
+ yield (
95
+ api.test('describe-failed') +
96
+ api.platform('linux', 64) +
97
+ api.override_step_data(
98
+ 'cipd describe public/package/linux-amd64',
99
+ api.cipd.example_error(
100
+ 'package "public/package/linux-amd64-ubuntu14_04" not registered',
101
+ )
102
+ )
103
+ )
104
+
105
+ yield (
106
+ api.test('describe-many-instances') +
107
+ api.platform('linux', 64) +
108
+ api.override_step_data(
109
+ 'cipd search fake-package/linux-amd64 dead:beaf',
110
+ api.cipd.example_search(
111
+ 'public/package/linux-amd64-ubuntu14_04',
112
+ instances=3
113
+ )
114
+ )
115
+ )