libv8 6.3.292.48.1 → 6.7.288.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +10 -34
  3. data/CHANGELOG.md +16 -0
  4. data/README.md +9 -63
  5. data/Rakefile +2 -2
  6. data/ext/libv8/builder.rb +22 -87
  7. data/ext/libv8/extconf.rb +1 -1
  8. data/ext/libv8/paths.rb +5 -18
  9. data/lib/libv8/version.rb +1 -1
  10. data/spec/location_spec.rb +1 -2
  11. data/spec/spec_helper.rb +0 -1
  12. data/vendor/depot_tools/.gitattributes +1 -2
  13. data/vendor/depot_tools/OWNERS +0 -1
  14. data/vendor/depot_tools/PRESUBMIT.py +11 -6
  15. data/vendor/depot_tools/README.md +0 -1
  16. data/vendor/depot_tools/WATCHLISTS +0 -6
  17. data/vendor/depot_tools/auth.py +129 -87
  18. data/vendor/depot_tools/autoninja +11 -1
  19. data/vendor/depot_tools/autoninja.bat +7 -1
  20. data/vendor/depot_tools/autoninja.py +14 -6
  21. data/vendor/depot_tools/bootstrap/win/manifest.txt +1 -1
  22. data/vendor/depot_tools/bootstrap/win/manifest_bleeding_edge.txt +1 -1
  23. data/vendor/depot_tools/cipd +23 -2
  24. data/vendor/depot_tools/cipd.bat +2 -2
  25. data/vendor/depot_tools/cipd_client_version +1 -1
  26. data/vendor/depot_tools/cipd_manifest.txt +17 -7
  27. data/vendor/depot_tools/cit.py +7 -6
  28. data/vendor/depot_tools/cpplint.py +195 -35
  29. data/vendor/depot_tools/detect_host_arch.py +51 -0
  30. data/vendor/depot_tools/download_from_google_storage.py +85 -26
  31. data/vendor/depot_tools/fetch.py +11 -6
  32. data/vendor/depot_tools/fetch_configs/chromium.py +0 -1
  33. data/vendor/depot_tools/fetch_configs/goma_client.py +41 -0
  34. data/vendor/depot_tools/fetch_configs/infra.py +0 -1
  35. data/vendor/depot_tools/fetch_configs/infra_internal.py +0 -1
  36. data/vendor/depot_tools/gclient-new-workdir.py +4 -0
  37. data/vendor/depot_tools/gclient.py +732 -476
  38. data/vendor/depot_tools/gclient_eval.py +569 -58
  39. data/vendor/depot_tools/gclient_scm.py +258 -46
  40. data/vendor/depot_tools/gclient_utils.py +17 -1
  41. data/vendor/depot_tools/gerrit_util.py +46 -13
  42. data/vendor/depot_tools/git_cache.py +0 -2
  43. data/vendor/depot_tools/git_cl.py +176 -335
  44. data/vendor/depot_tools/git_common.py +19 -16
  45. data/vendor/depot_tools/git_footers.py +19 -5
  46. data/vendor/depot_tools/git_hyper_blame.py +9 -3
  47. data/vendor/depot_tools/git_new_branch.py +15 -3
  48. data/vendor/depot_tools/git_upstream_diff.py +7 -2
  49. data/vendor/depot_tools/gsutil.py +1 -1
  50. data/vendor/depot_tools/infra/config/cq.cfg +1 -2
  51. data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
  52. data/vendor/depot_tools/luci-auth +13 -0
  53. data/vendor/depot_tools/luci-auth.bat +8 -0
  54. data/vendor/depot_tools/man/html/depot_tools.html +0 -8
  55. data/vendor/depot_tools/man/html/git-upstream-diff.html +20 -3
  56. data/vendor/depot_tools/man/man1/git-upstream-diff.1 +27 -6
  57. data/vendor/depot_tools/man/man7/depot_tools.7 +0 -5
  58. data/vendor/depot_tools/man/man7/depot_tools_tutorial.7 +2 -2
  59. data/vendor/depot_tools/man/src/git-upstream-diff.txt +21 -3
  60. data/vendor/depot_tools/man/src/make_docs.sh +6 -0
  61. data/vendor/depot_tools/my_activity.py +283 -93
  62. data/vendor/depot_tools/owners.py +9 -4
  63. data/vendor/depot_tools/owners_finder.py +7 -3
  64. data/vendor/depot_tools/post_build_ninja_summary.py +322 -0
  65. data/vendor/depot_tools/presubmit_canned_checks.py +91 -106
  66. data/vendor/depot_tools/presubmit_support.py +219 -157
  67. data/vendor/depot_tools/prpc +13 -0
  68. data/vendor/depot_tools/prpc.bat +8 -0
  69. data/vendor/depot_tools/recipes/OWNERS +3 -1
  70. data/vendor/depot_tools/recipes/README.recipes.md +70 -111
  71. data/vendor/depot_tools/recipes/recipe_modules/bot_update/__init__.py +12 -5
  72. data/vendor/depot_tools/recipes/recipe_modules/bot_update/api.py +36 -68
  73. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json +0 -8
  74. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/{trychange_oauth2_json.json → no_apply_patch_on_gclient.json} +64 -10
  75. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/{no_shallow.json → shallow.json} +1 -1
  76. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob.json +0 -8
  77. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_empty_revision.json +0 -8
  78. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +0 -6
  79. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +0 -7
  80. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +0 -6
  81. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle_deprecated.json +44 -0
  82. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/{trychange_oauth2_buildbot.json → tryjob_gerrit_branch_heads.json} +51 -5
  83. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json +0 -8
  84. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json +48 -8
  85. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.py +19 -26
  86. data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py +193 -155
  87. data/vendor/depot_tools/recipes/recipe_modules/bot_update/test_api.py +9 -0
  88. data/vendor/depot_tools/recipes/recipe_modules/gclient/api.py +2 -7
  89. data/vendor/depot_tools/recipes/recipe_modules/gclient/config.py +31 -5
  90. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/basic.json +37 -19
  91. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/buildbot.json +37 -19
  92. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/revision.json +37 -19
  93. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/tryserver.json +37 -23
  94. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.py +4 -0
  95. data/vendor/depot_tools/recipes/recipe_modules/gerrit/api.py +40 -8
  96. data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.expected/basic.json +3 -3
  97. data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.py +6 -3
  98. data/vendor/depot_tools/recipes/recipe_modules/gitiles/OWNERS +0 -1
  99. data/vendor/depot_tools/recipes/recipe_modules/tryserver/__init__.py +0 -1
  100. data/vendor/depot_tools/recipes/recipe_modules/tryserver/api.py +7 -56
  101. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch.json +0 -1
  102. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.py +15 -16
  103. data/vendor/depot_tools/recipes/recipes.py +4 -2
  104. data/vendor/depot_tools/recipes/trigger_recipe_roller.txt +12 -0
  105. data/vendor/depot_tools/roll_dep.py +35 -37
  106. data/vendor/depot_tools/support/chromite_wrapper +1 -1
  107. data/vendor/depot_tools/third_party/logilab/astroid/README.chromium +3 -3
  108. data/vendor/depot_tools/third_party/logilab/astroid/__pkginfo__.py +2 -2
  109. data/vendor/depot_tools/third_party/logilab/astroid/astpeephole.py +86 -0
  110. data/vendor/depot_tools/third_party/logilab/astroid/bases.py +53 -66
  111. data/vendor/depot_tools/third_party/logilab/astroid/brain/py2pytest.py +31 -31
  112. data/vendor/depot_tools/third_party/logilab/astroid/brain/pynose.py +39 -16
  113. data/vendor/depot_tools/third_party/logilab/astroid/brain/pysix_moves.py +225 -189
  114. data/vendor/depot_tools/third_party/logilab/astroid/inference.py +45 -41
  115. data/vendor/depot_tools/third_party/logilab/astroid/manager.py +1 -0
  116. data/vendor/depot_tools/third_party/logilab/astroid/modutils.py +2 -2
  117. data/vendor/depot_tools/third_party/logilab/astroid/node_classes.py +3 -2
  118. data/vendor/depot_tools/third_party/logilab/astroid/nodes.py +1 -0
  119. data/vendor/depot_tools/third_party/logilab/astroid/protocols.py +57 -3
  120. data/vendor/depot_tools/third_party/logilab/astroid/raw_building.py +1 -1
  121. data/vendor/depot_tools/third_party/logilab/astroid/rebuilder.py +21 -1
  122. data/vendor/depot_tools/third_party/logilab/astroid/scoped_nodes.py +58 -33
  123. data/vendor/depot_tools/third_party/pylint/README.chromium +2 -2
  124. data/vendor/depot_tools/third_party/pylint/__pkginfo__.py +3 -3
  125. data/vendor/depot_tools/third_party/pylint/checkers/base.py +6 -18
  126. data/vendor/depot_tools/third_party/pylint/checkers/classes.py +64 -63
  127. data/vendor/depot_tools/third_party/pylint/checkers/design_analysis.py +25 -57
  128. data/vendor/depot_tools/third_party/pylint/checkers/format.py +14 -10
  129. data/vendor/depot_tools/third_party/pylint/checkers/python3.py +142 -37
  130. data/vendor/depot_tools/third_party/pylint/checkers/spelling.py +10 -1
  131. data/vendor/depot_tools/third_party/pylint/checkers/stdlib.py +50 -7
  132. data/vendor/depot_tools/third_party/pylint/checkers/strings.py +1 -1
  133. data/vendor/depot_tools/third_party/pylint/epylint.py +2 -1
  134. data/vendor/depot_tools/third_party/pylint/gui.py +1 -1
  135. data/vendor/depot_tools/third_party/pylint/lint.py +88 -23
  136. data/vendor/depot_tools/third_party/pylint/reporters/html.py +37 -5
  137. data/vendor/depot_tools/third_party/pylint/testutils.py +1 -1
  138. data/vendor/depot_tools/third_party/pylint/utils.py +5 -0
  139. data/vendor/depot_tools/vpython +31 -1
  140. data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +35 -2
  141. data/vendor/depot_tools/win_toolchain/package_from_installed.py +0 -15
  142. data/vendor/depot_tools/yapf +17 -0
  143. data/vendor/depot_tools/{apply_issue.bat → yapf.bat} +2 -2
  144. metadata +16 -58
  145. data/ext/libv8/compiler.rb +0 -39
  146. data/ext/libv8/compiler/apple_llvm.rb +0 -22
  147. data/ext/libv8/compiler/clang.rb +0 -22
  148. data/ext/libv8/compiler/gcc.rb +0 -22
  149. data/ext/libv8/compiler/generic_compiler.rb +0 -66
  150. data/ext/libv8/make.rb +0 -13
  151. data/ext/libv8/patcher.rb +0 -21
  152. data/patches/0001-Build-a-standalone-static-library.patch +0 -26
  153. data/patches/0002-Don-t-compile-unnecessary-stuff.patch +0 -85
  154. data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +0 -25
  155. data/patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch +0 -25
  156. data/patches/0005-Remove-TryInstallOptimizedCode.patch +0 -321
  157. data/patches/mingw-generate-makefiles.sh +0 -97
  158. data/spec/compiler/apple_llvm_spec.rb +0 -37
  159. data/spec/compiler/clang_spec.rb +0 -37
  160. data/spec/compiler/gcc_spec.rb +0 -37
  161. data/spec/compiler/generic_compiler_spec.rb +0 -50
  162. data/spec/compiler_spec.rb +0 -45
  163. data/spec/support/compiler_helpers.rb +0 -47
  164. data/vendor/depot_tools/apply_issue +0 -8
  165. data/vendor/depot_tools/apply_issue.py +0 -315
  166. data/vendor/depot_tools/man/html/git-cherry-pick-upload.html +0 -815
  167. data/vendor/depot_tools/man/man1/git-cherry-pick-upload.1 +0 -80
  168. data/vendor/depot_tools/man/src/_git-cherry-pick-upload_desc.helper.txt +0 -1
  169. data/vendor/depot_tools/man/src/git-cherry-pick-upload.demo.1.sh +0 -17
  170. data/vendor/depot_tools/man/src/git-cherry-pick-upload.txt +0 -35
  171. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2.json +0 -8
  172. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json_win.json +0 -196
  173. data/vendor/depot_tools/recipes/recipe_modules/rietveld/__init__.py +0 -6
  174. data/vendor/depot_tools/recipes/recipe_modules/rietveld/api.py +0 -97
  175. data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/basic.json +0 -8
  176. data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/buildbot.json +0 -30
  177. data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/no_auth.json +0 -27
  178. data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.py +0 -38
  179. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_rietveld_patch.json +0 -69
  180. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_rietveld_patch_new.json +0 -69
  181. data/vendor/depot_tools/third_party/cq_client/OWNERS +0 -2
  182. data/vendor/depot_tools/third_party/cq_client/README.depot_tools.md +0 -2
  183. data/vendor/depot_tools/third_party/cq_client/README.md +0 -59
  184. data/vendor/depot_tools/third_party/cq_client/__init__.py +0 -3
  185. data/vendor/depot_tools/third_party/cq_client/v1/__init__.py +0 -3
  186. data/vendor/depot_tools/third_party/cq_client/v1/cq.pb.go +0 -810
  187. data/vendor/depot_tools/third_party/cq_client/v1/cq.proto +0 -281
  188. data/vendor/depot_tools/third_party/cq_client/v1/cq_pb2.py +0 -794
  189. data/vendor/depot_tools/third_party/cq_client/v1/testdata/cq_both.cfg +0 -71
  190. data/vendor/depot_tools/third_party/cq_client/v1/testdata/cq_gerrit.cfg +0 -58
  191. data/vendor/depot_tools/third_party/cq_client/v1/testdata/cq_rietveld.cfg +0 -60
  192. data/vendor/depot_tools/third_party/cq_client/v2/__init__.py +0 -3
  193. data/vendor/depot_tools/third_party/cq_client/v2/cq.pb.go +0 -792
  194. data/vendor/depot_tools/third_party/cq_client/v2/cq.proto +0 -270
  195. data/vendor/depot_tools/third_party/cq_client/v2/cq_pb2.py +0 -841
@@ -1,80 +0,0 @@
1
- '\" t
2
- .\" Title: git-cherry-pick-upload
3
- .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
4
- .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
5
- .\" Date: 12/15/2016
6
- .\" Manual: Chromium depot_tools Manual
7
- .\" Source: depot_tools f72f1ad
8
- .\" Language: English
9
- .\"
10
- .TH "GIT\-CHERRY\-PICK\-U" "1" "12/15/2016" "depot_tools f72f1ad" "Chromium depot_tools Manual"
11
- .\" -----------------------------------------------------------------
12
- .\" * Define some portability stuff
13
- .\" -----------------------------------------------------------------
14
- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
- .\" http://bugs.debian.org/507673
16
- .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
- .ie \n(.g .ds Aq \(aq
19
- .el .ds Aq '
20
- .\" -----------------------------------------------------------------
21
- .\" * set default formatting
22
- .\" -----------------------------------------------------------------
23
- .\" disable hyphenation
24
- .nh
25
- .\" disable justification (adjust text to left margin only)
26
- .ad l
27
- .\" -----------------------------------------------------------------
28
- .\" * MAIN CONTENT STARTS HERE *
29
- .\" -----------------------------------------------------------------
30
- .SH "NAME"
31
- git-cherry-pick-upload \- Upload the diff between a revision and its parent to rietveld\&.
32
- .SH "SYNOPSIS"
33
- .sp
34
- .nf
35
- \fIgit cherry\-pick\-upload\fR \-\-branch <remote_branch_name> <commit_hash>
36
- .fi
37
- .sp
38
- .SH "DESCRIPTION"
39
- .sp
40
- git cherry\-pick\-upload is used to upload a cherry pick to rietveld\&. It uses your view of the remote to generate the diff between a revision and its parent, and then uploads that diff to rietveld\&.
41
- .sp
42
- The commit message is annotated with "(cherry picked from commit [parent sha1])" as if it were generated by git cherry\-pick \-x\&.
43
- .SH "EXAMPLE"
44
- .sp
45
-
46
- .sp
47
- .if n \{\
48
- .RS 4
49
- .\}
50
- .nf
51
- \fB$ git cherry\-pick\-upload \-h\fR
52
-
53
- \fB$ git cherry\-pick\-upload \-b my_branch c02b7d24a066adb747fdeb12deb21bfa\fR
54
- Found parent revision: b96d69fda53845a205151613a9c4cc93
55
- Loaded authentication cookies from \&.codereview_upload_cookies
56
- Issue created\&. URL: https://codereview\&.chromium\&.org/1234567890
57
- Uploading base_file for some/path/first\&.file: OK
58
- Uploading some/path/first\&.file: OK
59
- Uploading base_file for some/path/second\&.file: OK
60
- Uploading some/path/second\&.file: OK
61
- Uploading base_file for some/path/third\&.file: OK
62
- Uploading some/path/third\&.file: OK
63
- Finalizing upload: OK
64
- .fi
65
- .if n \{\
66
- .RE
67
- .\}
68
- .sp
69
- .SH "SEE ALSO"
70
- .sp
71
- \fBgit-cherry-pick\fR(1) \fBgit-cl-upload\fR(1)
72
- .SH "CHROMIUM DEPOT_TOOLS"
73
- .sp
74
- Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assist with the development of chromium and related projects\&. Download the tools from \m[blue]\fBhere\fR\m[]\&\s-2\u[1]\d\s+2\&.
75
- .SH "NOTES"
76
- .IP " 1." 4
77
- here
78
- .RS 4
79
- \%https://chromium.googlesource.com/chromium/tools/depot_tools.git
80
- .RE
@@ -1 +0,0 @@
1
- Upload the diff between a revision and its parent to rietveld.
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env bash
2
- . demo_repo.sh
3
-
4
- run git cherry-pick-upload -h
5
- echo
6
-
7
- pcommand git cherry-pick-upload -b my_branch c02b7d24a066adb747fdeb12deb21bfa
8
- echo 'Found parent revision: b96d69fda53845a205151613a9c4cc93'
9
- echo 'Loaded authentication cookies from .codereview_upload_cookies'
10
- echo 'Issue created. URL: https://codereview.chromium.org/1234567890'
11
- echo ' Uploading base_file for some/path/first.file: OK'
12
- echo ' Uploading some/path/first.file: OK'
13
- echo ' Uploading base_file for some/path/second.file: OK'
14
- echo ' Uploading some/path/second.file: OK'
15
- echo ' Uploading base_file for some/path/third.file: OK'
16
- echo ' Uploading some/path/third.file: OK'
17
- echo 'Finalizing upload: OK'
@@ -1,35 +0,0 @@
1
- git-cherry-pick-upload(1)
2
- =========================
3
-
4
- NAME
5
- ----
6
- git-cherry-pick-upload -
7
- include::_git-cherry-pick-upload_desc.helper.txt[]
8
-
9
- SYNOPSIS
10
- --------
11
- [verse]
12
- 'git cherry-pick-upload' --branch <remote_branch_name> <commit_hash>
13
-
14
- DESCRIPTION
15
- -----------
16
-
17
- `git cherry-pick-upload` is used to upload a cherry pick to rietveld. It uses
18
- your view of the remote to generate the diff between a revision and its parent,
19
- and then uploads that diff to rietveld.
20
-
21
- The commit message is annotated with "(cherry picked from commit [parent sha1])"
22
- as if it were generated by `git cherry-pick -x`.
23
-
24
- EXAMPLE
25
- -------
26
- demo:1[]
27
-
28
- SEE ALSO
29
- --------
30
- linkgit:git-cherry-pick[1]
31
- linkgit:git-cl-upload[1]
32
-
33
- include::_footer.txt[]
34
-
35
- // vim: ft=asciidoc:
@@ -1,8 +0,0 @@
1
- [
2
- {
3
- "name": "$result",
4
- "reason": "build path is not defined. This is normal for LUCI builds. In LUCI, use_site_config_creds parameter of bot_update.ensure_checkout is not supported",
5
- "recipe_result": null,
6
- "status_code": 1
7
- }
8
- ]
@@ -1,196 +0,0 @@
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
- "--apply_issue_oauth2_file",
18
- "C:\\creds\\refresh_tokens\\internal-try",
19
- "--output_json",
20
- "/path/to/tmp/json",
21
- "--revision",
22
- "src@HEAD",
23
- "--disable-syntax-validation"
24
- ],
25
- "env_prefixes": {
26
- "PATH": [
27
- "RECIPE_PACKAGE_REPO[depot_tools]"
28
- ]
29
- },
30
- "infra_step": true,
31
- "name": "bot_update",
32
- "~followup_annotations": [
33
- "@@@STEP_TEXT@Some step text@@@",
34
- "@@@STEP_LOG_LINE@json.output@{@@@",
35
- "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
36
- "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
37
- "@@@STEP_LOG_LINE@json.output@ \"src\": \"HEAD\"@@@",
38
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
39
- "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@",
40
- "@@@STEP_LOG_LINE@json.output@ \"src\": {@@@",
41
- "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src.git\", @@@",
42
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
43
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
44
- "@@@STEP_LOG_LINE@json.output@ \"src/third_party/angle\": {@@@",
45
- "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src/third_party/angle.git\", @@@",
46
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"fac9503c46405f77757b9a728eb85b8d7bc6080c\"@@@",
47
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
48
- "@@@STEP_LOG_LINE@json.output@ \"src/v8\": {@@@",
49
- "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src/v8.git\", @@@",
50
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"801ada225ddc271c132c3a35f03975671d43e399\"@@@",
51
- "@@@STEP_LOG_LINE@json.output@ }@@@",
52
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
53
- "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
54
- "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@",
55
- "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
56
- "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision\": \"fac9503c46405f77757b9a728eb85b8d7bc6080c\", @@@",
57
- "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision_cp\": \"refs/heads/master@{#297276}\", @@@",
58
- "@@@STEP_LOG_LINE@json.output@ \"got_cr_revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\", @@@",
59
- "@@@STEP_LOG_LINE@json.output@ \"got_cr_revision_cp\": \"refs/heads/master@{#170242}\", @@@",
60
- "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\", @@@",
61
- "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#170242}\", @@@",
62
- "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision\": \"801ada225ddc271c132c3a35f03975671d43e399\", @@@",
63
- "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision_cp\": \"refs/heads/master@{#43426}\"@@@",
64
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
65
- "@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@",
66
- "@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@",
67
- "@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@",
68
- "@@@STEP_LOG_LINE@json.output@ \"src\": {@@@",
69
- "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@",
70
- "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/src.git\", @@@",
71
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
72
- "@@@STEP_LOG_LINE@json.output@ }@@@",
73
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
74
- "@@@STEP_LOG_LINE@json.output@ \"src/third_party/angle\": {@@@",
75
- "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@",
76
- "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/src/third_party/angle.git\", @@@",
77
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"fac9503c46405f77757b9a728eb85b8d7bc6080c\"@@@",
78
- "@@@STEP_LOG_LINE@json.output@ }@@@",
79
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
80
- "@@@STEP_LOG_LINE@json.output@ \"src/v8\": {@@@",
81
- "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@",
82
- "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/src/v8.git\", @@@",
83
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"801ada225ddc271c132c3a35f03975671d43e399\"@@@",
84
- "@@@STEP_LOG_LINE@json.output@ }@@@",
85
- "@@@STEP_LOG_LINE@json.output@ }@@@",
86
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
87
- "@@@STEP_LOG_LINE@json.output@ \"version\": 0@@@",
88
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
89
- "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
90
- "@@@STEP_LOG_LINE@json.output@}@@@",
91
- "@@@STEP_LOG_END@json.output@@@",
92
- "@@@SET_BUILD_PROPERTY@got_angle_revision@\"fac9503c46405f77757b9a728eb85b8d7bc6080c\"@@@",
93
- "@@@SET_BUILD_PROPERTY@got_angle_revision_cp@\"refs/heads/master@{#297276}\"@@@",
94
- "@@@SET_BUILD_PROPERTY@got_cr_revision@\"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
95
- "@@@SET_BUILD_PROPERTY@got_cr_revision_cp@\"refs/heads/master@{#170242}\"@@@",
96
- "@@@SET_BUILD_PROPERTY@got_revision@\"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
97
- "@@@SET_BUILD_PROPERTY@got_revision_cp@\"refs/heads/master@{#170242}\"@@@",
98
- "@@@SET_BUILD_PROPERTY@got_v8_revision@\"801ada225ddc271c132c3a35f03975671d43e399\"@@@",
99
- "@@@SET_BUILD_PROPERTY@got_v8_revision_cp@\"refs/heads/master@{#43426}\"@@@"
100
- ]
101
- },
102
- {
103
- "cmd": [
104
- "python",
105
- "-u",
106
- "RECIPE_MODULE[depot_tools::bot_update]\\resources\\bot_update.py",
107
- "--spec-path",
108
- "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'src', 'url': 'https://chromium.googlesource.com/chromium/src.git'}]",
109
- "--patch_root",
110
- "src",
111
- "--revision_mapping_file",
112
- "{\"got_angle_revision\": \"src/third_party/angle\", \"got_cr_revision\": \"src\", \"got_revision\": \"src\", \"got_v8_revision\": \"src/v8\"}",
113
- "--git-cache-dir",
114
- "[GIT_CACHE]",
115
- "--cleanup-dir",
116
- "[CLEANUP]\\bot_update",
117
- "--output_json",
118
- "/path/to/tmp/json",
119
- "--revision",
120
- "src@f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9"
121
- ],
122
- "env_prefixes": {
123
- "PATH": [
124
- "RECIPE_PACKAGE_REPO[depot_tools]"
125
- ]
126
- },
127
- "infra_step": true,
128
- "name": "bot_update (without patch)",
129
- "~followup_annotations": [
130
- "@@@STEP_TEXT@Some step text@@@",
131
- "@@@STEP_LOG_LINE@json.output@{@@@",
132
- "@@@STEP_LOG_LINE@json.output@ \"did_run\": true, @@@",
133
- "@@@STEP_LOG_LINE@json.output@ \"fixed_revisions\": {@@@",
134
- "@@@STEP_LOG_LINE@json.output@ \"src\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
135
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
136
- "@@@STEP_LOG_LINE@json.output@ \"manifest\": {@@@",
137
- "@@@STEP_LOG_LINE@json.output@ \"src\": {@@@",
138
- "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src.git\", @@@",
139
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
140
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
141
- "@@@STEP_LOG_LINE@json.output@ \"src/third_party/angle\": {@@@",
142
- "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src/third_party/angle.git\", @@@",
143
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"fac9503c46405f77757b9a728eb85b8d7bc6080c\"@@@",
144
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
145
- "@@@STEP_LOG_LINE@json.output@ \"src/v8\": {@@@",
146
- "@@@STEP_LOG_LINE@json.output@ \"repository\": \"https://fake.org/src/v8.git\", @@@",
147
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"801ada225ddc271c132c3a35f03975671d43e399\"@@@",
148
- "@@@STEP_LOG_LINE@json.output@ }@@@",
149
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
150
- "@@@STEP_LOG_LINE@json.output@ \"patch_failure\": false, @@@",
151
- "@@@STEP_LOG_LINE@json.output@ \"patch_root\": \"src\", @@@",
152
- "@@@STEP_LOG_LINE@json.output@ \"properties\": {@@@",
153
- "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision\": \"fac9503c46405f77757b9a728eb85b8d7bc6080c\", @@@",
154
- "@@@STEP_LOG_LINE@json.output@ \"got_angle_revision_cp\": \"refs/heads/master@{#297276}\", @@@",
155
- "@@@STEP_LOG_LINE@json.output@ \"got_cr_revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\", @@@",
156
- "@@@STEP_LOG_LINE@json.output@ \"got_cr_revision_cp\": \"refs/heads/master@{#170242}\", @@@",
157
- "@@@STEP_LOG_LINE@json.output@ \"got_revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\", @@@",
158
- "@@@STEP_LOG_LINE@json.output@ \"got_revision_cp\": \"refs/heads/master@{#170242}\", @@@",
159
- "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision\": \"801ada225ddc271c132c3a35f03975671d43e399\", @@@",
160
- "@@@STEP_LOG_LINE@json.output@ \"got_v8_revision_cp\": \"refs/heads/master@{#43426}\"@@@",
161
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
162
- "@@@STEP_LOG_LINE@json.output@ \"root\": \"src\", @@@",
163
- "@@@STEP_LOG_LINE@json.output@ \"source_manifest\": {@@@",
164
- "@@@STEP_LOG_LINE@json.output@ \"directories\": {@@@",
165
- "@@@STEP_LOG_LINE@json.output@ \"src\": {@@@",
166
- "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@",
167
- "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/src.git\", @@@",
168
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"f27fede2220bcd326aee3e86ddfd4ebd0fe58cb9\"@@@",
169
- "@@@STEP_LOG_LINE@json.output@ }@@@",
170
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
171
- "@@@STEP_LOG_LINE@json.output@ \"src/third_party/angle\": {@@@",
172
- "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@",
173
- "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/src/third_party/angle.git\", @@@",
174
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"fac9503c46405f77757b9a728eb85b8d7bc6080c\"@@@",
175
- "@@@STEP_LOG_LINE@json.output@ }@@@",
176
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
177
- "@@@STEP_LOG_LINE@json.output@ \"src/v8\": {@@@",
178
- "@@@STEP_LOG_LINE@json.output@ \"git_checkout\": {@@@",
179
- "@@@STEP_LOG_LINE@json.output@ \"repo_url\": \"https://fake.org/src/v8.git\", @@@",
180
- "@@@STEP_LOG_LINE@json.output@ \"revision\": \"801ada225ddc271c132c3a35f03975671d43e399\"@@@",
181
- "@@@STEP_LOG_LINE@json.output@ }@@@",
182
- "@@@STEP_LOG_LINE@json.output@ }@@@",
183
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
184
- "@@@STEP_LOG_LINE@json.output@ \"version\": 0@@@",
185
- "@@@STEP_LOG_LINE@json.output@ }, @@@",
186
- "@@@STEP_LOG_LINE@json.output@ \"step_text\": \"Some step text\"@@@",
187
- "@@@STEP_LOG_LINE@json.output@}@@@",
188
- "@@@STEP_LOG_END@json.output@@@"
189
- ]
190
- },
191
- {
192
- "name": "$result",
193
- "recipe_result": null,
194
- "status_code": 0
195
- }
196
- ]
@@ -1,6 +0,0 @@
1
- DEPS = [
2
- 'recipe_engine/path',
3
- 'recipe_engine/properties',
4
- 'recipe_engine/python',
5
- 'recipe_engine/step',
6
- ]
@@ -1,97 +0,0 @@
1
- # Copyright 2013 The Chromium Authors. All rights reserved.
2
- # Use of this source code is governed by a BSD-style license that can be
3
- # found in the LICENSE file.
4
-
5
- import urlparse
6
-
7
- from recipe_engine import recipe_api
8
-
9
-
10
- class RietveldApi(recipe_api.RecipeApi):
11
- def calculate_issue_root(self, extra_patch_project_roots=None):
12
- """Returns path where a patch should be applied to based on "patch_project".
13
-
14
- YOU SHOULD NOT USE THIS METHOD. Put this into gclient's config as
15
- patch_projects instead, and with luck you won't need to use
16
- calculate_patch_root from gclient api.
17
- TODO(tandrii): remove this method completely. See http://crbug.com/605563.
18
-
19
- Maps Rietveld's "patch_project" to a path of directories relative to
20
- api.gclient.c.solutions[0].name which describe where to place the patch.
21
-
22
- Args:
23
- extra_patch_project_roots: Dict mapping project names to relative roots.
24
-
25
- Returns:
26
- Relative path or empty string if patch_project is not set or path for a
27
- given is unknown.
28
- """
29
- # Property 'patch_project' is set by Rietveld, 'project' is set by git-try
30
- # when TRYSERVER_PROJECT is present in codereview.settings.
31
- patch_project = (self.m.properties.get('patch_project') or
32
- self.m.properties.get('project'))
33
-
34
- # Please avoid adding projects into this hard-coded list unless your project
35
- # CLs are being run by multiple recipes. Instead pass patch_project_roots to
36
- # ensure_checkout.
37
- patch_project_roots = {
38
- 'angle/angle': ['third_party', 'angle'],
39
- 'blink': ['third_party', 'WebKit'],
40
- 'v8': ['v8'],
41
- 'luci-py': ['luci'],
42
- 'recipes-py': ['recipes-py'],
43
- }
44
-
45
- # Make sure to update common projects (above) with extra projects (and not
46
- # vice versa, so that recipes can override default values if needed.
47
- if extra_patch_project_roots:
48
- patch_project_roots.update(extra_patch_project_roots)
49
-
50
- path_parts = patch_project_roots.get(patch_project)
51
- return self.m.path.join(*path_parts) if path_parts else ''
52
-
53
- def apply_issue(self, *root_pieces, **kwargs):
54
- """Call apply_issue from depot_tools.
55
-
56
- Args:
57
- root_pieces (strings): location where to run apply_issue, relative to the
58
- checkout root.
59
- authentication (string or None): authentication scheme to use. Can be None
60
- or 'oauth2'. See also apply_issue.py --help (-E and --no-auth options.)
61
- """
62
- # TODO(pgervais): replace *root_pieces by a single Path object.
63
- authentication = kwargs.get('authentication', None)
64
- rietveld_url = self.m.properties['rietveld']
65
- issue_number = self.m.properties['issue']
66
-
67
- if authentication == 'oauth2':
68
- try:
69
- build_path = self.m.path['build']
70
- except KeyError:
71
- raise self.m.step.StepFailure(
72
- 'build path is not defined. This is typical for LUCI builds. '
73
- 'LUCI does not support rietveld.apply_issue; use bot_update instead')
74
- step_result = self.m.python(
75
- 'apply_issue',
76
- self.package_repo_resource('apply_issue.py'), [
77
- '-r', self.m.path['checkout'].join(*root_pieces),
78
- '-i', issue_number,
79
- '-p', self.m.properties['patchset'],
80
- '-s', rietveld_url,
81
- '-E', build_path.join('site_config', '.rietveld_client_email'),
82
- '-k', build_path.join('site_config', '.rietveld_secret_key'),
83
- ],
84
- )
85
- else:
86
- step_result = self.m.python(
87
- 'apply_issue',
88
- self.package_repo_resource('apply_issue.py'), [
89
- '-r', self.m.path['checkout'].join(*root_pieces),
90
- '-i', issue_number,
91
- '-p', self.m.properties['patchset'],
92
- '-s', rietveld_url,
93
- '--no-auth'],
94
- )
95
- step_result.presentation.links['Applied issue %s' % issue_number] = (
96
- urlparse.urljoin(rietveld_url, str(issue_number)))
97
-