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
@@ -1,18 +1,20 @@
1
1
  DEPS = [
2
+ 'depot_tools',
2
3
  'gclient',
4
+ 'gerrit',
5
+ 'recipe_engine/context',
3
6
  'recipe_engine/json',
4
7
  'recipe_engine/path',
5
8
  'recipe_engine/platform',
6
9
  'recipe_engine/properties',
7
10
  'recipe_engine/python',
8
11
  'recipe_engine/raw_io',
9
- 'rietveld',
10
12
  'recipe_engine/step',
13
+ 'rietveld',
11
14
  'tryserver',
12
15
  ]
13
16
 
14
17
  from recipe_engine.recipe_api import Property
15
- from recipe_engine.types import freeze
16
18
 
17
19
  PROPERTIES = {
18
20
  # Gerrit patches will have all properties about them prefixed with patch_.
@@ -34,7 +36,7 @@ PROPERTIES = {
34
36
  'repository': Property(default=None),
35
37
 
36
38
  # Common fields for both systems.
37
- 'deps_revision_overrides': Property(default=freeze({})),
39
+ 'deps_revision_overrides': Property(default={}),
38
40
  'fail_patch': Property(default=None, kind=str),
39
41
  'parent_got_revision': Property(default=None),
40
42
  'revision': Property(default=None),
@@ -33,16 +33,11 @@ class BotUpdateApi(recipe_api.RecipeApi):
33
33
  assert isinstance(cmd, (list, tuple))
34
34
  bot_update_path = self.resource('bot_update.py')
35
35
  kwargs.setdefault('infra_step', True)
36
- env = self.m.step.get_from_context('env', {})
37
- env.setdefault('PATH', '%(PATH)s')
38
- env['PATH'] = self.m.path.pathsep.join([
39
- env['PATH'], str(self._module.PACKAGE_REPO_ROOT)])
40
- # These are to prevent git from hanging. If the git connection is slower
41
- # than 1KB/s for more than 5 minutes then git will kill the connection
42
- # and die with an error "error: RPC failed; curl 28 Operation too slow"
43
- env['GIT_HTTP_LOW_SPEED_LIMIT'] = 1000
44
- env['GIT_HTTP_LOW_SPEED_TIME'] = 300
45
- with self.m.step.context({'env': env}):
36
+
37
+ env_prefixes = {
38
+ 'PATH': [self.m.depot_tools.root],
39
+ }
40
+ with self.m.context(env_prefixes=env_prefixes):
46
41
  return self.m.python(name, bot_update_path, cmd, **kwargs)
47
42
 
48
43
  @property
@@ -55,10 +50,6 @@ class BotUpdateApi(recipe_api.RecipeApi):
55
50
  gerrit_no_rebase_patch_ref=False, **kwargs):
56
51
  apply_gerrit_path = self.resource('apply_gerrit.py')
57
52
  kwargs.setdefault('infra_step', True)
58
- env = self.m.step.get_from_context('env', {})
59
- env.setdefault('PATH', '%(PATH)s')
60
- env['PATH'] = self.m.path.pathsep.join([
61
- env['PATH'], str(self._module.PACKAGE_REPO_ROOT)])
62
53
  cmd = [
63
54
  '--gerrit_repo', self._repository,
64
55
  '--gerrit_ref', self._gerrit_ref or '',
@@ -68,19 +59,23 @@ class BotUpdateApi(recipe_api.RecipeApi):
68
59
  cmd.append('--gerrit_no_reset')
69
60
  if gerrit_no_rebase_patch_ref:
70
61
  cmd.append('--gerrit_no_rebase_patch_ref')
71
- with self.m.step.context({'env': env}):
62
+
63
+ env_prefixes = {
64
+ 'PATH': [self.m.depot_tools.root],
65
+ }
66
+ with self.m.context(env_prefixes=env_prefixes):
72
67
  return self.m.python('apply_gerrit', apply_gerrit_path, cmd, **kwargs)
73
68
 
74
69
  def ensure_checkout(self, gclient_config=None, suffix=None,
75
70
  patch=True, update_presentation=True,
76
71
  patch_root=None, no_shallow=False,
77
- with_branch_heads=False, refs=None,
72
+ with_branch_heads=False, with_tags=False, refs=None,
78
73
  patch_oauth2=False, oauth2_json=False,
79
- use_site_config_creds=True,
80
- output_manifest=True, clobber=False,
74
+ use_site_config_creds=True, clobber=False,
81
75
  root_solution_revision=None, rietveld=None, issue=None,
82
76
  patchset=None, gerrit_no_reset=False,
83
- gerrit_no_rebase_patch_ref=False, **kwargs):
77
+ gerrit_no_rebase_patch_ref=False,
78
+ disable_syntax_validation=False, **kwargs):
84
79
  """
85
80
  Args:
86
81
  use_site_config_creds: If the oauth2 credentials are in the buildbot
@@ -93,6 +88,9 @@ class BotUpdateApi(recipe_api.RecipeApi):
93
88
  the 'issue' property.
94
89
  patchset: The rietveld issue patchset to use. If omitted, will infer from
95
90
  the 'patchset' property.
91
+ disable_syntax_validation: (legacy) Disables syntax validation for DEPS.
92
+ Needed as migration paths for recipes dealing with older revisions,
93
+ such as bisect.
96
94
  """
97
95
  refs = refs or []
98
96
  # We can re-use the gclient spec from the gclient module, since all the
@@ -171,14 +169,16 @@ class BotUpdateApi(recipe_api.RecipeApi):
171
169
  self.m.gclient.set_patch_project_revision(
172
170
  self.m.properties.get('patch_project'), cfg)
173
171
 
174
- rev_map = cfg.got_revision_mapping.as_jsonish()
172
+ reverse_rev_map = self.m.gclient.got_revision_reverse_mapping(cfg)
175
173
 
176
174
  flags = [
177
- # What do we want to check out (spec/root/rev/rev_map).
178
- ['--spec', self.m.gclient.config_to_pythonish(cfg)],
175
+ # What do we want to check out (spec/root/rev/reverse_rev_map).
176
+ ['--spec-path', self.m.raw_io.input(
177
+ self.m.gclient.config_to_pythonish(cfg))],
179
178
  ['--patch_root', root],
180
- ['--revision_mapping_file', self.m.json.input(rev_map)],
179
+ ['--revision_mapping_file', self.m.json.input(reverse_rev_map)],
181
180
  ['--git-cache-dir', cfg.cache_dir],
181
+ ['--cleanup-dir', self.m.path['cleanup'].join('bot_update')],
182
182
 
183
183
  # How to find the patch, if any (issue/patchset).
184
184
  ['--issue', issue],
@@ -191,7 +191,8 @@ class BotUpdateApi(recipe_api.RecipeApi):
191
191
  ['--apply_issue_oauth2_file', oauth2_json_file],
192
192
 
193
193
  # Hookups to JSON output back into recipes.
194
- ['--output_json', self.m.json.output()],]
194
+ ['--output_json', self.m.json.output()],
195
+ ]
195
196
 
196
197
 
197
198
  # Collect all fixed revisions to simulate them in the json output.
@@ -214,10 +215,14 @@ class BotUpdateApi(recipe_api.RecipeApi):
214
215
  revisions[cfg.solutions[0].name] = root_solution_revision
215
216
  # Allow for overrides required to bisect into rolls.
216
217
  revisions.update(self._deps_revision_overrides)
218
+ # Compute command-line parameters for requested revisions.
217
219
  for name, revision in sorted(revisions.items()):
218
220
  fixed_revision = self.m.gclient.resolve_revision(revision)
219
221
  if fixed_revision:
220
222
  fixed_revisions[name] = fixed_revision
223
+ if fixed_revision.upper() == 'HEAD':
224
+ # Sync to correct destination branch if HEAD was specified.
225
+ fixed_revision = self._destination_branch(cfg, name)
221
226
  flags.append(['--revision', '%s@%s' % (name, fixed_revision)])
222
227
 
223
228
  # Add extra fetch refspecs.
@@ -232,20 +237,22 @@ class BotUpdateApi(recipe_api.RecipeApi):
232
237
  cmd.append('--clobber')
233
238
  if no_shallow:
234
239
  cmd.append('--no_shallow')
235
- if output_manifest:
236
- cmd.append('--output_manifest')
237
240
  if with_branch_heads or cfg.with_branch_heads:
238
241
  cmd.append('--with_branch_heads')
242
+ if with_tags:
243
+ cmd.append('--with_tags')
239
244
  if gerrit_no_reset:
240
245
  cmd.append('--gerrit_no_reset')
241
246
  if gerrit_no_rebase_patch_ref:
242
247
  cmd.append('--gerrit_no_rebase_patch_ref')
248
+ if disable_syntax_validation or cfg.disable_syntax_validation:
249
+ cmd.append('--disable-syntax-validation')
243
250
 
244
251
  # Inject Json output for testing.
245
252
  first_sln = cfg.solutions[0].name
246
253
  step_test_data = lambda: self.test_api.output_json(
247
- root, first_sln, rev_map, self._fail_patch,
248
- output_manifest=output_manifest, fixed_revisions=fixed_revisions)
254
+ root, first_sln, reverse_rev_map, self._fail_patch,
255
+ fixed_revisions=fixed_revisions)
249
256
 
250
257
  # Add suffixes to the step name, if specified.
251
258
  name = 'bot_update'
@@ -260,13 +267,15 @@ class BotUpdateApi(recipe_api.RecipeApi):
260
267
  # 87 and 88 are the 'patch failure' codes for patch download and patch
261
268
  # apply, respectively. We don't actually use the error codes, and instead
262
269
  # rely on emitted json to determine cause of failure.
263
- step_result = self(name, cmd, step_test_data=step_test_data,
270
+ step_result = self(
271
+ name, cmd, step_test_data=step_test_data,
264
272
  ok_ret=(0, 87, 88), **kwargs)
265
273
  except self.m.step.StepFailure as f:
266
274
  step_result = f.result
267
275
  raise
268
276
  finally:
269
277
  if step_result:
278
+ result = step_result.json.output
270
279
  self._last_returned_properties = step_result.json.output.get(
271
280
  'properties', {})
272
281
 
@@ -276,46 +285,158 @@ class BotUpdateApi(recipe_api.RecipeApi):
276
285
  self.last_returned_properties.iteritems()):
277
286
  step_result.presentation.properties[prop_name] = prop_value
278
287
  # Add helpful step description in the step UI.
279
- if 'step_text' in step_result.json.output:
280
- step_text = step_result.json.output['step_text']
288
+ if 'step_text' in result:
289
+ step_text = result['step_text']
281
290
  step_result.presentation.step_text = step_text
282
- # Add log line output.
283
- if 'log_lines' in step_result.json.output:
284
- for log_name, log_lines in step_result.json.output['log_lines']:
285
- step_result.presentation.logs[log_name] = log_lines.splitlines()
286
291
 
287
292
  # Set the "checkout" path for the main solution.
288
293
  # This is used by the Chromium module to figure out where to look for
289
294
  # the checkout.
290
295
  # If there is a patch failure, emit another step that said things
291
296
  # failed.
292
- if step_result.json.output.get('patch_failure'):
293
- return_code = step_result.json.output.get('patch_apply_return_code')
294
- if return_code == 3:
295
- # This is download failure, hence an infra failure.
296
- # Sadly, python.failing_step doesn't support kwargs.
297
- self.m.python.inline(
298
- 'Patch failure - Try Rebasing',
299
- ('import sys;'
300
- 'print "Patch download failed. See bot_update step for'
301
- ' details";sys.exit(1)'),
302
- infra_step=True,
303
- step_test_data=lambda: self.m.raw_io.test_api.output(
304
- 'Patch download failed. See bot_update step for details',
305
- retcode=1)
306
- )
307
- else:
308
- # This is actual patch failure.
309
- self.m.tryserver.set_patch_failure_tryjob_result()
310
- self.m.python.failing_step(
311
- 'Patch failure', 'Check the bot_update step for details')
297
+ if result.get('patch_failure'):
298
+ return_code = result.get('patch_apply_return_code')
299
+ patch_body = result.get('failed_patch_body')
300
+ try:
301
+ if return_code == 3:
302
+ # This is download failure, hence an infra failure.
303
+ with self.m.context(infra_steps=True):
304
+ self.m.python.failing_step(
305
+ 'Patch failure', 'Git reported a download failure')
306
+ else:
307
+ # This is actual patch failure.
308
+ self.m.tryserver.set_patch_failure_tryjob_result()
309
+ self.m.python.failing_step(
310
+ 'Patch failure', 'See attached log. Try rebasing?')
311
+ except self.m.step.StepFailure as e:
312
+ if patch_body:
313
+ e.result.presentation.logs['patch error'] = (
314
+ patch_body.splitlines())
315
+ raise e
312
316
 
313
317
  # bot_update actually just sets root to be the folder name of the
314
318
  # first solution.
315
- if step_result.json.output['did_run']:
316
- co_root = step_result.json.output['root']
317
- cwd = self.m.step.get_from_context('cwd', self.m.path['start_dir'])
318
- if 'checkout' not in self.m.path:
319
- self.m.path['checkout'] = cwd.join(*co_root.split(self.m.path.sep))
319
+ if result['did_run'] and 'checkout' not in self.m.path:
320
+ co_root = result['root']
321
+ cwd = self.m.context.cwd or self.m.path['start_dir']
322
+ self.m.path['checkout'] = cwd.join(*co_root.split(self.m.path.sep))
320
323
 
321
324
  return step_result
325
+
326
+ def _destination_branch(self, cfg, path):
327
+ """Returns the destination branch of a CL for the matching project
328
+ if available or HEAD otherwise.
329
+
330
+ This is a noop if there's no Gerrit CL associated with the run.
331
+ Otherwise this queries Gerrit for the correct destination branch, which
332
+ might differ from master.
333
+
334
+ Args:
335
+ cfg: The used gclient config.
336
+ path: The DEPS path of the project this prefix is for. E.g. 'src' or
337
+ 'src/v8'. The query will only be made for the project that matches
338
+ the CL's project.
339
+ Returns:
340
+ A destination branch as understood by bot_update.py if available
341
+ and if different from master, returns 'HEAD' otherwise.
342
+ """
343
+ # Bail out if this is not a gerrit issue.
344
+ if (not self.m.tryserver.is_gerrit_issue or
345
+ not self._gerrit or not self._issue):
346
+ return 'HEAD'
347
+
348
+ # Ignore other project paths than the one belonging to the CL.
349
+ if path != cfg.patch_projects.get(
350
+ self.m.properties.get('patch_project'),
351
+ (cfg.solutions[0].name, None))[0]:
352
+ return 'HEAD'
353
+
354
+ # Query Gerrit to check if a CL's destination branch differs from master.
355
+ destination_branch = self.m.gerrit.get_change_destination_branch(
356
+ host=self._gerrit,
357
+ change=self._issue,
358
+ name='get_patch_destination_branch',
359
+ )
360
+
361
+ # Only use prefix if different from bot_update.py's default.
362
+ return destination_branch if destination_branch != 'master' else 'HEAD'
363
+
364
+ def _resolve_fixed_revisions(self, bot_update_json):
365
+ """Set all fixed revisions from the first sync to their respective
366
+ got_X_revision values.
367
+
368
+ If on the first sync, a revision was requested to be HEAD, this avoids
369
+ using HEAD potentially resolving to a different revision on the second
370
+ sync. Instead, we sync explicitly to whatever was checked out the first
371
+ time.
372
+
373
+ Example (chromium trybot used with v8 patch):
374
+
375
+ First sync was called with
376
+ bot_update.py --revision src@abc --revision src/v8@HEAD
377
+ Fixed revisions are: src, src/v8
378
+ Got_revision_mapping: src->got_revision, src/v8->got_v8_revision
379
+ got_revision = abc, got_v8_revision = deadbeef
380
+ Second sync will be called with
381
+ bot_update.py --revision src@abc --revision src/v8@deadbeef
382
+
383
+ Example (chromium trybot used with chromium DEPS change, changing v8 from
384
+ "v8_before" to "v8_after"):
385
+
386
+ First sync was called with
387
+ bot_update.py --revision src@abc
388
+ Fixed revisions are: src
389
+ Got_revision_mapping: src->got_revision, src/v8->got_v8_revision
390
+ got_revision = abc, got_v8_revision = v8_after
391
+ Second sync will be called with
392
+ bot_update.py --revision src@abc
393
+ When deapplying the patch, v8 will be synced to v8_before.
394
+ """
395
+ for name in bot_update_json.get('fixed_revisions', {}):
396
+ rev_properties = self.get_project_revision_properties(name)
397
+ if (rev_properties and
398
+ bot_update_json['properties'].get(rev_properties[0])):
399
+ self.m.gclient.c.revisions[name] = str(
400
+ bot_update_json['properties'][rev_properties[0]])
401
+
402
+ # TODO(machenbach): Replace usages of this method eventually by direct calls
403
+ # to the manifest output.
404
+ def get_project_revision_properties(self, project_name, gclient_config=None):
405
+ """Returns all property names used for storing the checked-out revision of
406
+ a given project.
407
+
408
+ Args:
409
+ project_name (str): The name of a checked-out project as deps path, e.g.
410
+ src or src/v8.
411
+ gclient_config: The gclient configuration to use. If omitted, the current
412
+ gclient configuration is used.
413
+
414
+ Returns (list of str): All properties that'll hold the checked-out revision
415
+ of the given project. An empty list if no such properties exist.
416
+ """
417
+ cfg = gclient_config or self.m.gclient.c
418
+ # Sort for determinism. We might have several properties for the same
419
+ # project, e.g. got_revision and got_webrtc_revision.
420
+ rev_reverse_map = self.m.gclient.got_revision_reverse_mapping(cfg)
421
+ return sorted(
422
+ prop
423
+ for prop, project in rev_reverse_map.iteritems()
424
+ if project == project_name
425
+ )
426
+
427
+ def deapply_patch(self, bot_update_step):
428
+ """Deapplies a patch, taking care of DEPS and solution revisions properly.
429
+ """
430
+ bot_update_json = bot_update_step.json.output
431
+ # We only override first solution here to make sure that we correctly revert
432
+ # changes to DEPS file, which is particularly important for auto-rolls. It
433
+ # is also imporant that we do not assume that corresponding revision is
434
+ # stored in the 'got_revision' as some gclient configs change the default
435
+ # mapping for their own purposes.
436
+ first_solution_name = self.m.gclient.c.solutions[0].name
437
+ rev_property = self.get_project_revision_properties(first_solution_name)[0]
438
+ self.m.gclient.c.revisions[first_solution_name] = str(
439
+ bot_update_json['properties'][rev_property])
440
+ self._resolve_fixed_revisions(bot_update_json)
441
+
442
+ self.ensure_checkout(patch=False, update_presentation=False)
@@ -13,8 +13,10 @@
13
13
  "--gerrit_no_reset",
14
14
  "--gerrit_no_rebase_patch_ref"
15
15
  ],
16
- "env": {
17
- "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
16
+ "env_prefixes": {
17
+ "PATH": [
18
+ "RECIPE_PACKAGE_REPO[depot_tools]"
19
+ ]
18
20
  },
19
21
  "infra_step": true,
20
22
  "name": "apply_gerrit"
@@ -0,0 +1,82 @@
1
+ [
2
+ {
3
+ "cmd": [
4
+ "python",
5
+ "-u",
6
+ "RECIPE_MODULE[depot_tools::bot_update]/resources/bot_update.py",
7
+ "--spec-path",
8
+ "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]",
9
+ "--patch_root",
10
+ "src",
11
+ "--revision_mapping_file",
12
+ "{\"got_angle_revision\": \"src/third_party/angle\", \"got_cr_revision\": \"src\", \"got_revision\": \"src\", \"got_v8_revision\": \"src/v8\"}",
13
+ "--git-cache-dir",
14
+ "[GIT_CACHE]",
15
+ "--cleanup-dir",
16
+ "[CLEANUP]/bot_update",
17
+ "--output_json",
18
+ "/path/to/tmp/json",
19
+ "--revision",
20
+ "src@abc",
21
+ "--disable-syntax-validation"
22
+ ],
23
+ "env_prefixes": {
24
+ "PATH": [
25
+ "RECIPE_PACKAGE_REPO[depot_tools]"
26
+ ]
27
+ },
28
+ "infra_step": true,
29
+ "name": "bot_update (without patch)",
30
+ "~followup_annotations": [
31
+ "@@@STEP_TEXT@Some step text@@@",
32
+ "@@@STEP_LOG_LINE@json.output@{@@@",
33
+ "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
34
+ "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
35
+ "@@@STEP_LOG_LINE@json.output@ \"src\": \"abc\"@@@",
36
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
37
+ "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@",
38
+ "@@@STEP_LOG_LINE@json.output@ \"src\": {@@@",
39
+ "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src.git\", @@@",
40
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
41
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
42
+ "@@@STEP_LOG_LINE@json.output@ \"src/third_party/angle\": {@@@",
43
+ "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src/third_party/angle.git\", @@@",
44
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"fac9503c46405f77757b9a728eb85b8d7bc6080c\"@@@",
45
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
46
+ "@@@STEP_LOG_LINE@json.output@ \"src/v8\": {@@@",
47
+ "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src/v8.git\", @@@",
48
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"801ada225ddc271c132c3a35f03975671d43e399\"@@@",
49
+ "@@@STEP_LOG_LINE@json.output@ }@@@",
50
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
51
+ "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
52
+ "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@",
53
+ "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
54
+ "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision\": \"fac9503c46405f77757b9a728eb85b8d7bc6080c\", @@@",
55
+ "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision_cp\": \"refs/heads/master@{#297276}\", @@@",
56
+ "@@@STEP_LOG_LINE@json.output@ \"got_cr_revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\", @@@",
57
+ "@@@STEP_LOG_LINE@json.output@ \"got_cr_revision_cp\": \"refs/heads/master@{#170242}\", @@@",
58
+ "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\", @@@",
59
+ "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#170242}\", @@@",
60
+ "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision\": \"801ada225ddc271c132c3a35f03975671d43e399\", @@@",
61
+ "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision_cp\": \"refs/heads/master@{#43426}\"@@@",
62
+ "@@@STEP_LOG_LINE@json.output@ }, @@@",
63
+ "@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@",
64
+ "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
65
+ "@@@STEP_LOG_LINE@json.output@}@@@",
66
+ "@@@STEP_LOG_END@json.output@@@",
67
+ "@@@SET_BUILD_PROPERTY@got_angle_revision@\"fac9503c46405f77757b9a728eb85b8d7bc6080c\"@@@",
68
+ "@@@SET_BUILD_PROPERTY@got_angle_revision_cp@\"refs/heads/master@{#297276}\"@@@",
69
+ "@@@SET_BUILD_PROPERTY@got_cr_revision@\"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
70
+ "@@@SET_BUILD_PROPERTY@got_cr_revision_cp@\"refs/heads/master@{#170242}\"@@@",
71
+ "@@@SET_BUILD_PROPERTY@got_revision@\"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
72
+ "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#170242}\"@@@",
73
+ "@@@SET_BUILD_PROPERTY@got_v8_revision@\"801ada225ddc271c132c3a35f03975671d43e399\"@@@",
74
+ "@@@SET_BUILD_PROPERTY@got_v8_revision_cp@\"refs/heads/master@{#43426}\"@@@"
75
+ ]
76
+ },
77
+ {
78
+ "name": "$result",
79
+ "recipe_result": null,
80
+ "status_code": 0
81
+ }
82
+ ]