libv8 5.6.326.50.0beta1 → 5.7.492.65.0beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/README.md +1 -0
  4. data/Rakefile +8 -1
  5. data/ext/libv8/arch.rb +5 -5
  6. data/ext/libv8/builder.rb +9 -5
  7. data/lib/libv8/version.rb +1 -1
  8. data/patches/0001-Build-a-standalone-static-library.patch +2 -2
  9. data/patches/0002-Don-t-compile-unnecessary-stuff.patch +11 -7
  10. data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +2 -2
  11. data/patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch +2 -2
  12. data/vendor/depot_tools/.gitignore +1 -0
  13. data/vendor/depot_tools/cbuildbot +1 -1
  14. data/vendor/depot_tools/chrome_set_ver +1 -1
  15. data/vendor/depot_tools/cipd_client_version +1 -1
  16. data/vendor/depot_tools/cit.py +1 -1
  17. data/vendor/depot_tools/cpplint.py +2 -1
  18. data/vendor/depot_tools/cros +1 -1
  19. data/vendor/depot_tools/cros_sdk +1 -1
  20. data/vendor/depot_tools/gclient.py +3 -2
  21. data/vendor/depot_tools/gerrit_util.py +99 -55
  22. data/vendor/depot_tools/git_cache.py +22 -6
  23. data/vendor/depot_tools/git_cl.py +532 -92
  24. data/vendor/depot_tools/git_common.py +3 -1
  25. data/vendor/depot_tools/infra/config/recipes.cfg +21 -8
  26. data/vendor/depot_tools/man/html/depot_tools.html +9 -1
  27. data/vendor/depot_tools/man/html/git-cl.html +1025 -0
  28. data/vendor/depot_tools/man/html/git-squash-branch.html +2 -2
  29. data/vendor/depot_tools/man/html/git-upstream-diff.html +1 -1
  30. data/vendor/depot_tools/man/man1/git-cl.1 +193 -0
  31. data/vendor/depot_tools/man/man1/git-squash-branch.1 +4 -4
  32. data/vendor/depot_tools/man/man1/git-upstream-diff.1 +3 -3
  33. data/vendor/depot_tools/man/man7/depot_tools.7 +8 -3
  34. data/vendor/depot_tools/man/src/_git-cl_desc.helper.txt +1 -0
  35. data/vendor/depot_tools/man/src/git-cl.txt +116 -0
  36. data/vendor/depot_tools/my_activity.py +226 -50
  37. data/vendor/depot_tools/owners.py +50 -25
  38. data/vendor/depot_tools/presubmit_canned_checks.py +3 -0
  39. data/vendor/depot_tools/presubmit_support.py +19 -0
  40. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/OWNERS +0 -0
  41. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/__init__.py +0 -0
  42. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/api.py +14 -11
  43. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/apply_gerrit_ref.json +1 -0
  44. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/basic.json +1 -0
  45. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/basic_output_manifest.json +1 -0
  46. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/basic_with_branch_heads.json +1 -0
  47. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/buildbot.json +1 -0
  48. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/clobber.json +1 -0
  49. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +1 -0
  50. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/gerrit_no_reset.json +1 -0
  51. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/no_shallow.json +1 -0
  52. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/reset_root_solution_revision.json +1 -0
  53. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange.json +1 -0
  54. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2.json +0 -0
  55. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2_buildbot.json +1 -0
  56. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2_json.json +1 -0
  57. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2_json_win.json +1 -0
  58. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob.json +1 -0
  59. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_fail.json +1 -0
  60. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_fail_patch.json +1 -0
  61. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_fail_patch_download.json +2 -0
  62. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_gerrit_angle.json +1 -0
  63. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +1 -0
  64. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_v8.json +1 -0
  65. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_v8_head_by_default.json +1 -0
  66. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.py +0 -0
  67. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/resources/__init__.py +0 -0
  68. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/resources/apply_gerrit.py +0 -0
  69. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/resources/bot_update.py +2 -2
  70. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/test_api.py +0 -0
  71. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/__init__.py +0 -0
  72. data/vendor/depot_tools/recipes/recipe_modules/cipd/api.py +412 -0
  73. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/basic.json +8 -2
  74. data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/basic_pkg.json +405 -0
  75. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/describe-failed.json +0 -0
  76. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/describe-many-instances.json +8 -2
  77. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/mac64.json +8 -2
  78. data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/pkg_bad_file.json +289 -0
  79. data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/pkg_bad_mode.json +289 -0
  80. data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/pkg_bad_verfile.json +289 -0
  81. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/win64.json +21 -15
  82. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.py +101 -20
  83. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/test_api.py +0 -0
  84. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/__init__.py +0 -0
  85. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/api.py +0 -0
  86. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/example.expected/basic.json +0 -0
  87. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/example.expected/win.json +0 -0
  88. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/example.py +0 -0
  89. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/__init__.py +0 -0
  90. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/api.py +12 -10
  91. data/vendor/depot_tools/recipes/recipe_modules/gclient/bundle_extra_paths.txt +4 -0
  92. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/config.py +0 -0
  93. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/basic.json +9 -0
  94. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/buildbot.json +9 -0
  95. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/revision.json +9 -0
  96. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/tryserver.json +9 -0
  97. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.py +0 -0
  98. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/test_api.py +0 -0
  99. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/__init__.py +1 -0
  100. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/api.py +11 -10
  101. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/example.expected/basic.json +2 -0
  102. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/example.py +0 -0
  103. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/test_api.py +0 -0
  104. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/__init__.py +0 -0
  105. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/api.py +8 -7
  106. data/vendor/depot_tools/recipes/recipe_modules/git/bundle_extra_paths.txt +28 -0
  107. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic.json +17 -0
  108. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_branch.json +17 -0
  109. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_file_name.json +17 -0
  110. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_hash.json +17 -0
  111. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_ref.json +17 -0
  112. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_submodule_update_force.json +17 -0
  113. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/can_fail_build.json +12 -0
  114. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/cannot_fail_build.json +17 -0
  115. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/cat-file_test.json +19 -0
  116. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_delta.json +19 -0
  117. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_failed.json +17 -0
  118. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_with_bad_output.json +17 -0
  119. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_with_bad_output_fails_build.json +7 -0
  120. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/curl_trace_file.json +17 -0
  121. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/git-cache-checkout.json +20 -0
  122. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/platform_win.json +18 -0
  123. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/rebase_failed.json +17 -0
  124. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/remote_not_origin.json +17 -0
  125. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/set_got_revision.json +17 -0
  126. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.py +0 -0
  127. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/resources/git_setup.py +0 -0
  128. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/test_api.py +0 -0
  129. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/__init__.py +0 -0
  130. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/api.py +0 -0
  131. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/config.py +0 -0
  132. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/example.expected/basic.json +0 -0
  133. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/example.py +0 -0
  134. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/__init__.py +0 -0
  135. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/api.py +0 -0
  136. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/example.expected/basic.json +11 -0
  137. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/example.py +0 -0
  138. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/resources/gsutil_smart_retry.py +0 -0
  139. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/__init__.py +0 -0
  140. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/api.py +0 -0
  141. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/example.expected/basic.json +1 -2
  142. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +15 -0
  143. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +15 -0
  144. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +15 -0
  145. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_linux.json +15 -0
  146. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_mac.json +15 -0
  147. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_win.json +15 -0
  148. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +15 -0
  149. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +15 -0
  150. data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +15 -0
  151. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/example.py +2 -3
  152. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/path_config.py +5 -3
  153. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/__init__.py +1 -0
  154. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/api.py +7 -6
  155. data/vendor/depot_tools/recipes/recipe_modules/presubmit/bundle_extra_paths.txt +30 -0
  156. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/example.expected/basic.json +0 -0
  157. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/example.py +0 -0
  158. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/__init__.py +0 -0
  159. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/api.py +0 -0
  160. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/example.expected/basic.json +0 -0
  161. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/example.expected/buildbot.json +0 -0
  162. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/example.py +0 -0
  163. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/__init__.py +0 -0
  164. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/api.py +0 -0
  165. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/basic_tags.json +0 -0
  166. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/set_failure_hash_with_no_steps.json +0 -0
  167. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_gerrit_patch.json +1 -0
  168. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_gerrit_patch_deprecated.json +1 -0
  169. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_git_patch.json +4 -0
  170. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_git_patch_luci.json +0 -0
  171. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_rietveld_patch.json +4 -2
  172. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_rietveld_patch_new.json +4 -2
  173. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_wrong_patch.json +2 -0
  174. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_wrong_patch_new.json +2 -0
  175. data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.py +0 -0
  176. data/vendor/depot_tools/{recipes.py → recipes/recipes.py} +57 -81
  177. data/vendor/depot_tools/roll_dep.py +13 -5
  178. data/vendor/depot_tools/scm.py +7 -0
  179. data/vendor/depot_tools/third_party/upload.py +4 -0
  180. data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +3 -39
  181. data/vendor/depot_tools/win_toolchain/package_from_installed.py +159 -114
  182. metadata +144 -133
  183. data/vendor/depot_tools/recipe_modules/cipd/api.py +0 -219
  184. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +0 -16
  185. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +0 -16
  186. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +0 -16
  187. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +0 -16
  188. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +0 -16
  189. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +0 -16
  190. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json +0 -16
  191. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json +0 -16
  192. data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json +0 -16
@@ -3,8 +3,7 @@
3
3
  "cmd": [],
4
4
  "name": "show cache path",
5
5
  "~followup_annotations": [
6
- "@@@STEP_LOG_LINE@result@[CACHE]@@@",
7
- "@@@STEP_LOG_LINE@result@[CACHE]/git@@@",
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'start_dir': ('/', 'b', 'FakeTestingCWD'), 'cache': ('/', 'b', 'c'), 'tmp_base': ('/',)}@@@",
8
7
  "@@@STEP_LOG_END@result@@@"
9
8
  ]
10
9
  },
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "cmd": [],
4
+ "name": "show cache path",
5
+ "~followup_annotations": [
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'depot_tools': ('depot_tools',), 'build_internal': ('build_internal',), 'cache': ('build', 'slave', 'cache'), 'goma_cache': ('build', 'slave', 'goma_cache'), 'start_dir': ('/', 'b', 'FakeTestingCWD'), 'build': ('build',), 'git_cache': ('build', 'slave', 'cache_dir'), 'root': (), 'tmp_base': ('/',)}@@@",
7
+ "@@@STEP_LOG_END@result@@@"
8
+ ]
9
+ },
10
+ {
11
+ "name": "$result",
12
+ "recipe_result": null,
13
+ "status_code": 0
14
+ }
15
+ ]
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "cmd": [],
4
+ "name": "show cache path",
5
+ "~followup_annotations": [
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'depot_tools': ('depot_tools',), 'build_internal': ('build_internal',), 'cache': ('build', 'slave', 'cache'), 'goma_cache': ('build', 'slave', 'goma_cache'), 'start_dir': ('/', 'b', 'FakeTestingCWD'), 'build': ('build',), 'git_cache': ('build', 'slave', 'cache_dir'), 'root': (), 'tmp_base': ('/',)}@@@",
7
+ "@@@STEP_LOG_END@result@@@"
8
+ ]
9
+ },
10
+ {
11
+ "name": "$result",
12
+ "recipe_result": null,
13
+ "status_code": 0
14
+ }
15
+ ]
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "cmd": [],
4
+ "name": "show cache path",
5
+ "~followup_annotations": [
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'depot_tools': ('depot_tools',), 'build_internal': ('build_internal',), 'cache': ('build', 'slave', 'cache'), 'goma_cache': ('build', 'slave', 'goma_cache'), 'start_dir': ('/', 'b', 'FakeTestingCWD'), 'build': ('build',), 'git_cache': ('build', 'slave', 'cache_dir'), 'root': (), 'tmp_base': ('/',)}@@@",
7
+ "@@@STEP_LOG_END@result@@@"
8
+ ]
9
+ },
10
+ {
11
+ "name": "$result",
12
+ "recipe_result": null,
13
+ "status_code": 0
14
+ }
15
+ ]
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "cmd": [],
4
+ "name": "show cache path",
5
+ "~followup_annotations": [
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'builder_cache': ('/', 'b', 'c', 'builder'), 'cache': ('/', 'b', 'c'), 'goma_cache': ('/', 'b', 'c', 'goma'), 'start_dir': ('/', 'b', 'FakeTestingCWD'), 'git_cache': ('/', 'b', 'c', 'git'), 'tmp_base': ('/',)}@@@",
7
+ "@@@STEP_LOG_END@result@@@"
8
+ ]
9
+ },
10
+ {
11
+ "name": "$result",
12
+ "recipe_result": null,
13
+ "status_code": 0
14
+ }
15
+ ]
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "cmd": [],
4
+ "name": "show cache path",
5
+ "~followup_annotations": [
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'builder_cache': ('/', 'b', 'c', 'builder'), 'cache': ('/', 'b', 'c'), 'goma_cache': ('/', 'b', 'c', 'goma'), 'start_dir': ('/', 'b', 'FakeTestingCWD'), 'git_cache': ('/', 'b', 'c', 'git'), 'tmp_base': ('/',)}@@@",
7
+ "@@@STEP_LOG_END@result@@@"
8
+ ]
9
+ },
10
+ {
11
+ "name": "$result",
12
+ "recipe_result": null,
13
+ "status_code": 0
14
+ }
15
+ ]
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "cmd": [],
4
+ "name": "show cache path",
5
+ "~followup_annotations": [
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'builder_cache': ('/', 'b', 'c', 'builder'), 'cache': ('/', 'b', 'c'), 'goma_cache': ('/', 'b', 'c', 'goma'), 'start_dir': ('/', 'b', 'FakeTestingCWD'), 'git_cache': ('/', 'b', 'c', 'git'), 'tmp_base': ('/',)}@@@",
7
+ "@@@STEP_LOG_END@result@@@"
8
+ ]
9
+ },
10
+ {
11
+ "name": "$result",
12
+ "recipe_result": null,
13
+ "status_code": 0
14
+ }
15
+ ]
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "cmd": [],
4
+ "name": "show cache path",
5
+ "~followup_annotations": [
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'builder_cache': ('/', 'b', 'c', 'b'), 'goma_deps_cache': ('/', 'b', 'c', 'goma_deps_cache'), 'cache': ('/', 'b', 'c'), 'goma_cache': ('/', 'b', 'c', 'goma_cache'), 'start_dir': ('/', 'b', 'FakeTestingCWD'), 'git_cache': ('/', 'b', 'c', 'git_cache'), 'root': ('/', 'b', 'FakeTestingCWD'), 'tmp_base': ('/',)}@@@",
7
+ "@@@STEP_LOG_END@result@@@"
8
+ ]
9
+ },
10
+ {
11
+ "name": "$result",
12
+ "recipe_result": null,
13
+ "status_code": 0
14
+ }
15
+ ]
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "cmd": [],
4
+ "name": "show cache path",
5
+ "~followup_annotations": [
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'builder_cache': ('/', 'b', 'c', 'b'), 'goma_deps_cache': ('/', 'b', 'c', 'goma_deps_cache'), 'cache': ('/', 'b', 'c'), 'goma_cache': ('/', 'b', 'c', 'goma_cache'), 'start_dir': ('/', 'b', 'FakeTestingCWD'), 'git_cache': ('/', 'b', 'c', 'git_cache'), 'root': ('/', 'b', 'FakeTestingCWD'), 'tmp_base': ('/',)}@@@",
7
+ "@@@STEP_LOG_END@result@@@"
8
+ ]
9
+ },
10
+ {
11
+ "name": "$result",
12
+ "recipe_result": null,
13
+ "status_code": 0
14
+ }
15
+ ]
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "cmd": [],
4
+ "name": "show cache path",
5
+ "~followup_annotations": [
6
+ "@@@STEP_LOG_LINE@result@base_paths: {'builder_cache': ('/', 'b', 'c', 'b'), 'goma_deps_cache': ('/', 'b', 'c', 'goma_deps_cache'), 'cache': ('/', 'b', 'c'), 'goma_cache': ('/', 'b', 'c', 'goma_cache'), 'start_dir': ('/', 'b', 'FakeTestingCWD'), 'git_cache': ('/', 'b', 'c', 'git_cache'), 'root': ('/', 'b', 'FakeTestingCWD'), 'tmp_base': ('/',)}@@@",
7
+ "@@@STEP_LOG_END@result@@@"
8
+ ]
9
+ },
10
+ {
11
+ "name": "$result",
12
+ "recipe_result": null,
13
+ "status_code": 0
14
+ }
15
+ ]
@@ -16,8 +16,7 @@ DEPS = [
16
16
  def RunSteps(api):
17
17
  api.step('show cache path', [])
18
18
  api.step.active_result.presentation.logs['result'] = [
19
- str(api.path['cache']),
20
- str(api.infra_paths.default_git_cache_dir),
19
+ 'base_paths: %r' % (api.path.c.base_paths,),
21
20
  ]
22
21
 
23
22
 
@@ -25,7 +24,7 @@ def GenTests(api):
25
24
  yield api.test('basic')
26
25
 
27
26
  for platform in ('linux', 'mac', 'win'):
28
- for path_config in ('buildbot', 'kitchen', 'swarmbucket'):
27
+ for path_config in ('buildbot', 'kitchen', 'generic'):
29
28
  yield (
30
29
  api.test('paths_%s_%s' % (path_config, platform)) +
31
30
  api.platform.name(platform) +
@@ -51,6 +51,8 @@ def infra_kitchen(c):
51
51
  c.base_paths[path] = c.base_paths['cache'] + (path,)
52
52
 
53
53
 
54
- @CONFIG_CTX(includes=['infra_buildbot'])
55
- def infra_swarmbucket(c):
56
- c.base_paths['git_cache'] = c.START_DIR + ('git_cache',)
54
+ @CONFIG_CTX()
55
+ def infra_generic(c):
56
+ c.base_paths['builder_cache'] = c.base_paths['cache'] + ('builder',)
57
+ c.base_paths['git_cache'] = c.base_paths['cache'] + ('git',)
58
+ c.base_paths['goma_cache'] = c.base_paths['cache'] + ('goma',)
@@ -1,4 +1,5 @@
1
1
  DEPS = [
2
2
  'recipe_engine/path',
3
3
  'recipe_engine/python',
4
+ 'recipe_engine/step',
4
5
  ]
@@ -14,10 +14,11 @@ class PresubmitApi(recipe_api.RecipeApi):
14
14
 
15
15
  name = kwargs.pop('name', 'presubmit')
16
16
 
17
- kwargs.setdefault('env', {})
18
- kwargs['env'].setdefault('PATH', '%(PATH)s')
19
- kwargs['env']['PATH'] = self.m.path.pathsep.join([
20
- kwargs['env']['PATH'], str(self._module.PACKAGE_REPO_ROOT)])
17
+ env = self.m.step.get_from_context('env', {})
18
+ env.setdefault('PATH', '%(PATH)s')
19
+ env['PATH'] = self.m.path.pathsep.join([
20
+ env['PATH'], str(self._module.PACKAGE_REPO_ROOT)])
21
21
 
22
- return self.m.python(
23
- name, self.presubmit_support_path, list(args), **kwargs)
22
+ with self.m.step.context({'env': env}):
23
+ return self.m.python(
24
+ name, self.presubmit_support_path, list(args), **kwargs)
@@ -0,0 +1,30 @@
1
+ //auth.py
2
+ //checkout.py
3
+ //clang_format.py
4
+ //dart_format.py
5
+ //download_from_google_storage.py
6
+ //fix_encoding.py
7
+ //gclient_utils.py
8
+ //gerrit_util.py
9
+ //git_cache.py
10
+ //git_cl.py
11
+ //git_common.py
12
+ //gn.py
13
+ //gsutil.py
14
+ //owners.py
15
+ //owners_finder.py
16
+ //patch.py
17
+ //presubmit_canned_checks.py
18
+ //presubmit_canned_checks.py
19
+ //presubmit_support.py
20
+ //rietveld.py
21
+ //scm.py
22
+ //setup_color.py
23
+ //subcommand.py
24
+ //subprocess2.py
25
+ //third_party/__init__.py
26
+ //third_party/colorama/
27
+ //third_party/httplib2/
28
+ //third_party/oauth2client/
29
+ //third_party/upload.py
30
+ //watchlists.py
@@ -7,6 +7,7 @@
7
7
  "--name-only"
8
8
  ],
9
9
  "cwd": "[START_DIR]",
10
+ "infra_step": true,
10
11
  "name": "git diff to analyze patch",
11
12
  "stdout": "/path/to/tmp/",
12
13
  "~followup_annotations": [
@@ -7,6 +7,7 @@
7
7
  "--name-only"
8
8
  ],
9
9
  "cwd": "[START_DIR]",
10
+ "infra_step": true,
10
11
  "name": "git diff to analyze patch",
11
12
  "stdout": "/path/to/tmp/",
12
13
  "~followup_annotations": [
@@ -19,6 +19,7 @@
19
19
  "johndoe#123.diff"
20
20
  ],
21
21
  "cwd": "[TMP_BASE]/patch_tmp_1",
22
+ "infra_step": true,
22
23
  "name": "patch fetch"
23
24
  },
24
25
  {
@@ -30,6 +31,7 @@
30
31
  "-x"
31
32
  ],
32
33
  "cwd": "[TMP_BASE]/patch_tmp_1",
34
+ "infra_step": true,
33
35
  "name": "patch clean"
34
36
  },
35
37
  {
@@ -40,6 +42,7 @@
40
42
  "FETCH_HEAD"
41
43
  ],
42
44
  "cwd": "[TMP_BASE]/patch_tmp_1",
45
+ "infra_step": true,
43
46
  "name": "patch git checkout"
44
47
  },
45
48
  {
@@ -73,6 +76,7 @@
73
76
  "--name-only"
74
77
  ],
75
78
  "cwd": "[START_DIR]/v8",
79
+ "infra_step": true,
76
80
  "name": "git diff to analyze patch",
77
81
  "stdout": "/path/to/tmp/",
78
82
  "~followup_annotations": [
@@ -41,8 +41,9 @@
41
41
  "name": "parse description",
42
42
  "stdin": "foobar",
43
43
  "~followup_annotations": [
44
- "@@@STEP_LOG_LINE@json.output (invalid)@null@@@",
45
- "@@@STEP_LOG_END@json.output (invalid)@@@"
44
+ "@@@STEP_LOG_END@json.output (invalid)@@@",
45
+ "@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@@@",
46
+ "@@@STEP_LOG_END@json.output (exception)@@@"
46
47
  ]
47
48
  },
48
49
  {
@@ -53,6 +54,7 @@
53
54
  "--name-only"
54
55
  ],
55
56
  "cwd": "[START_DIR]",
57
+ "infra_step": true,
56
58
  "name": "git diff to analyze patch",
57
59
  "stdout": "/path/to/tmp/",
58
60
  "~followup_annotations": [
@@ -41,8 +41,9 @@
41
41
  "name": "parse description",
42
42
  "stdin": "foobar",
43
43
  "~followup_annotations": [
44
- "@@@STEP_LOG_LINE@json.output (invalid)@null@@@",
45
- "@@@STEP_LOG_END@json.output (invalid)@@@"
44
+ "@@@STEP_LOG_END@json.output (invalid)@@@",
45
+ "@@@STEP_LOG_LINE@json.output (exception)@No JSON object could be decoded@@@",
46
+ "@@@STEP_LOG_END@json.output (exception)@@@"
46
47
  ]
47
48
  },
48
49
  {
@@ -53,6 +54,7 @@
53
54
  "--name-only"
54
55
  ],
55
56
  "cwd": "[START_DIR]/sub/project",
57
+ "infra_step": true,
56
58
  "name": "git diff to analyze patch",
57
59
  "stdout": "/path/to/tmp/",
58
60
  "~followup_annotations": [
@@ -7,6 +7,7 @@
7
7
  "--verbose"
8
8
  ],
9
9
  "cwd": "RECIPE_PACKAGE_REPO[depot_tools]",
10
+ "infra_step": true,
10
11
  "name": "ensure git tooling on windows",
11
12
  "timeout": 300
12
13
  },
@@ -18,6 +19,7 @@
18
19
  "--name-only"
19
20
  ],
20
21
  "cwd": "[START_DIR]",
22
+ "infra_step": true,
21
23
  "name": "git diff to analyze patch",
22
24
  "stdout": "/path/to/tmp/",
23
25
  "~followup_annotations": [
@@ -7,6 +7,7 @@
7
7
  "--verbose"
8
8
  ],
9
9
  "cwd": "RECIPE_PACKAGE_REPO[depot_tools]",
10
+ "infra_step": true,
10
11
  "name": "ensure git tooling on windows",
11
12
  "timeout": 300
12
13
  },
@@ -18,6 +19,7 @@
18
19
  "--name-only"
19
20
  ],
20
21
  "cwd": "[START_DIR]\\sub\\project",
22
+ "infra_step": true,
21
23
  "name": "git diff to analyze patch",
22
24
  "stdout": "/path/to/tmp/",
23
25
  "~followup_annotations": [
@@ -17,9 +17,14 @@ PER-REPO CONFIGURATION section to look like this one.
17
17
 
18
18
  import os
19
19
 
20
+ # IMPORTANT: Do not alter the header or footer line for the
21
+ # "PER-REPO CONFIGURATION" section below, or the autoroller will not be able
22
+ # to automatically update this file! All lines between the header and footer
23
+ # lines will be retained verbatim by the autoroller.
24
+
20
25
  #### PER-REPO CONFIGURATION (editable) ####
21
26
  # The root of the repository relative to the directory of this file.
22
- REPO_ROOT = ''
27
+ REPO_ROOT = os.path.join(os.pardir)
23
28
  # The path of the recipes.cfg file relative to the root of the repository.
24
29
  RECIPES_CFG = os.path.join('infra', 'config', 'recipes.cfg')
25
30
  #### END PER-REPO CONFIGURATION ####
@@ -27,77 +32,53 @@ RECIPES_CFG = os.path.join('infra', 'config', 'recipes.cfg')
27
32
  BOOTSTRAP_VERSION = 1
28
33
 
29
34
  import argparse
30
- import ast
35
+ import json
31
36
  import logging
32
37
  import random
33
- import re
34
38
  import subprocess
35
39
  import sys
36
40
  import time
37
- import traceback
38
-
41
+ import urlparse
39
42
 
40
- def parse_protobuf(fh):
41
- """Parse the protobuf text format just well enough to understand recipes.cfg.
43
+ from cStringIO import StringIO
42
44
 
43
- We don't use the protobuf library because we want to be as self-contained
44
- as possible in this bootstrap, so it can be simply vendored into a client
45
- repo.
46
45
 
47
- We assume all fields are repeated since we don't have a proto spec to work
48
- with.
46
+ def parse(repo_root, recipes_cfg_path):
47
+ """Parse is transitional code which parses a recipes.cfg file as either jsonpb
48
+ or as textpb.
49
49
 
50
50
  Args:
51
- fh: a filehandle containing the text format protobuf.
52
- Returns:
53
- A recursive dictionary of lists.
51
+ repo_root (str) - native path to the root of the repo we're trying to run
52
+ recipes for.
53
+ recipes_cfg_path (str) - native path to the recipes.cfg file to process.
54
+
55
+ Returns (as tuple):
56
+ engine_url (str) - the url to the engine repo we want to use.
57
+ engine_revision (str) - the git revision for the engine to get.
58
+ engine_subpath (str) - the subdirectory in the engine repo we should use to
59
+ find it's recipes.py entrypoint. This is here for completeness, but will
60
+ essentially always be empty. It would be used if the recipes-py repo was
61
+ merged as a subdirectory of some other repo and you depended on that
62
+ subdirectory.
63
+ recipes_path (str) - native path to where the recipes live inside of the
64
+ current repo (i.e. the folder containing `recipes/` and/or
65
+ `recipe_modules`)
54
66
  """
55
- def parse_atom(field, text):
56
- if text == 'true':
57
- return True
58
- if text == 'false':
59
- return False
60
-
61
- # repo_type is an enum. Since it does not have quotes,
62
- # invoking literal_eval would fail.
63
- if field == 'repo_type':
64
- return text
65
-
66
- return ast.literal_eval(text)
67
-
68
- ret = {}
69
- for line in fh:
70
- line = line.strip()
71
- m = re.match(r'(\w+)\s*:\s*(.*)', line)
72
- if m:
73
- ret.setdefault(m.group(1), []).append(parse_atom(m.group(1), m.group(2)))
74
- continue
75
-
76
- m = re.match(r'(\w+)\s*{', line)
77
- if m:
78
- subparse = parse_protobuf(fh)
79
- ret.setdefault(m.group(1), []).append(subparse)
80
- continue
81
-
82
- if line == '}':
83
- return ret
84
- if line == '':
85
- continue
86
-
87
- raise ValueError('Could not understand line: <%s>' % line)
88
-
89
- return ret
90
-
91
-
92
- def get_unique(things):
93
- if len(things) == 1:
94
- return things[0]
95
- elif len(things) == 0:
96
- raise ValueError("Expected to get one thing, but dinna get none.")
97
- else:
98
- logging.warn('Expected to get one thing, but got a bunch: %s\n%s' %
99
- (things, traceback.format_stack()))
100
- return things[0]
67
+ with open(recipes_cfg_path, 'rU') as fh:
68
+ pb = json.load(fh)
69
+
70
+ engine = next(
71
+ (d for d in pb['deps'] if d['project_id'] == 'recipe_engine'), None)
72
+ if engine is None:
73
+ raise ValueError('could not find recipe_engine dep in %r'
74
+ % recipes_cfg_path)
75
+ engine_url = engine['url']
76
+ engine_revision = engine.get('revision', '')
77
+ engine_subpath = engine.get('path_override', '')
78
+ recipes_path = pb.get('recipes_path', '')
79
+
80
+ recipes_path = os.path.join(repo_root, recipes_path.replace('/', os.path.sep))
81
+ return engine_url, engine_revision, engine_subpath, recipes_path
101
82
 
102
83
 
103
84
  def _subprocess_call(argv, **kwargs):
@@ -146,36 +127,31 @@ def main():
146
127
  os.path.join(os.path.dirname(__file__), REPO_ROOT))
147
128
  recipes_cfg_path = os.path.join(repo_root, RECIPES_CFG)
148
129
 
149
- with open(recipes_cfg_path, 'rU') as fh:
150
- protobuf = parse_protobuf(fh)
151
-
152
- engine_buf = get_unique([
153
- b for b in protobuf['deps'] if b.get('project_id') == ['recipe_engine'] ])
154
- engine_url = get_unique(engine_buf['url'])
155
- engine_revision = get_unique(engine_buf['revision'])
156
- engine_subpath = (get_unique(engine_buf.get('path_override', ['']))
157
- .replace('/', os.path.sep))
158
-
159
- recipes_path = os.path.join(repo_root,
160
- get_unique(protobuf['recipes_path']).replace('/', os.path.sep))
161
- deps_path = os.path.join(recipes_path, '.recipe_deps')
130
+ engine_url, engine_revision, engine_subpath, recipes_path = parse(
131
+ repo_root, recipes_cfg_path)
132
+
162
133
  engine_path = find_engine_override(sys.argv[1:])
134
+ if not engine_path and engine_url.startswith('file://'):
135
+ engine_path = urlparse.urlparse(engine_url).path
136
+
163
137
  if not engine_path:
138
+ deps_path = os.path.join(recipes_path, '.recipe_deps')
164
139
  # Ensure that we have the recipe engine cloned.
165
- engine_path = os.path.join(deps_path, 'recipe_engine')
140
+ engine_root_path = os.path.join(deps_path, 'recipe_engine')
141
+ engine_path = os.path.join(engine_root_path, engine_subpath)
166
142
  def ensure_engine():
167
143
  if not os.path.exists(deps_path):
168
144
  os.makedirs(deps_path)
169
- if not os.path.exists(engine_path):
170
- _subprocess_check_call([git, 'clone', engine_url, engine_path])
145
+ if not os.path.exists(engine_root_path):
146
+ _subprocess_check_call([git, 'clone', engine_url, engine_root_path])
171
147
 
172
148
  needs_fetch = _subprocess_call(
173
149
  [git, 'rev-parse', '--verify', '%s^{commit}' % engine_revision],
174
- cwd=engine_path, stdout=open(os.devnull, 'w'))
150
+ cwd=engine_root_path, stdout=open(os.devnull, 'w'))
175
151
  if needs_fetch:
176
- _subprocess_check_call([git, 'fetch'], cwd=engine_path)
152
+ _subprocess_check_call([git, 'fetch'], cwd=engine_root_path)
177
153
  _subprocess_check_call(
178
- [git, 'checkout', '--quiet', engine_revision], cwd=engine_path)
154
+ [git, 'checkout', '--quiet', engine_revision], cwd=engine_root_path)
179
155
 
180
156
  try:
181
157
  ensure_engine()
@@ -189,7 +165,7 @@ def main():
189
165
  args = ['--package', recipes_cfg_path] + sys.argv[1:]
190
166
  return _subprocess_call([
191
167
  sys.executable, '-u',
192
- os.path.join(engine_path, engine_subpath, 'recipes.py')] + args)
168
+ os.path.join(engine_path, 'recipes.py')] + args)
193
169
 
194
170
  if __name__ == '__main__':
195
171
  sys.exit(main())