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.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -0
- data/Rakefile +4 -4
- data/ext/libv8/paths.rb +1 -1
- data/lib/libv8/version.rb +1 -1
- data/libv8.gemspec +1 -1
- data/patches/0001-Build-a-standalone-static-library.patch +4 -4
- data/patches/0002-Don-t-compile-unnecessary-stuff.patch +4 -4
- data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +4 -4
- data/patches/0004-Reinterpret-thread-hash-for-FreeBSD-too.patch +8 -8
- data/spec/location_spec.rb +1 -1
- data/vendor/depot_tools/README.gclient.md +67 -0
- data/vendor/depot_tools/README.git-cl.md +112 -0
- data/vendor/depot_tools/README.md +50 -36
- data/vendor/depot_tools/bootstrap/win/README.md +5 -5
- data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +203 -0
- data/vendor/depot_tools/bootstrap/win/git_version.txt +1 -0
- data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +1 -0
- data/vendor/depot_tools/bootstrap/win/win_tools.bat +1 -148
- data/vendor/depot_tools/cit.py +27 -21
- data/vendor/depot_tools/codereview.settings +1 -1
- data/vendor/depot_tools/cpplint.py +1 -1
- data/vendor/depot_tools/fix_encoding.py +1 -1
- data/vendor/depot_tools/gclient.py +4 -3
- data/vendor/depot_tools/gclient_scm.py +20 -9
- data/vendor/depot_tools/gclient_utils.py +84 -13
- data/vendor/depot_tools/gerrit_util.py +1 -1
- data/vendor/depot_tools/git_cl.py +374 -218
- data/vendor/depot_tools/git_cl_completion.sh +34 -0
- data/vendor/depot_tools/git_common.py +11 -7
- data/vendor/depot_tools/infra/config/OWNERS +1 -0
- data/vendor/depot_tools/infra/config/cq.cfg +3 -12
- data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
- data/vendor/depot_tools/presubmit_canned_checks.py +4 -2
- data/vendor/depot_tools/presubmit_support.py +26 -40
- data/vendor/depot_tools/recipe_modules/bot_update/api.py +31 -11
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/apply_gerrit_ref.json +26 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_output_manifest.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/clobber.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/forced.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +44 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/no_shallow.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/off.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +3 -3
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +1 -1
- data/vendor/depot_tools/recipe_modules/bot_update/example.py +35 -18
- data/vendor/depot_tools/recipe_modules/bot_update/resources/apply_gerrit.py +33 -0
- data/vendor/depot_tools/recipe_modules/bot_update/resources/bot_update.py +45 -76
- data/vendor/depot_tools/recipe_modules/bot_update/test_api.py +13 -18
- data/vendor/depot_tools/recipe_modules/cipd/__init__.py +10 -0
- data/vendor/depot_tools/recipe_modules/cipd/api.py +244 -0
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/basic.json +445 -0
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-failed.json +128 -0
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-many-instances.json +453 -0
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/install-failed.json +31 -0
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/mac64.json +445 -0
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/win64.json +445 -0
- data/vendor/depot_tools/recipe_modules/cipd/example.py +115 -0
- data/vendor/depot_tools/recipe_modules/cipd/resources/bootstrap.py +218 -0
- data/vendor/depot_tools/recipe_modules/cipd/test_api.py +102 -0
- data/vendor/depot_tools/recipe_modules/gclient/api.py +34 -53
- data/vendor/depot_tools/recipe_modules/gclient/config.py +22 -128
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/basic.json +44 -6
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/revision.json +44 -6
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/tryserver.json +44 -17
- data/vendor/depot_tools/recipe_modules/gclient/example.py +1 -1
- data/vendor/depot_tools/recipe_modules/gclient/test_api.py +4 -9
- data/vendor/depot_tools/recipe_modules/git/api.py +25 -7
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_branch.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_file_name.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_hash.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_ref.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_submodule_update_force.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/can_fail_build.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/cannot_fail_build.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/cat-file_test.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_delta.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_failed.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output_fails_build.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/curl_trace_file.json +2 -1
- data/vendor/depot_tools/recipe_modules/git/example.expected/git-cache-checkout.json +41 -3
- data/vendor/depot_tools/recipe_modules/git/example.expected/platform_win.json +7 -1
- data/vendor/depot_tools/recipe_modules/git/example.expected/rebase_failed.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/remote_not_origin.json +3 -0
- data/vendor/depot_tools/recipe_modules/git/example.expected/set_got_revision.json +3 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch.json +4 -1
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch_new.json +4 -1
- data/vendor/depot_tools/recipes.py +8 -2
- data/vendor/depot_tools/roll-dep-svn.bat +10 -10
- data/vendor/depot_tools/roll_dep.py +0 -1
- data/vendor/depot_tools/third_party/upload.py +1 -25
- data/vendor/depot_tools/upload_to_google_storage.py +1 -1
- metadata +24 -32
- data/release/armhf-linux/Vagrantfile +0 -97
- data/release/armhf-linux/initrd.img +0 -0
- data/release/armhf-linux/vmlinuz +0 -0
- data/release/x86-linux/Vagrantfile +0 -85
- data/release/x86_64-freebsd-10/Vagrantfile +0 -88
- data/release/x86_64-linux/Vagrantfile +0 -85
- data/vendor/depot_tools/README.codereview +0 -99
- data/vendor/depot_tools/README.gclient +0 -82
- data/vendor/depot_tools/README.git-cl +0 -52
- data/vendor/depot_tools/chrome-update-create-task.bat +0 -52
- data/vendor/depot_tools/chrome-update.bat +0 -5
- data/vendor/depot_tools/chrome-update.py +0 -91
- data/vendor/depot_tools/create-chromium-git-src +0 -200
- data/vendor/depot_tools/drover +0 -25
- data/vendor/depot_tools/drover.bat +0 -9
- data/vendor/depot_tools/drover.py +0 -648
- data/vendor/depot_tools/gcl +0 -8
- data/vendor/depot_tools/gcl.bat +0 -6
- data/vendor/depot_tools/gcl.py +0 -1523
- data/vendor/depot_tools/git-try +0 -9
- data/vendor/depot_tools/git_try.py +0 -76
- data/vendor/depot_tools/luci_hacks/README.md +0 -35
- data/vendor/depot_tools/luci_hacks/__init__.py +0 -0
- data/vendor/depot_tools/luci_hacks/luci_recipe_run.isolate +0 -12
- data/vendor/depot_tools/luci_hacks/luci_recipe_run.py +0 -81
- data/vendor/depot_tools/luci_hacks/trigger_luci_job.py +0 -128
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/svn_mode.json +0 -59
- 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
|
-
"--
|
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\":
|
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\":
|
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
|
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
|
-
"--
|
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\":
|
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\":
|
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
|
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
|
-
"--
|
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\":
|
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\":
|
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
|
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(
|
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
|
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
|
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
|
29
|
+
def gen_revision(project):
|
31
30
|
"""Hash project to bogus deterministic revision values."""
|
32
31
|
h = hashlib.sha1(project)
|
33
|
-
|
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.
|
44
|
+
self.m.python(
|
45
45
|
'ensure git tooling on windows',
|
46
|
-
|
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('
|
213
|
-
|
214
|
-
|
215
|
-
|
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'
|