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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +1 -0
- data/Rakefile +8 -1
- data/ext/libv8/arch.rb +5 -5
- data/ext/libv8/builder.rb +9 -5
- data/lib/libv8/version.rb +1 -1
- data/patches/0001-Build-a-standalone-static-library.patch +2 -2
- data/patches/0002-Don-t-compile-unnecessary-stuff.patch +11 -7
- data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +2 -2
- data/patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch +2 -2
- data/vendor/depot_tools/.gitignore +1 -0
- data/vendor/depot_tools/cbuildbot +1 -1
- data/vendor/depot_tools/chrome_set_ver +1 -1
- data/vendor/depot_tools/cipd_client_version +1 -1
- data/vendor/depot_tools/cit.py +1 -1
- data/vendor/depot_tools/cpplint.py +2 -1
- data/vendor/depot_tools/cros +1 -1
- data/vendor/depot_tools/cros_sdk +1 -1
- data/vendor/depot_tools/gclient.py +3 -2
- data/vendor/depot_tools/gerrit_util.py +99 -55
- data/vendor/depot_tools/git_cache.py +22 -6
- data/vendor/depot_tools/git_cl.py +532 -92
- data/vendor/depot_tools/git_common.py +3 -1
- data/vendor/depot_tools/infra/config/recipes.cfg +21 -8
- data/vendor/depot_tools/man/html/depot_tools.html +9 -1
- data/vendor/depot_tools/man/html/git-cl.html +1025 -0
- data/vendor/depot_tools/man/html/git-squash-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-upstream-diff.html +1 -1
- data/vendor/depot_tools/man/man1/git-cl.1 +193 -0
- data/vendor/depot_tools/man/man1/git-squash-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-upstream-diff.1 +3 -3
- data/vendor/depot_tools/man/man7/depot_tools.7 +8 -3
- data/vendor/depot_tools/man/src/_git-cl_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/git-cl.txt +116 -0
- data/vendor/depot_tools/my_activity.py +226 -50
- data/vendor/depot_tools/owners.py +50 -25
- data/vendor/depot_tools/presubmit_canned_checks.py +3 -0
- data/vendor/depot_tools/presubmit_support.py +19 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/OWNERS +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/api.py +14 -11
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/apply_gerrit_ref.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/basic.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/basic_output_manifest.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/basic_with_branch_heads.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/buildbot.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/clobber.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/gerrit_no_reset.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/no_shallow.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/reset_root_solution_revision.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2_buildbot.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2_json.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/trychange_oauth2_json_win.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_fail.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_fail_patch.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_fail_patch_download.json +2 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_gerrit_angle.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_v8.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.expected/tryjob_v8_head_by_default.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/example.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/resources/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/resources/apply_gerrit.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/resources/bot_update.py +2 -2
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/bot_update/test_api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/__init__.py +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/api.py +412 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/basic.json +8 -2
- data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/basic_pkg.json +405 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/describe-failed.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/describe-many-instances.json +8 -2
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/mac64.json +8 -2
- data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/pkg_bad_file.json +289 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/pkg_bad_mode.json +289 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/example.expected/pkg_bad_verfile.json +289 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.expected/win64.json +21 -15
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/example.py +101 -20
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/cipd/test_api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/example.expected/basic.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/example.expected/win.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/depot_tools/example.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/api.py +12 -10
- data/vendor/depot_tools/recipes/recipe_modules/gclient/bundle_extra_paths.txt +4 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/config.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/basic.json +9 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/buildbot.json +9 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/revision.json +9 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.expected/tryserver.json +9 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/example.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gclient/test_api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/__init__.py +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/api.py +11 -10
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/example.expected/basic.json +2 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/example.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gerrit/test_api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/api.py +8 -7
- data/vendor/depot_tools/recipes/recipe_modules/git/bundle_extra_paths.txt +28 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_branch.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_file_name.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_hash.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_ref.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/basic_submodule_update_force.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/can_fail_build.json +12 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/cannot_fail_build.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/cat-file_test.json +19 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_delta.json +19 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_failed.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_with_bad_output.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/count-objects_with_bad_output_fails_build.json +7 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/curl_trace_file.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/git-cache-checkout.json +20 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/platform_win.json +18 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/rebase_failed.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/remote_not_origin.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.expected/set_got_revision.json +17 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/example.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/resources/git_setup.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git/test_api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/config.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/example.expected/basic.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/git_cl/example.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/example.expected/basic.json +11 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/example.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/gsutil/resources/gsutil_smart_retry.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/example.expected/basic.json +1 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +15 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +15 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +15 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_linux.json +15 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_mac.json +15 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_win.json +15 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +15 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +15 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +15 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/example.py +2 -3
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/path_config.py +5 -3
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/__init__.py +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/api.py +7 -6
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/bundle_extra_paths.txt +30 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/example.expected/basic.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/presubmit/example.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/example.expected/basic.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/example.expected/buildbot.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/rietveld/example.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/__init__.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/api.py +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/basic_tags.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/set_failure_hash_with_no_steps.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_gerrit_patch.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_gerrit_patch_deprecated.json +1 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_git_patch.json +4 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_git_patch_luci.json +0 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_rietveld_patch.json +4 -2
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_rietveld_patch_new.json +4 -2
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_wrong_patch.json +2 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.expected/with_wrong_patch_new.json +2 -0
- data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/tryserver/example.py +0 -0
- data/vendor/depot_tools/{recipes.py → recipes/recipes.py} +57 -81
- data/vendor/depot_tools/roll_dep.py +13 -5
- data/vendor/depot_tools/scm.py +7 -0
- data/vendor/depot_tools/third_party/upload.py +4 -0
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +3 -39
- data/vendor/depot_tools/win_toolchain/package_from_installed.py +159 -114
- metadata +144 -133
- data/vendor/depot_tools/recipe_modules/cipd/api.py +0 -219
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +0 -16
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +0 -16
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +0 -16
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +0 -16
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +0 -16
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +0 -16
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json +0 -16
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json +0 -16
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json +0 -16
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,8 +3,7 @@
|
|
3
3
|
"cmd": [],
|
4
4
|
"name": "show cache path",
|
5
5
|
"~followup_annotations": [
|
6
|
-
"@@@STEP_LOG_LINE@result@
|
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
|
+
]
|
data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json
ADDED
@@ -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
|
+
]
|
data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json
ADDED
@@ -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
|
+
]
|
data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_linux.json
ADDED
@@ -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
|
+
]
|
data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_mac.json
ADDED
@@ -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
|
+
]
|
data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_win.json
ADDED
@@ -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
|
+
]
|
data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json
ADDED
@@ -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
|
+
]
|
data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json
ADDED
@@ -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
|
+
]
|
data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json
ADDED
@@ -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
|
-
|
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', '
|
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) +
|
data/vendor/depot_tools/{recipe_modules → recipes/recipe_modules}/infra_paths/path_config.py
RENAMED
@@ -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(
|
55
|
-
def
|
56
|
-
c.base_paths['
|
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',)
|
@@ -14,10 +14,11 @@ class PresubmitApi(recipe_api.RecipeApi):
|
|
14
14
|
|
15
15
|
name = kwargs.pop('name', 'presubmit')
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
|
23
|
-
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -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": [
|
File without changes
|
@@ -41,8 +41,9 @@
|
|
41
41
|
"name": "parse description",
|
42
42
|
"stdin": "foobar",
|
43
43
|
"~followup_annotations": [
|
44
|
-
"@@@
|
45
|
-
"@@@
|
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
|
-
"@@@
|
45
|
-
"@@@
|
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": [
|
File without changes
|
@@ -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
|
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
|
38
|
-
|
41
|
+
import urlparse
|
39
42
|
|
40
|
-
|
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
|
-
|
48
|
-
|
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
|
-
|
52
|
-
|
53
|
-
|
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
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
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
|
-
|
150
|
-
|
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
|
-
|
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(
|
170
|
-
_subprocess_check_call([git, 'clone', engine_url,
|
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=
|
150
|
+
cwd=engine_root_path, stdout=open(os.devnull, 'w'))
|
175
151
|
if needs_fetch:
|
176
|
-
_subprocess_check_call([git, 'fetch'], cwd=
|
152
|
+
_subprocess_check_call([git, 'fetch'], cwd=engine_root_path)
|
177
153
|
_subprocess_check_call(
|
178
|
-
[git, 'checkout', '--quiet', engine_revision], cwd=
|
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,
|
168
|
+
os.path.join(engine_path, 'recipes.py')] + args)
|
193
169
|
|
194
170
|
if __name__ == '__main__':
|
195
171
|
sys.exit(main())
|