libv8 5.7.492.65.1 → 5.9.211.38.0beta0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (297) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +8 -2
  4. data/CHANGELOG.md +4 -0
  5. data/README.md +4 -3
  6. data/Rakefile +27 -10
  7. data/ext/libv8/builder.rb +4 -0
  8. data/lib/libv8/version.rb +1 -1
  9. data/libv8.gemspec +1 -1
  10. data/patches/0001-Build-a-standalone-static-library.patch +5 -5
  11. data/patches/0002-Don-t-compile-unnecessary-stuff.patch +20 -24
  12. data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +5 -5
  13. data/patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch +5 -5
  14. data/patches/0005-Fix-GCC-7-build-errors.patch +147 -0
  15. data/scaleway.png +0 -0
  16. data/vendor/depot_tools/.gitattributes +52 -0
  17. data/vendor/depot_tools/.gitignore +10 -0
  18. data/vendor/depot_tools/README.md +7 -3
  19. data/vendor/depot_tools/apply_issue.bat +4 -3
  20. data/vendor/depot_tools/apply_issue.py +0 -10
  21. data/vendor/depot_tools/autoninja +12 -0
  22. data/vendor/depot_tools/autoninja.bat +9 -0
  23. data/vendor/depot_tools/autoninja.py +70 -0
  24. data/vendor/depot_tools/bootstrap/win/README.md +108 -26
  25. data/vendor/depot_tools/bootstrap/win/git-bash.template.sh +3 -3
  26. data/vendor/depot_tools/bootstrap/win/git.template.bat +2 -2
  27. data/vendor/depot_tools/bootstrap/win/manifest.txt +18 -0
  28. data/vendor/depot_tools/bootstrap/win/manifest_bleeding_edge.txt +18 -0
  29. data/vendor/depot_tools/bootstrap/win/python27.new.bat +49 -0
  30. data/vendor/depot_tools/bootstrap/win/win_tools.bat +55 -59
  31. data/vendor/depot_tools/bootstrap/win/win_tools.py +335 -0
  32. data/vendor/depot_tools/cipd +16 -2
  33. data/vendor/depot_tools/cipd.bat +20 -2
  34. data/vendor/depot_tools/cipd.ps1 +36 -22
  35. data/vendor/depot_tools/cipd_bin_setup.bat +6 -0
  36. data/vendor/depot_tools/cipd_bin_setup.sh +10 -0
  37. data/vendor/depot_tools/cipd_client_version +1 -1
  38. data/vendor/depot_tools/cipd_manifest.txt +9 -0
  39. data/vendor/depot_tools/cit.bat +12 -11
  40. data/vendor/depot_tools/clang-format.bat +4 -3
  41. data/vendor/depot_tools/clang_format_merge_driver.bat +12 -11
  42. data/vendor/depot_tools/commit_queue.bat +4 -3
  43. data/vendor/depot_tools/cpplint.bat +9 -3
  44. data/vendor/depot_tools/cpplint.py +3 -3
  45. data/vendor/depot_tools/depot-tools-auth.bat +4 -3
  46. data/vendor/depot_tools/download_from_google_storage.bat +5 -3
  47. data/vendor/depot_tools/download_from_google_storage.py +6 -1
  48. data/vendor/depot_tools/fetch.bat +5 -4
  49. data/vendor/depot_tools/fetch.py +4 -5
  50. data/vendor/depot_tools/gclient-new-workdir.py +82 -46
  51. data/vendor/depot_tools/gclient.bat +5 -4
  52. data/vendor/depot_tools/gclient.py +713 -319
  53. data/vendor/depot_tools/gclient_eval.py +284 -0
  54. data/vendor/depot_tools/gclient_utils.py +70 -4
  55. data/vendor/depot_tools/gerrit_client.py +26 -1
  56. data/vendor/depot_tools/gerrit_util.py +120 -127
  57. data/vendor/depot_tools/git-crrev-parse +1 -0
  58. data/vendor/depot_tools/git-gs +1 -1
  59. data/vendor/depot_tools/git_cl.py +731 -415
  60. data/vendor/depot_tools/git_common.py +23 -3
  61. data/vendor/depot_tools/git_drover.py +10 -1
  62. data/vendor/depot_tools/git_footers.py +62 -22
  63. data/vendor/depot_tools/git_hyper_blame.py +3 -2
  64. data/vendor/depot_tools/git_map.py +30 -3
  65. data/vendor/depot_tools/git_map_branches.py +18 -4
  66. data/vendor/depot_tools/git_number.py +8 -2
  67. data/vendor/depot_tools/git_retry.py +21 -0
  68. data/vendor/depot_tools/gn.bat +4 -3
  69. data/vendor/depot_tools/infra/config/cq.cfg +1 -5
  70. data/vendor/depot_tools/infra/config/recipes.cfg +18 -16
  71. data/vendor/depot_tools/led +12 -0
  72. data/vendor/depot_tools/led.bat +7 -0
  73. data/vendor/depot_tools/man/html/git-cl.html +9 -1
  74. data/vendor/depot_tools/man/html/git-drover.html +22 -18
  75. data/vendor/depot_tools/man/man1/git-cl.1 +8 -3
  76. data/vendor/depot_tools/man/man1/git-drover.1 +22 -20
  77. data/vendor/depot_tools/man/src/git-cl.txt +3 -0
  78. data/vendor/depot_tools/man/src/git-drover.txt +8 -0
  79. data/vendor/depot_tools/my_activity.py +8 -5
  80. data/vendor/depot_tools/owners.py +103 -11
  81. data/vendor/depot_tools/owners_finder.py +14 -2
  82. data/vendor/depot_tools/presubmit_canned_checks.py +25 -67
  83. data/vendor/depot_tools/presubmit_support.py +87 -35
  84. data/vendor/depot_tools/recipes/OWNERS +2 -0
  85. data/vendor/depot_tools/recipes/README.recipes.md +842 -0
  86. data/vendor/depot_tools/recipes/recipe_modules/bot_update/__init__.py +5 -3
  87. data/vendor/depot_tools/recipes/recipe_modules/bot_update/api.py +181 -60
  88. data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.expected → examples/full.expected}/apply_gerrit_ref.json +4 -2
  89. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic.json +82 -0
  90. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json +149 -0
  91. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/buildbot.json +82 -0
  92. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json +149 -0
  93. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json +122 -0
  94. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json +149 -0
  95. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json +149 -0
  96. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_shallow.json +149 -0
  97. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json +148 -0
  98. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange.json +150 -0
  99. data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.expected → examples/full.expected}/trychange_oauth2.json +0 -0
  100. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_buildbot.json +152 -0
  101. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json.json +150 -0
  102. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json_win.json +150 -0
  103. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob.json +156 -0
  104. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +91 -0
  105. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +118 -0
  106. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +118 -0
  107. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json +202 -0
  108. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle_deprecated.json +158 -0
  109. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json +196 -0
  110. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8.json +202 -0
  111. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json +202 -0
  112. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json +162 -0
  113. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json +162 -0
  114. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json +149 -0
  115. data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.py → examples/full.py} +46 -8
  116. data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py +139 -133
  117. data/vendor/depot_tools/recipes/recipe_modules/bot_update/test_api.py +25 -13
  118. data/vendor/depot_tools/recipes/recipe_modules/cipd/api.py +40 -9
  119. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/basic.json +0 -0
  120. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/basic_pkg.json +1 -1
  121. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/describe-failed.json +0 -0
  122. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/describe-many-instances.json +0 -0
  123. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/mac64.json +0 -0
  124. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_file.json +1 -1
  125. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_mode.json +0 -0
  126. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_verfile.json +0 -0
  127. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/win64.json +0 -0
  128. data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.py → examples/full.py} +1 -0
  129. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk arch.json +7 -0
  130. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk bits.json +7 -0
  131. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_32.json +14 -0
  132. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_64.json +14 -0
  133. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_32.json +14 -0
  134. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_64.json +14 -0
  135. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_mips_64.json +14 -0
  136. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/mac_intel_64.json +14 -0
  137. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_32.json +14 -0
  138. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_64.json +14 -0
  139. data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.py +59 -0
  140. data/vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py +5 -0
  141. data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.expected → examples/full.expected}/basic.json +7 -0
  142. data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.expected → examples/full.expected}/win.json +7 -0
  143. data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.py → examples/full.py} +2 -0
  144. data/vendor/depot_tools/recipes/recipe_modules/gclient/__init__.py +1 -4
  145. data/vendor/depot_tools/recipes/recipe_modules/gclient/api.py +28 -14
  146. data/vendor/depot_tools/recipes/recipe_modules/gclient/config.py +10 -235
  147. data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/basic.json +9 -9
  148. data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/buildbot.json +9 -9
  149. data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/revision.json +9 -9
  150. data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/tryserver.json +9 -9
  151. data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.py → examples/full.py} +5 -21
  152. data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py +45 -0
  153. data/vendor/depot_tools/recipes/recipe_modules/gerrit/__init__.py +1 -0
  154. data/vendor/depot_tools/recipes/recipe_modules/gerrit/api.py +97 -2
  155. data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.expected/basic.json +283 -0
  156. data/vendor/depot_tools/recipes/recipe_modules/gerrit/{example.py → examples/full.py} +31 -2
  157. data/vendor/depot_tools/recipes/recipe_modules/gerrit/test_api.py +30 -1
  158. data/vendor/depot_tools/recipes/recipe_modules/git/__init__.py +1 -4
  159. data/vendor/depot_tools/recipes/recipe_modules/git/api.py +7 -35
  160. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic.json +3 -3
  161. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_branch.json +3 -3
  162. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_file_name.json +3 -3
  163. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_hash.json +3 -3
  164. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_ref.json +3 -3
  165. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_submodule_update_force.json +3 -3
  166. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/can_fail_build.json +1 -1
  167. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/cannot_fail_build.json +3 -3
  168. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/cat-file_test.json +3 -3
  169. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_delta.json +3 -3
  170. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_failed.json +3 -3
  171. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_with_bad_output.json +3 -3
  172. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_with_bad_output_fails_build.json +1 -1
  173. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/curl_trace_file.json +3 -3
  174. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/git-cache-checkout.json +6 -6
  175. data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/platform_win.json +223 -0
  176. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/rebase_failed.json +3 -3
  177. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/remote_not_origin.json +3 -3
  178. data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/set_got_revision.json +3 -3
  179. data/vendor/depot_tools/recipes/recipe_modules/git/{example.py → examples/full.py} +2 -1
  180. data/vendor/depot_tools/recipes/recipe_modules/git/resources/git_setup.py +12 -21
  181. data/vendor/depot_tools/recipes/recipe_modules/git_cl/__init__.py +1 -4
  182. data/vendor/depot_tools/recipes/recipe_modules/git_cl/api.py +13 -11
  183. data/vendor/depot_tools/recipes/recipe_modules/git_cl/{example.expected → examples/full.expected}/basic.json +0 -0
  184. data/vendor/depot_tools/recipes/recipe_modules/git_cl/{example.py → examples/full.py} +4 -2
  185. data/vendor/depot_tools/recipes/recipe_modules/gitiles/OWNERS +3 -0
  186. data/vendor/depot_tools/recipes/recipe_modules/gitiles/__init__.py +7 -0
  187. data/vendor/depot_tools/recipes/recipe_modules/gitiles/api.py +135 -0
  188. data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.expected/basic.json +537 -0
  189. data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.py +61 -0
  190. data/vendor/depot_tools/recipes/recipe_modules/gitiles/resources/gerrit_client.py +192 -0
  191. data/vendor/depot_tools/recipes/recipe_modules/gitiles/test_api.py +95 -0
  192. data/vendor/depot_tools/recipes/recipe_modules/gsutil/{example.expected → examples/full.expected}/basic.json +0 -0
  193. data/vendor/depot_tools/recipes/recipe_modules/gsutil/{example.py → examples/full.py} +0 -0
  194. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/__init__.py +0 -3
  195. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/basic.json +3 -2
  196. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_linux.json +3 -2
  197. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_mac.json +3 -2
  198. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_win.json +3 -2
  199. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_generic_linux.json +3 -2
  200. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_generic_mac.json +3 -2
  201. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_generic_win.json +16 -0
  202. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_linux.json +16 -0
  203. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_mac.json +16 -0
  204. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_win.json +16 -0
  205. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.py → examples/full.py} +2 -1
  206. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/path_config.py +12 -3
  207. data/vendor/depot_tools/recipes/recipe_modules/presubmit/__init__.py +1 -0
  208. data/vendor/depot_tools/recipes/recipe_modules/presubmit/api.py +2 -2
  209. data/vendor/depot_tools/recipes/recipe_modules/presubmit/{example.expected → examples/full.expected}/basic.json +1 -1
  210. data/vendor/depot_tools/recipes/recipe_modules/presubmit/{example.py → examples/full.py} +0 -0
  211. data/vendor/depot_tools/recipes/recipe_modules/rietveld/__init__.py +0 -4
  212. data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.expected → examples/full.expected}/basic.json +0 -0
  213. data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.expected → examples/full.expected}/buildbot.json +0 -0
  214. data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/no_auth.json +27 -0
  215. data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.py → examples/full.py} +9 -1
  216. data/vendor/depot_tools/recipes/recipe_modules/tryserver/__init__.py +3 -5
  217. data/vendor/depot_tools/recipes/recipe_modules/tryserver/api.py +21 -96
  218. data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/basic_tags.json +0 -0
  219. data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/set_failure_hash_with_no_steps.json +0 -0
  220. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch.json +56 -0
  221. data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected/with_gerrit_patch_deprecated.json → examples/full.expected/with_git_patch.json} +2 -2
  222. data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected/with_gerrit_patch.json → examples/full.expected/with_git_patch_luci.json} +2 -2
  223. data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_rietveld_patch.json +0 -20
  224. data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_rietveld_patch_new.json +0 -20
  225. data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_wrong_patch.json +1 -13
  226. data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_wrong_patch_new.json +1 -13
  227. data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.py → examples/full.py} +3 -17
  228. data/vendor/depot_tools/recipes/recipes.py +141 -96
  229. data/vendor/depot_tools/rietveld.py +8 -1
  230. data/vendor/depot_tools/roll-dep-svn.bat +12 -10
  231. data/vendor/depot_tools/roll-dep.bat +5 -3
  232. data/vendor/depot_tools/scm.py +8 -1
  233. data/vendor/depot_tools/setup_color.py +0 -0
  234. data/vendor/depot_tools/split_cl.py +193 -0
  235. data/vendor/depot_tools/third_party/schema/.editorconfig +15 -0
  236. data/vendor/depot_tools/third_party/schema/.gitignore +174 -0
  237. data/vendor/depot_tools/third_party/schema/.travis.yml +37 -0
  238. data/vendor/depot_tools/third_party/schema/LICENSE-MIT +19 -0
  239. data/vendor/depot_tools/third_party/schema/MANIFEST.in +1 -0
  240. data/vendor/depot_tools/third_party/schema/README.chromium +12 -0
  241. data/vendor/depot_tools/third_party/schema/README.rst +382 -0
  242. data/vendor/depot_tools/third_party/schema/__init__.py +1 -0
  243. data/vendor/depot_tools/third_party/schema/schema.py +338 -0
  244. data/vendor/depot_tools/third_party/schema/setup.cfg +5 -0
  245. data/vendor/depot_tools/third_party/schema/setup.py +30 -0
  246. data/vendor/depot_tools/third_party/schema/test_schema.py +556 -0
  247. data/vendor/depot_tools/third_party/schema/tox.ini +33 -0
  248. data/vendor/depot_tools/third_party/upload.py +4 -0
  249. data/vendor/depot_tools/update_depot_tools +4 -16
  250. data/vendor/depot_tools/update_depot_tools.bat +4 -17
  251. data/vendor/depot_tools/update_depot_tools_toggle.py +38 -0
  252. data/vendor/depot_tools/vpython +12 -0
  253. data/vendor/depot_tools/vpython.bat +7 -0
  254. data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +17 -5
  255. data/vendor/depot_tools/win_toolchain/package_from_installed.py +63 -33
  256. metadata +161 -113
  257. data/vendor/depot_tools/bootstrap/gclient.bat +0 -22
  258. data/vendor/depot_tools/bootstrap/win/get_file.js +0 -119
  259. data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +0 -193
  260. data/vendor/depot_tools/bootstrap/win/git_version.txt +0 -1
  261. data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +0 -1
  262. data/vendor/depot_tools/bootstrap/win/python276.new.bat +0 -8
  263. data/vendor/depot_tools/bootstrap/win/svn.new.bat +0 -4
  264. data/vendor/depot_tools/bootstrap/win/svnversion.new.bat +0 -4
  265. data/vendor/depot_tools/bootstrap/win/unzip.js +0 -91
  266. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic.json +0 -53
  267. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic_output_manifest.json +0 -60
  268. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +0 -54
  269. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/buildbot.json +0 -53
  270. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/clobber.json +0 -54
  271. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +0 -54
  272. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +0 -54
  273. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/no_shallow.json +0 -54
  274. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +0 -53
  275. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange.json +0 -55
  276. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_buildbot.json +0 -57
  277. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_json.json +0 -55
  278. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_json_win.json +0 -55
  279. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob.json +0 -59
  280. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail.json +0 -62
  281. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +0 -83
  282. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +0 -84
  283. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +0 -60
  284. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +0 -60
  285. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_v8.json +0 -62
  286. data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +0 -62
  287. data/vendor/depot_tools/recipes/recipe_modules/gclient/bundle_extra_paths.txt +0 -4
  288. data/vendor/depot_tools/recipes/recipe_modules/gerrit/example.expected/basic.json +0 -66
  289. data/vendor/depot_tools/recipes/recipe_modules/git/bundle_extra_paths.txt +0 -28
  290. data/vendor/depot_tools/recipes/recipe_modules/git/example.expected/platform_win.json +0 -237
  291. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_win.json +0 -15
  292. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +0 -15
  293. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +0 -15
  294. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +0 -15
  295. data/vendor/depot_tools/recipes/recipe_modules/presubmit/bundle_extra_paths.txt +0 -30
  296. data/vendor/depot_tools/recipes/recipe_modules/tryserver/example.expected/with_git_patch.json +0 -109
  297. data/vendor/depot_tools/recipes/recipe_modules/tryserver/example.expected/with_git_patch_luci.json +0 -8
@@ -0,0 +1,283 @@
1
+ [
2
+ {
3
+ "cmd": [
4
+ "python",
5
+ "-u",
6
+ "RECIPE_PACKAGE_REPO[depot_tools]/gerrit_client.py",
7
+ "branch",
8
+ "--host",
9
+ "https://chromium-review.googlesource.com",
10
+ "--project",
11
+ "v8/v8",
12
+ "--branch",
13
+ "test",
14
+ "--commit",
15
+ "67ebf73496383c6777035e374d2d664009e2aa5c",
16
+ "--json_file",
17
+ "/path/to/tmp/json"
18
+ ],
19
+ "env": {
20
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
21
+ },
22
+ "infra_step": true,
23
+ "name": "gerrit create_gerrit_branch",
24
+ "~followup_annotations": [
25
+ "@@@STEP_LOG_LINE@json.output@{@@@",
26
+ "@@@STEP_LOG_LINE@json.output@ \"can_delete\": true, @@@",
27
+ "@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/heads/test\", @@@",
28
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"76016386a0d8ecc7b6be212424978bb45959d668\"@@@",
29
+ "@@@STEP_LOG_LINE@json.output@}@@@",
30
+ "@@@STEP_LOG_END@json.output@@@"
31
+ ]
32
+ },
33
+ {
34
+ "cmd": [
35
+ "python",
36
+ "-u",
37
+ "RECIPE_PACKAGE_REPO[depot_tools]/gerrit_client.py",
38
+ "branchinfo",
39
+ "--host",
40
+ "https://chromium-review.googlesource.com",
41
+ "--project",
42
+ "v8/v8",
43
+ "--branch",
44
+ "master",
45
+ "--json_file",
46
+ "/path/to/tmp/json"
47
+ ],
48
+ "env": {
49
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
50
+ },
51
+ "infra_step": true,
52
+ "name": "gerrit get_gerrit_branch",
53
+ "~followup_annotations": [
54
+ "@@@STEP_LOG_LINE@json.output@{@@@",
55
+ "@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/heads/master\", @@@",
56
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"67ebf73496383c6777035e374d2d664009e2aa5c\"@@@",
57
+ "@@@STEP_LOG_LINE@json.output@}@@@",
58
+ "@@@STEP_LOG_END@json.output@@@"
59
+ ]
60
+ },
61
+ {
62
+ "cmd": [
63
+ "python",
64
+ "-u",
65
+ "RECIPE_PACKAGE_REPO[depot_tools]/gerrit_client.py",
66
+ "changes",
67
+ "--host",
68
+ "https://chromium-review.googlesource.com",
69
+ "--json_file",
70
+ "/path/to/tmp/json",
71
+ "--start",
72
+ "1",
73
+ "--limit",
74
+ "1",
75
+ "-p",
76
+ "project=chromium/src",
77
+ "-p",
78
+ "status=open",
79
+ "-p",
80
+ "label=Commit-Queue>0"
81
+ ],
82
+ "env": {
83
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
84
+ },
85
+ "infra_step": true,
86
+ "name": "gerrit changes",
87
+ "~followup_annotations": [
88
+ "@@@STEP_LOG_LINE@json.output@[@@@",
89
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
90
+ "@@@STEP_LOG_LINE@json.output@ \"_number\": \"91827\", @@@",
91
+ "@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
92
+ "@@@STEP_LOG_LINE@json.output@ \"change_id\": \"Ideadbeef\", @@@",
93
+ "@@@STEP_LOG_LINE@json.output@ \"created\": \"2017-01-30 13:11:20.000000000\", @@@",
94
+ "@@@STEP_LOG_LINE@json.output@ \"has_review_started\": false, @@@",
95
+ "@@@STEP_LOG_LINE@json.output@ \"project\": \"chromium/src\", @@@",
96
+ "@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
97
+ "@@@STEP_LOG_LINE@json.output@ \"184ebe53805e102605d11f6b143486d15c23a09c\": {@@@",
98
+ "@@@STEP_LOG_LINE@json.output@ \"_number\": \"1\", @@@",
99
+ "@@@STEP_LOG_LINE@json.output@ \"commit\": {@@@",
100
+ "@@@STEP_LOG_LINE@json.output@ \"message\": \"Change commit message\"@@@",
101
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
102
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
103
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
104
+ "@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\", @@@",
105
+ "@@@STEP_LOG_LINE@json.output@ \"subject\": \"Change title\"@@@",
106
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
107
+ "@@@STEP_LOG_LINE@json.output@]@@@",
108
+ "@@@STEP_LOG_END@json.output@@@"
109
+ ]
110
+ },
111
+ {
112
+ "cmd": [
113
+ "python",
114
+ "-u",
115
+ "RECIPE_PACKAGE_REPO[depot_tools]/gerrit_client.py",
116
+ "changes",
117
+ "--host",
118
+ "https://chromium-review.googlesource.com",
119
+ "--json_file",
120
+ "/path/to/tmp/json",
121
+ "--limit",
122
+ "1",
123
+ "-p",
124
+ "change=123",
125
+ "-o",
126
+ "ALL_REVISIONS",
127
+ "-o",
128
+ "ALL_COMMITS"
129
+ ],
130
+ "env": {
131
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
132
+ },
133
+ "infra_step": true,
134
+ "name": "gerrit changes (2)",
135
+ "~followup_annotations": [
136
+ "@@@STEP_LOG_LINE@json.output@[@@@",
137
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
138
+ "@@@STEP_LOG_LINE@json.output@ \"_number\": \"91827\", @@@",
139
+ "@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
140
+ "@@@STEP_LOG_LINE@json.output@ \"change_id\": \"Ideadbeef\", @@@",
141
+ "@@@STEP_LOG_LINE@json.output@ \"created\": \"2017-01-30 13:11:20.000000000\", @@@",
142
+ "@@@STEP_LOG_LINE@json.output@ \"has_review_started\": false, @@@",
143
+ "@@@STEP_LOG_LINE@json.output@ \"project\": \"chromium/src\", @@@",
144
+ "@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
145
+ "@@@STEP_LOG_LINE@json.output@ \"184ebe53805e102605d11f6b143486d15c23a09c\": {@@@",
146
+ "@@@STEP_LOG_LINE@json.output@ \"_number\": \"1\", @@@",
147
+ "@@@STEP_LOG_LINE@json.output@ \"commit\": {@@@",
148
+ "@@@STEP_LOG_LINE@json.output@ \"message\": \"Change commit message\"@@@",
149
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
150
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
151
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
152
+ "@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\", @@@",
153
+ "@@@STEP_LOG_LINE@json.output@ \"subject\": \"Change title\"@@@",
154
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
155
+ "@@@STEP_LOG_LINE@json.output@]@@@",
156
+ "@@@STEP_LOG_END@json.output@@@"
157
+ ]
158
+ },
159
+ {
160
+ "cmd": [
161
+ "python",
162
+ "-u",
163
+ "RECIPE_PACKAGE_REPO[depot_tools]/gerrit_client.py",
164
+ "changes",
165
+ "--host",
166
+ "https://chromium-review.googlesource.com",
167
+ "--json_file",
168
+ "/path/to/tmp/json",
169
+ "--limit",
170
+ "1",
171
+ "-p",
172
+ "change=123"
173
+ ],
174
+ "env": {
175
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
176
+ },
177
+ "infra_step": true,
178
+ "name": "gerrit get_change_destination_branch",
179
+ "~followup_annotations": [
180
+ "@@@STEP_LOG_LINE@json.output@[@@@",
181
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
182
+ "@@@STEP_LOG_LINE@json.output@ \"_number\": \"91827\", @@@",
183
+ "@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
184
+ "@@@STEP_LOG_LINE@json.output@ \"change_id\": \"Ideadbeef\", @@@",
185
+ "@@@STEP_LOG_LINE@json.output@ \"created\": \"2017-01-30 13:11:20.000000000\", @@@",
186
+ "@@@STEP_LOG_LINE@json.output@ \"has_review_started\": false, @@@",
187
+ "@@@STEP_LOG_LINE@json.output@ \"project\": \"chromium/src\", @@@",
188
+ "@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
189
+ "@@@STEP_LOG_LINE@json.output@ \"184ebe53805e102605d11f6b143486d15c23a09c\": {@@@",
190
+ "@@@STEP_LOG_LINE@json.output@ \"_number\": \"1\", @@@",
191
+ "@@@STEP_LOG_LINE@json.output@ \"commit\": {@@@",
192
+ "@@@STEP_LOG_LINE@json.output@ \"message\": \"Change commit message\"@@@",
193
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
194
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
195
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
196
+ "@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\", @@@",
197
+ "@@@STEP_LOG_LINE@json.output@ \"subject\": \"Change title\"@@@",
198
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
199
+ "@@@STEP_LOG_LINE@json.output@]@@@",
200
+ "@@@STEP_LOG_END@json.output@@@"
201
+ ]
202
+ },
203
+ {
204
+ "cmd": [
205
+ "python",
206
+ "-u",
207
+ "RECIPE_PACKAGE_REPO[depot_tools]/gerrit_client.py",
208
+ "changes",
209
+ "--host",
210
+ "https://chromium-review.googlesource.com",
211
+ "--json_file",
212
+ "/path/to/tmp/json",
213
+ "--limit",
214
+ "1",
215
+ "-p",
216
+ "change=123"
217
+ ],
218
+ "env": {
219
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
220
+ },
221
+ "infra_step": true,
222
+ "name": "gerrit missing_cl",
223
+ "~followup_annotations": [
224
+ "@@@STEP_LOG_LINE@json.output@[]@@@",
225
+ "@@@STEP_LOG_END@json.output@@@",
226
+ "@@@STEP_EXCEPTION@@@"
227
+ ]
228
+ },
229
+ {
230
+ "cmd": [
231
+ "python",
232
+ "-u",
233
+ "RECIPE_PACKAGE_REPO[depot_tools]/gerrit_client.py",
234
+ "changes",
235
+ "--host",
236
+ "https://chromium-review.googlesource.com",
237
+ "--json_file",
238
+ "/path/to/tmp/json",
239
+ "--limit",
240
+ "1",
241
+ "-p",
242
+ "change=123",
243
+ "-o",
244
+ "ALL_REVISIONS",
245
+ "-o",
246
+ "ALL_COMMITS"
247
+ ],
248
+ "env": {
249
+ "PATH": "<PATH>:RECIPE_PACKAGE_REPO[depot_tools]"
250
+ },
251
+ "infra_step": true,
252
+ "name": "gerrit changes (3)",
253
+ "~followup_annotations": [
254
+ "@@@STEP_LOG_LINE@json.output@[@@@",
255
+ "@@@STEP_LOG_LINE@json.output@ {@@@",
256
+ "@@@STEP_LOG_LINE@json.output@ \"_number\": \"91827\", @@@",
257
+ "@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
258
+ "@@@STEP_LOG_LINE@json.output@ \"change_id\": \"Ideadbeef\", @@@",
259
+ "@@@STEP_LOG_LINE@json.output@ \"created\": \"2017-01-30 13:11:20.000000000\", @@@",
260
+ "@@@STEP_LOG_LINE@json.output@ \"has_review_started\": false, @@@",
261
+ "@@@STEP_LOG_LINE@json.output@ \"project\": \"chromium/src\", @@@",
262
+ "@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
263
+ "@@@STEP_LOG_LINE@json.output@ \"184ebe53805e102605d11f6b143486d15c23a09c\": {@@@",
264
+ "@@@STEP_LOG_LINE@json.output@ \"_number\": \"1\", @@@",
265
+ "@@@STEP_LOG_LINE@json.output@ \"commit\": {@@@",
266
+ "@@@STEP_LOG_LINE@json.output@ \"message\": \"Change commit message\"@@@",
267
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
268
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
269
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
270
+ "@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\", @@@",
271
+ "@@@STEP_LOG_LINE@json.output@ \"subject\": \"Change title\"@@@",
272
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
273
+ "@@@STEP_LOG_LINE@json.output@]@@@",
274
+ "@@@STEP_LOG_END@json.output@@@"
275
+ ]
276
+ },
277
+ {
278
+ "name": "$result",
279
+ "reason": "2 out of 2 aggregated steps failed. Failures: Error quering for branch of CL 123, Error querying for CL description: host:'https://chromium-review.googlesource.com' change:123; patchset:3",
280
+ "recipe_result": null,
281
+ "status_code": 1
282
+ }
283
+ ]
@@ -3,12 +3,13 @@
3
3
  # found in the LICENSE file.
4
4
 
5
5
  DEPS = [
6
- 'gerrit'
6
+ 'gerrit',
7
+ 'recipe_engine/step',
7
8
  ]
8
9
 
9
10
 
10
11
  def RunSteps(api):
11
- host = 'https://chromium-review.googlesource.com/a'
12
+ host = 'https://chromium-review.googlesource.com'
12
13
  project = 'v8/v8'
13
14
 
14
15
  branch = 'test'
@@ -20,6 +21,30 @@ def RunSteps(api):
20
21
  data = api.gerrit.get_gerrit_branch(host, project, 'master')
21
22
  assert data == '67ebf73496383c6777035e374d2d664009e2aa5c'
22
23
 
24
+ # Query for changes in Chromium's CQ.
25
+ api.gerrit.get_changes(
26
+ host,
27
+ query_params=[
28
+ ('project', 'chromium/src'),
29
+ ('status', 'open'),
30
+ ('label', 'Commit-Queue>0'),
31
+ ],
32
+ start=1,
33
+ limit=1,
34
+ )
35
+
36
+ api.gerrit.get_change_description(
37
+ host, change=123, patchset=1)
38
+
39
+ api.gerrit.get_change_destination_branch(host, change=123)
40
+
41
+ with api.step.defer_results():
42
+ api.gerrit.get_change_destination_branch(
43
+ host, change=123, name='missing_cl')
44
+
45
+ api.gerrit.get_change_description(
46
+ host, change=123, patchset=3)
47
+
23
48
 
24
49
  def GenTests(api):
25
50
  yield (
@@ -32,4 +57,8 @@ def GenTests(api):
32
57
  'gerrit get_gerrit_branch',
33
58
  api.gerrit.make_gerrit_get_branch_response_data()
34
59
  )
60
+ + api.step_data(
61
+ 'gerrit missing_cl',
62
+ api.gerrit.get_empty_changes_response_data()
63
+ )
35
64
  )
@@ -5,6 +5,27 @@
5
5
  from recipe_engine import recipe_test_api
6
6
 
7
7
 
8
+ # Exemplary change. Note: This contains only a subset of the key/value pairs
9
+ # present in production to limit recipe simulation output.
10
+ EXAMPLE_CHANGE = {
11
+ 'status': 'NEW',
12
+ 'created': '2017-01-30 13:11:20.000000000',
13
+ '_number': '91827',
14
+ 'change_id': 'Ideadbeef',
15
+ 'project': 'chromium/src',
16
+ 'has_review_started': False,
17
+ 'branch': 'master',
18
+ 'subject': 'Change title',
19
+ 'revisions': {
20
+ '184ebe53805e102605d11f6b143486d15c23a09c': {
21
+ '_number': '1',
22
+ 'commit': {
23
+ 'message': 'Change commit message',
24
+ },
25
+ },
26
+ },
27
+ }
28
+
8
29
  class GerritTestApi(recipe_test_api.RecipeTestApi):
9
30
 
10
31
  def _make_gerrit_response_json(self, data):
@@ -21,4 +42,12 @@ class GerritTestApi(recipe_test_api.RecipeTestApi):
21
42
  return self._make_gerrit_response_json({
22
43
  "ref": "refs/heads/master",
23
44
  "revision": "67ebf73496383c6777035e374d2d664009e2aa5c"
24
- })
45
+ })
46
+
47
+ def get_one_change_response_data(self, **kwargs):
48
+ change = EXAMPLE_CHANGE.copy()
49
+ change.update(kwargs)
50
+ return self._make_gerrit_response_json([change])
51
+
52
+ def get_empty_changes_response_data(self):
53
+ return self._make_gerrit_response_json([])
@@ -1,5 +1,6 @@
1
1
  DEPS = [
2
2
  'infra_paths',
3
+ 'recipe_engine/context',
3
4
  'recipe_engine/path',
4
5
  'recipe_engine/platform',
5
6
  'recipe_engine/properties',
@@ -7,7 +8,3 @@ DEPS = [
7
8
  'recipe_engine/raw_io',
8
9
  'recipe_engine/step',
9
10
  ]
10
-
11
-
12
- # TODO(phajdan.jr): provide coverage (http://crbug.com/693058).
13
- DISABLE_STRICT_COVERAGE = True
@@ -10,27 +10,17 @@ from recipe_engine import recipe_api
10
10
  class GitApi(recipe_api.RecipeApi):
11
11
  _GIT_HASH_RE = re.compile('[0-9a-f]{40}', re.IGNORECASE)
12
12
 
13
- def __init__(self, *args, **kwargs):
14
- super(GitApi, self).__init__(*args, **kwargs)
15
- self.initialized_win_git = False
16
-
17
13
  def __call__(self, *args, **kwargs):
18
14
  """Return a git command step."""
19
15
  name = kwargs.pop('name', 'git ' + args[0])
20
16
  infra_step = kwargs.pop('infra_step', True)
21
17
  git_cmd = ['git']
22
- if self.m.platform.is_win:
23
- self.ensure_win_git_tooling()
24
- git_cmd = [self.package_repo_resource('git.bat')]
25
18
  options = kwargs.pop('git_config_options', {})
26
19
  for k, v in sorted(options.iteritems()):
27
20
  git_cmd.extend(['-c', '%s=%s' % (k, v)])
28
21
  can_fail_build = kwargs.pop('can_fail_build', True)
29
22
  try:
30
- context = {}
31
- if not self.m.step.get_from_context('cwd') and self.m.path['checkout']:
32
- context['cwd'] = self.m.path['checkout']
33
- with self.m.step.context(context):
23
+ with self.m.context(cwd=(self.m.context.cwd or self.m.path['checkout'])):
34
24
  return self.m.step(name, git_cmd + list(args), infra_step=infra_step,
35
25
  **kwargs)
36
26
  except self.m.step.StepFailure as f:
@@ -39,19 +29,6 @@ class GitApi(recipe_api.RecipeApi):
39
29
  else:
40
30
  return f.result
41
31
 
42
- def ensure_win_git_tooling(self):
43
- """Ensures that depot_tools/git.bat actually exists."""
44
- if not self.m.platform.is_win or self.initialized_win_git:
45
- return
46
- with self.m.step.context({'cwd': self.package_repo_resource()}):
47
- self.m.python(
48
- 'ensure git tooling on windows',
49
- self.package_repo_resource('bootstrap', 'win', 'git_bootstrap.py'),
50
- ['--verbose'],
51
- infra_step=True,
52
- timeout=300)
53
- self.initialized_win_git = True
54
-
55
32
  def fetch_tags(self, remote_name=None, **kwargs):
56
33
  """Fetches all tags from the remote."""
57
34
  kwargs.setdefault('name', 'git fetch tags')
@@ -200,11 +177,6 @@ class GitApi(recipe_api.RecipeApi):
200
177
  else:
201
178
  remote_name = 'origin'
202
179
 
203
- if self.m.platform.is_win:
204
- self.ensure_win_git_tooling()
205
- git_setup_args += [
206
- '--git_cmd_path', self.package_repo_resource('git.bat')]
207
-
208
180
  step_suffix = '' if step_suffix is None else ' (%s)' % step_suffix
209
181
  self.m.python(
210
182
  'git setup%s' % step_suffix,
@@ -215,9 +187,9 @@ class GitApi(recipe_api.RecipeApi):
215
187
  path = self.m.path.pathsep.join([
216
188
  str(self.package_repo_resource()), '%(PATH)s'])
217
189
 
218
- with self.m.step.context({'cwd': dir_path}):
190
+ with self.m.context(cwd=dir_path):
219
191
  if use_git_cache:
220
- with self.m.step.context({'env': {'PATH': path}}):
192
+ with self.m.context(env={'PATH': path}):
221
193
  self('retry', 'cache', 'populate', '-c',
222
194
  self.m.infra_paths.default_git_cache_dir, url,
223
195
 
@@ -278,7 +250,7 @@ class GitApi(recipe_api.RecipeApi):
278
250
  name='count-objects before %s' % fetch_step_name,
279
251
  step_test_data=lambda: self.m.raw_io.test_api.stream_output(
280
252
  self.test_api.count_objects_output(1000)))
281
- with self.m.step.context({'env': fetch_env}):
253
+ with self.m.context(env=fetch_env):
282
254
  self('retry', 'fetch', *fetch_args,
283
255
  name=fetch_step_name,
284
256
  stderr=fetch_stderr,
@@ -355,7 +327,7 @@ class GitApi(recipe_api.RecipeApi):
355
327
  remote_name (str): the remote name to rebase from if not origin
356
328
  """
357
329
  remote_name = remote_name or 'origin'
358
- with self.m.step.context({'cwd': dir_path}):
330
+ with self.m.context(cwd=dir_path):
359
331
  try:
360
332
  self('rebase', '%s/master' % remote_name,
361
333
  name="%s rebase" % name_prefix, **kwargs)
@@ -413,7 +385,7 @@ class GitApi(recipe_api.RecipeApi):
413
385
  upstream (str): to origin/master.
414
386
  kwargs: Forwarded to '__call__'.
415
387
  """
416
- env = self.m.step.get_from_context('env', {})
388
+ env = self.m.context.env
417
389
  env['PATH'] = self.m.path.pathsep.join([
418
390
  str(self.package_repo_resource()), '%(PATH)s'])
419
391
  args = ['new-branch', branch]
@@ -421,5 +393,5 @@ class GitApi(recipe_api.RecipeApi):
421
393
  args.extend(['--upstream', upstream])
422
394
  if not name:
423
395
  name = 'git new-branch %s' % branch
424
- with self.m.step.context({'env': env}):
396
+ with self.m.context(env=env):
425
397
  return self(*args, name=name, **kwargs)