libv8 5.2.361.43.1 → 5.3.332.38.0beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +4 -0
  4. data/README.md +1 -0
  5. data/Rakefile +4 -4
  6. data/ext/libv8/paths.rb +1 -1
  7. data/lib/libv8/version.rb +1 -1
  8. data/libv8.gemspec +1 -1
  9. data/patches/0001-Build-a-standalone-static-library.patch +4 -4
  10. data/patches/0002-Don-t-compile-unnecessary-stuff.patch +4 -4
  11. data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +4 -4
  12. data/patches/0004-Reinterpret-thread-hash-for-FreeBSD-too.patch +8 -8
  13. data/spec/location_spec.rb +1 -1
  14. data/vendor/depot_tools/README.gclient.md +67 -0
  15. data/vendor/depot_tools/README.git-cl.md +112 -0
  16. data/vendor/depot_tools/README.md +50 -36
  17. data/vendor/depot_tools/bootstrap/win/README.md +5 -5
  18. data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +203 -0
  19. data/vendor/depot_tools/bootstrap/win/git_version.txt +1 -0
  20. data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +1 -0
  21. data/vendor/depot_tools/bootstrap/win/win_tools.bat +1 -148
  22. data/vendor/depot_tools/cit.py +27 -21
  23. data/vendor/depot_tools/codereview.settings +1 -1
  24. data/vendor/depot_tools/cpplint.py +1 -1
  25. data/vendor/depot_tools/fix_encoding.py +1 -1
  26. data/vendor/depot_tools/gclient.py +4 -3
  27. data/vendor/depot_tools/gclient_scm.py +20 -9
  28. data/vendor/depot_tools/gclient_utils.py +84 -13
  29. data/vendor/depot_tools/gerrit_util.py +1 -1
  30. data/vendor/depot_tools/git_cl.py +374 -218
  31. data/vendor/depot_tools/git_cl_completion.sh +34 -0
  32. data/vendor/depot_tools/git_common.py +11 -7
  33. data/vendor/depot_tools/infra/config/OWNERS +1 -0
  34. data/vendor/depot_tools/infra/config/cq.cfg +3 -12
  35. data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
  36. data/vendor/depot_tools/presubmit_canned_checks.py +4 -2
  37. data/vendor/depot_tools/presubmit_support.py +26 -40
  38. data/vendor/depot_tools/recipe_modules/bot_update/api.py +31 -11
  39. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/apply_gerrit_ref.json +26 -0
  40. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic.json +1 -1
  41. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_output_manifest.json +1 -1
  42. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +1 -1
  43. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/clobber.json +1 -1
  44. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/forced.json +1 -1
  45. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +44 -0
  46. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +1 -1
  47. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/no_shallow.json +1 -1
  48. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/off.json +1 -1
  49. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +1 -1
  50. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange.json +1 -1
  51. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2.json +1 -1
  52. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob.json +1 -1
  53. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail.json +1 -1
  54. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +1 -1
  55. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +3 -3
  56. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +1 -1
  57. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8.json +1 -1
  58. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +1 -1
  59. data/vendor/depot_tools/recipe_modules/bot_update/example.py +35 -18
  60. data/vendor/depot_tools/recipe_modules/bot_update/resources/apply_gerrit.py +33 -0
  61. data/vendor/depot_tools/recipe_modules/bot_update/resources/bot_update.py +45 -76
  62. data/vendor/depot_tools/recipe_modules/bot_update/test_api.py +13 -18
  63. data/vendor/depot_tools/recipe_modules/cipd/__init__.py +10 -0
  64. data/vendor/depot_tools/recipe_modules/cipd/api.py +244 -0
  65. data/vendor/depot_tools/recipe_modules/cipd/example.expected/basic.json +445 -0
  66. data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-failed.json +128 -0
  67. data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-many-instances.json +453 -0
  68. data/vendor/depot_tools/recipe_modules/cipd/example.expected/install-failed.json +31 -0
  69. data/vendor/depot_tools/recipe_modules/cipd/example.expected/mac64.json +445 -0
  70. data/vendor/depot_tools/recipe_modules/cipd/example.expected/win64.json +445 -0
  71. data/vendor/depot_tools/recipe_modules/cipd/example.py +115 -0
  72. data/vendor/depot_tools/recipe_modules/cipd/resources/bootstrap.py +218 -0
  73. data/vendor/depot_tools/recipe_modules/cipd/test_api.py +102 -0
  74. data/vendor/depot_tools/recipe_modules/gclient/api.py +34 -53
  75. data/vendor/depot_tools/recipe_modules/gclient/config.py +22 -128
  76. data/vendor/depot_tools/recipe_modules/gclient/example.expected/basic.json +44 -6
  77. data/vendor/depot_tools/recipe_modules/gclient/example.expected/revision.json +44 -6
  78. data/vendor/depot_tools/recipe_modules/gclient/example.expected/tryserver.json +44 -17
  79. data/vendor/depot_tools/recipe_modules/gclient/example.py +1 -1
  80. data/vendor/depot_tools/recipe_modules/gclient/test_api.py +4 -9
  81. data/vendor/depot_tools/recipe_modules/git/api.py +25 -7
  82. data/vendor/depot_tools/recipe_modules/git/example.expected/basic.json +3 -0
  83. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_branch.json +3 -0
  84. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_file_name.json +3 -0
  85. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_hash.json +3 -0
  86. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_ref.json +3 -0
  87. data/vendor/depot_tools/recipe_modules/git/example.expected/basic_submodule_update_force.json +3 -0
  88. data/vendor/depot_tools/recipe_modules/git/example.expected/can_fail_build.json +3 -0
  89. data/vendor/depot_tools/recipe_modules/git/example.expected/cannot_fail_build.json +3 -0
  90. data/vendor/depot_tools/recipe_modules/git/example.expected/cat-file_test.json +3 -0
  91. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_delta.json +3 -0
  92. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_failed.json +3 -0
  93. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output.json +3 -0
  94. data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output_fails_build.json +3 -0
  95. data/vendor/depot_tools/recipe_modules/git/example.expected/curl_trace_file.json +2 -1
  96. data/vendor/depot_tools/recipe_modules/git/example.expected/git-cache-checkout.json +41 -3
  97. data/vendor/depot_tools/recipe_modules/git/example.expected/platform_win.json +7 -1
  98. data/vendor/depot_tools/recipe_modules/git/example.expected/rebase_failed.json +3 -0
  99. data/vendor/depot_tools/recipe_modules/git/example.expected/remote_not_origin.json +3 -0
  100. data/vendor/depot_tools/recipe_modules/git/example.expected/set_got_revision.json +3 -0
  101. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch.json +4 -1
  102. data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch_new.json +4 -1
  103. data/vendor/depot_tools/recipes.py +8 -2
  104. data/vendor/depot_tools/roll-dep-svn.bat +10 -10
  105. data/vendor/depot_tools/roll_dep.py +0 -1
  106. data/vendor/depot_tools/third_party/upload.py +1 -25
  107. data/vendor/depot_tools/upload_to_google_storage.py +1 -1
  108. metadata +24 -32
  109. data/release/armhf-linux/Vagrantfile +0 -97
  110. data/release/armhf-linux/initrd.img +0 -0
  111. data/release/armhf-linux/vmlinuz +0 -0
  112. data/release/x86-linux/Vagrantfile +0 -85
  113. data/release/x86_64-freebsd-10/Vagrantfile +0 -88
  114. data/release/x86_64-linux/Vagrantfile +0 -85
  115. data/vendor/depot_tools/README.codereview +0 -99
  116. data/vendor/depot_tools/README.gclient +0 -82
  117. data/vendor/depot_tools/README.git-cl +0 -52
  118. data/vendor/depot_tools/chrome-update-create-task.bat +0 -52
  119. data/vendor/depot_tools/chrome-update.bat +0 -5
  120. data/vendor/depot_tools/chrome-update.py +0 -91
  121. data/vendor/depot_tools/create-chromium-git-src +0 -200
  122. data/vendor/depot_tools/drover +0 -25
  123. data/vendor/depot_tools/drover.bat +0 -9
  124. data/vendor/depot_tools/drover.py +0 -648
  125. data/vendor/depot_tools/gcl +0 -8
  126. data/vendor/depot_tools/gcl.bat +0 -6
  127. data/vendor/depot_tools/gcl.py +0 -1523
  128. data/vendor/depot_tools/git-try +0 -9
  129. data/vendor/depot_tools/git_try.py +0 -76
  130. data/vendor/depot_tools/luci_hacks/README.md +0 -35
  131. data/vendor/depot_tools/luci_hacks/__init__.py +0 -0
  132. data/vendor/depot_tools/luci_hacks/luci_recipe_run.isolate +0 -12
  133. data/vendor/depot_tools/luci_hacks/luci_recipe_run.py +0 -81
  134. data/vendor/depot_tools/luci_hacks/trigger_luci_job.py +0 -128
  135. data/vendor/depot_tools/recipe_modules/bot_update/example.expected/svn_mode.json +0 -59
  136. data/vendor/depot_tools/trychange.py +0 -1265
@@ -85,7 +85,7 @@
85
85
  "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
86
86
  "config",
87
87
  "--spec",
88
- "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]"
88
+ "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]"
89
89
  ],
90
90
  "cwd": "[SLAVE_BUILD]/src/third_party",
91
91
  "env": {
@@ -99,11 +99,15 @@
99
99
  "-u",
100
100
  "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
101
101
  "sync",
102
+ "--verbose",
103
+ "--with_branch_heads",
102
104
  "--nohooks",
105
+ "-j8",
106
+ "--reset",
103
107
  "--force",
104
- "--verbose",
108
+ "--upstream",
109
+ "--no-nag-max",
105
110
  "--delete_unversioned_trees",
106
- "--with_branch_heads",
107
111
  "--revision",
108
112
  "third_party/WebKit@123",
109
113
  "--output-json",
@@ -118,17 +122,51 @@
118
122
  "@@@STEP_LOG_LINE@json.output@{@@@",
119
123
  "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@",
120
124
  "@@@STEP_LOG_LINE@json.output@ \"WebKit/\": {@@@",
121
- "@@@STEP_LOG_LINE@json.output@ \"revision\": 241198@@@",
125
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"3eebce6ea96f9e6c03e9252a4f8ef2ea9fe141c2\"@@@",
122
126
  "@@@STEP_LOG_LINE@json.output@ }, @@@",
123
127
  "@@@STEP_LOG_LINE@json.output@ \"src/blatley/\": {@@@",
124
- "@@@STEP_LOG_LINE@json.output@ \"revision\": 248087@@@",
128
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"5e800497199d615131a76cd10651e74d7c8a0962\"@@@",
125
129
  "@@@STEP_LOG_LINE@json.output@ }@@@",
126
130
  "@@@STEP_LOG_LINE@json.output@ }@@@",
127
131
  "@@@STEP_LOG_LINE@json.output@}@@@",
128
132
  "@@@STEP_LOG_END@json.output@@@",
129
- "@@@SET_BUILD_PROPERTY@got_blatley_revision@248087@@@"
133
+ "@@@SET_BUILD_PROPERTY@got_blatley_revision@\"5e800497199d615131a76cd10651e74d7c8a0962\"@@@"
130
134
  ]
131
135
  },
136
+ {
137
+ "cmd": [
138
+ "python",
139
+ "-u",
140
+ "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
141
+ "recurse",
142
+ "git",
143
+ "config",
144
+ "user.name",
145
+ "local_bot"
146
+ ],
147
+ "cwd": "[SLAVE_BUILD]/src/third_party",
148
+ "env": {
149
+ "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
150
+ },
151
+ "name": "[spec: WebKit] gclient recurse (git config user.name)"
152
+ },
153
+ {
154
+ "cmd": [
155
+ "python",
156
+ "-u",
157
+ "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
158
+ "recurse",
159
+ "git",
160
+ "config",
161
+ "user.email",
162
+ "local_bot@example.com"
163
+ ],
164
+ "cwd": "[SLAVE_BUILD]/src/third_party",
165
+ "env": {
166
+ "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
167
+ },
168
+ "name": "[spec: WebKit] gclient recurse (git config user.email)"
169
+ },
132
170
  {
133
171
  "cmd": [
134
172
  "python",
@@ -87,7 +87,7 @@
87
87
  "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
88
88
  "config",
89
89
  "--spec",
90
- "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]"
90
+ "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]"
91
91
  ],
92
92
  "cwd": "[SLAVE_BUILD]/src/third_party",
93
93
  "env": {
@@ -101,11 +101,15 @@
101
101
  "-u",
102
102
  "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
103
103
  "sync",
104
+ "--verbose",
105
+ "--with_branch_heads",
104
106
  "--nohooks",
107
+ "-j8",
108
+ "--reset",
105
109
  "--force",
106
- "--verbose",
110
+ "--upstream",
111
+ "--no-nag-max",
107
112
  "--delete_unversioned_trees",
108
- "--with_branch_heads",
109
113
  "--revision",
110
114
  "third_party/WebKit@123",
111
115
  "--output-json",
@@ -120,17 +124,51 @@
120
124
  "@@@STEP_LOG_LINE@json.output@{@@@",
121
125
  "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@",
122
126
  "@@@STEP_LOG_LINE@json.output@ \"WebKit/\": {@@@",
123
- "@@@STEP_LOG_LINE@json.output@ \"revision\": 241198@@@",
127
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"3eebce6ea96f9e6c03e9252a4f8ef2ea9fe141c2\"@@@",
124
128
  "@@@STEP_LOG_LINE@json.output@ }, @@@",
125
129
  "@@@STEP_LOG_LINE@json.output@ \"src/blatley/\": {@@@",
126
- "@@@STEP_LOG_LINE@json.output@ \"revision\": 248087@@@",
130
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"5e800497199d615131a76cd10651e74d7c8a0962\"@@@",
127
131
  "@@@STEP_LOG_LINE@json.output@ }@@@",
128
132
  "@@@STEP_LOG_LINE@json.output@ }@@@",
129
133
  "@@@STEP_LOG_LINE@json.output@}@@@",
130
134
  "@@@STEP_LOG_END@json.output@@@",
131
- "@@@SET_BUILD_PROPERTY@got_blatley_revision@248087@@@"
135
+ "@@@SET_BUILD_PROPERTY@got_blatley_revision@\"5e800497199d615131a76cd10651e74d7c8a0962\"@@@"
132
136
  ]
133
137
  },
138
+ {
139
+ "cmd": [
140
+ "python",
141
+ "-u",
142
+ "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
143
+ "recurse",
144
+ "git",
145
+ "config",
146
+ "user.name",
147
+ "local_bot"
148
+ ],
149
+ "cwd": "[SLAVE_BUILD]/src/third_party",
150
+ "env": {
151
+ "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
152
+ },
153
+ "name": "[spec: WebKit] gclient recurse (git config user.name)"
154
+ },
155
+ {
156
+ "cmd": [
157
+ "python",
158
+ "-u",
159
+ "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
160
+ "recurse",
161
+ "git",
162
+ "config",
163
+ "user.email",
164
+ "local_bot@example.com"
165
+ ],
166
+ "cwd": "[SLAVE_BUILD]/src/third_party",
167
+ "env": {
168
+ "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
169
+ },
170
+ "name": "[spec: WebKit] gclient recurse (git config user.email)"
171
+ },
134
172
  {
135
173
  "cmd": [
136
174
  "python",
@@ -87,7 +87,7 @@
87
87
  "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
88
88
  "config",
89
89
  "--spec",
90
- "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': 'DEPS', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]"
90
+ "cache_dir = '[GIT_CACHE]'\nsolutions = [{'deps_file': '.DEPS.git', 'managed': True, 'name': 'WebKit', 'safesync_url': 'https://blink-status.appspot.com/lkgr', 'url': 'svn://svn.chromium.org/blink/trunk'}]"
91
91
  ],
92
92
  "cwd": "[SLAVE_BUILD]/src/third_party",
93
93
  "env": {
@@ -95,28 +95,21 @@
95
95
  },
96
96
  "name": "[spec: WebKit] gclient setup"
97
97
  },
98
- {
99
- "cmd": [
100
- "python",
101
- "-u",
102
- "[BUILD]/scripts/slave/gclient_safe_revert.py",
103
- ".",
104
- "[DEPOT_TOOLS]/gclient"
105
- ],
106
- "cwd": "[SLAVE_BUILD]/src/third_party",
107
- "name": "[spec: WebKit] gclient revert"
108
- },
109
98
  {
110
99
  "cmd": [
111
100
  "python",
112
101
  "-u",
113
102
  "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
114
103
  "sync",
104
+ "--verbose",
105
+ "--with_branch_heads",
115
106
  "--nohooks",
107
+ "-j8",
108
+ "--reset",
116
109
  "--force",
117
- "--verbose",
110
+ "--upstream",
111
+ "--no-nag-max",
118
112
  "--delete_unversioned_trees",
119
- "--with_branch_heads",
120
113
  "--revision",
121
114
  "third_party/WebKit@123",
122
115
  "--output-json",
@@ -131,17 +124,51 @@
131
124
  "@@@STEP_LOG_LINE@json.output@{@@@",
132
125
  "@@@STEP_LOG_LINE@json.output@ \"solutions\": {@@@",
133
126
  "@@@STEP_LOG_LINE@json.output@ \"WebKit/\": {@@@",
134
- "@@@STEP_LOG_LINE@json.output@ \"revision\": 241198@@@",
127
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"3eebce6ea96f9e6c03e9252a4f8ef2ea9fe141c2\"@@@",
135
128
  "@@@STEP_LOG_LINE@json.output@ }, @@@",
136
129
  "@@@STEP_LOG_LINE@json.output@ \"src/blatley/\": {@@@",
137
- "@@@STEP_LOG_LINE@json.output@ \"revision\": 248087@@@",
130
+ "@@@STEP_LOG_LINE@json.output@ \"revision\": \"5e800497199d615131a76cd10651e74d7c8a0962\"@@@",
138
131
  "@@@STEP_LOG_LINE@json.output@ }@@@",
139
132
  "@@@STEP_LOG_LINE@json.output@ }@@@",
140
133
  "@@@STEP_LOG_LINE@json.output@}@@@",
141
134
  "@@@STEP_LOG_END@json.output@@@",
142
- "@@@SET_BUILD_PROPERTY@got_blatley_revision@248087@@@"
135
+ "@@@SET_BUILD_PROPERTY@got_blatley_revision@\"5e800497199d615131a76cd10651e74d7c8a0962\"@@@"
143
136
  ]
144
137
  },
138
+ {
139
+ "cmd": [
140
+ "python",
141
+ "-u",
142
+ "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
143
+ "recurse",
144
+ "git",
145
+ "config",
146
+ "user.name",
147
+ "local_bot"
148
+ ],
149
+ "cwd": "[SLAVE_BUILD]/src/third_party",
150
+ "env": {
151
+ "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
152
+ },
153
+ "name": "[spec: WebKit] gclient recurse (git config user.name)"
154
+ },
155
+ {
156
+ "cmd": [
157
+ "python",
158
+ "-u",
159
+ "RECIPE_PACKAGE_REPO[depot_tools]/gclient.py",
160
+ "recurse",
161
+ "git",
162
+ "config",
163
+ "user.email",
164
+ "local_bot@example.com"
165
+ ],
166
+ "cwd": "[SLAVE_BUILD]/src/third_party",
167
+ "env": {
168
+ "PATH": "%(PATH)s:RECIPE_PACKAGE_REPO[depot_tools]"
169
+ },
170
+ "name": "[spec: WebKit] gclient recurse (git config user.email)"
171
+ },
145
172
  {
146
173
  "cmd": [
147
174
  "python",
@@ -61,7 +61,7 @@ def RunSteps(api):
61
61
  for config_name in TEST_CONFIGS:
62
62
  api.gclient.make_config(config_name)
63
63
 
64
- src_cfg = api.gclient.make_config(GIT_MODE=True, CACHE_DIR='[ROOT]/git_cache')
64
+ src_cfg = api.gclient.make_config(CACHE_DIR='[ROOT]/git_cache')
65
65
  soln = src_cfg.solutions.add()
66
66
  soln.name = 'src'
67
67
  soln.url = 'https://chromium.googlesource.com/chromium/src.git'
@@ -7,13 +7,12 @@ import hashlib
7
7
  from recipe_engine import recipe_test_api
8
8
 
9
9
  class GclientTestApi(recipe_test_api.RecipeTestApi):
10
- def output_json(self, projects, git_mode=False):
10
+ def output_json(self, projects):
11
11
  """Deterministically synthesize json.output test data for gclient's
12
12
  --output-json option.
13
13
 
14
14
  Args:
15
15
  projects - a list of project paths (e.g. ['src', 'src/dependency'])
16
- git_mode - Return git hashes instead of svn revs.
17
16
  """
18
17
  # TODO(iannucci): Account for parent_got_revision_mapping. Right now the
19
18
  # synthesized json output from this method will always use
@@ -21,17 +20,13 @@ class GclientTestApi(recipe_test_api.RecipeTestApi):
21
20
  # specified, we should use those values instead.
22
21
  return self.m.json.output({
23
22
  'solutions': dict(
24
- (p+'/', {'revision': self.gen_revision(p, git_mode)})
23
+ (p+'/', {'revision': self.gen_revision(p)})
25
24
  for p in projects
26
25
  )
27
26
  })
28
27
 
29
28
  @staticmethod
30
- def gen_revision(project, GIT_MODE):
29
+ def gen_revision(project):
31
30
  """Hash project to bogus deterministic revision values."""
32
31
  h = hashlib.sha1(project)
33
- if GIT_MODE:
34
- return h.hexdigest()
35
- else:
36
- import struct
37
- return struct.unpack('!I', h.digest()[:4])[0] % 300000
32
+ return h.hexdigest()
@@ -41,9 +41,10 @@ class GitApi(recipe_api.RecipeApi):
41
41
  """Ensures that depot_tools/git.bat actually exists."""
42
42
  if not self.m.platform.is_win or self.initialized_win_git:
43
43
  return
44
- self.m.step(
44
+ self.m.python(
45
45
  'ensure git tooling on windows',
46
- [self.package_repo_resource('bootstrap', 'win', 'win_tools.bat')],
46
+ self.package_repo_resource('bootstrap', 'win', 'git_bootstrap.py'),
47
+ ['--verbose'],
47
48
  infra_step=True,
48
49
  cwd=self.package_repo_resource(),
49
50
  timeout=300)
@@ -208,11 +209,28 @@ class GitApi(recipe_api.RecipeApi):
208
209
  self.resource('git_setup.py'),
209
210
  git_setup_args)
210
211
 
212
+ # Some of the commands below require depot_tools to be in PATH.
213
+ path = self.m.path.pathsep.join([
214
+ str(self.package_repo_resource()), '%(PATH)s'])
215
+
211
216
  if use_git_cache:
212
- self('retry', 'cache', 'fetch', '-c', self.m.path['git_cache'],
213
- cwd=dir_path,
214
- name='fetch cache',
215
- can_fail_build=can_fail_build)
217
+ with self.m.step.context({'env': {'PATH': path}}):
218
+ self('retry', 'cache', 'populate', '-c', self.m.path['git_cache'], url,
219
+ name='populate cache',
220
+ can_fail_build=can_fail_build,
221
+ cwd=dir_path)
222
+ dir_cmd = self(
223
+ 'cache', 'exists', '--quiet',
224
+ '--cache-dir', self.m.path['git_cache'], url,
225
+ can_fail_build=can_fail_build,
226
+ stdout=self.m.raw_io.output(),
227
+ step_test_data=lambda:
228
+ self.m.raw_io.test_api.stream_output('mirror_dir'),
229
+ cwd=dir_path)
230
+ mirror_dir = dir_cmd.stdout.strip()
231
+ self('remote', 'set-url', 'origin', mirror_dir,
232
+ can_fail_build=can_fail_build,
233
+ cwd=dir_path)
216
234
 
217
235
  # There are five kinds of refs we can be handed:
218
236
  # 0) None. In this case, we default to properties['branch'].
@@ -246,7 +264,7 @@ class GitApi(recipe_api.RecipeApi):
246
264
  if recursive:
247
265
  fetch_args.append('--recurse-submodules')
248
266
 
249
- fetch_env = {}
267
+ fetch_env = {'PATH': path}
250
268
  fetch_stderr = None
251
269
  if curl_trace_file:
252
270
  fetch_env['GIT_CURL_VERBOSE'] = '1'
@@ -21,6 +21,9 @@
21
21
  "--recurse-submodules"
22
22
  ],
23
23
  "cwd": "[SLAVE_BUILD]/src",
24
+ "env": {
25
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
26
+ },
24
27
  "name": "git fetch"
25
28
  },
26
29
  {
@@ -21,6 +21,9 @@
21
21
  "--recurse-submodules"
22
22
  ],
23
23
  "cwd": "[SLAVE_BUILD]/src",
24
+ "env": {
25
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
26
+ },
24
27
  "name": "git fetch"
25
28
  },
26
29
  {
@@ -21,6 +21,9 @@
21
21
  "--recurse-submodules"
22
22
  ],
23
23
  "cwd": "[SLAVE_BUILD]/src",
24
+ "env": {
25
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
26
+ },
24
27
  "name": "git fetch"
25
28
  },
26
29
  {
@@ -20,6 +20,9 @@
20
20
  "--recurse-submodules"
21
21
  ],
22
22
  "cwd": "[SLAVE_BUILD]/src",
23
+ "env": {
24
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
25
+ },
23
26
  "name": "git fetch"
24
27
  },
25
28
  {
@@ -21,6 +21,9 @@
21
21
  "--recurse-submodules"
22
22
  ],
23
23
  "cwd": "[SLAVE_BUILD]/src",
24
+ "env": {
25
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
26
+ },
24
27
  "name": "git fetch"
25
28
  },
26
29
  {
@@ -21,6 +21,9 @@
21
21
  "--recurse-submodules"
22
22
  ],
23
23
  "cwd": "[SLAVE_BUILD]/src",
24
+ "env": {
25
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
26
+ },
24
27
  "name": "git fetch"
25
28
  },
26
29
  {
@@ -21,6 +21,9 @@
21
21
  "--recurse-submodules"
22
22
  ],
23
23
  "cwd": "[SLAVE_BUILD]/src",
24
+ "env": {
25
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
26
+ },
24
27
  "name": "git fetch"
25
28
  },
26
29
  {
@@ -21,6 +21,9 @@
21
21
  "--recurse-submodules"
22
22
  ],
23
23
  "cwd": "[SLAVE_BUILD]/src",
24
+ "env": {
25
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
26
+ },
24
27
  "name": "git fetch"
25
28
  },
26
29
  {
@@ -21,6 +21,9 @@
21
21
  "--recurse-submodules"
22
22
  ],
23
23
  "cwd": "[SLAVE_BUILD]/src",
24
+ "env": {
25
+ "PATH": "RECIPE_PACKAGE_REPO[depot_tools]:%(PATH)s"
26
+ },
24
27
  "name": "git fetch"
25
28
  },
26
29
  {