libv8 5.3.332.38.5 → 5.6.326.50.0beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -1
- data/CHANGELOG.md +2 -0
- data/ext/libv8/builder.rb +2 -2
- data/lib/libv8/version.rb +1 -1
- data/patches/0001-Build-a-standalone-static-library.patch +4 -4
- data/patches/0002-Don-t-compile-unnecessary-stuff.patch +16 -11
- data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +4 -4
- data/patches/{0005-Do-not-embed-debug-symbols-in-macOS-libraries.patch → 0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch} +4 -4
- data/vendor/depot_tools/.gitignore +4 -0
- data/vendor/depot_tools/OWNERS +0 -2
- data/vendor/depot_tools/PRESUBMIT.py +20 -23
- data/vendor/depot_tools/README.gclient.md +3 -3
- data/vendor/depot_tools/README.git-cl.md +13 -12
- data/vendor/depot_tools/README.md +2 -3
- data/vendor/depot_tools/WATCHLISTS +0 -1
- data/vendor/depot_tools/appengine_mapper.py +23 -0
- data/vendor/depot_tools/apply_issue.py +2 -8
- data/vendor/depot_tools/bootstrap/win/README.md +1 -8
- data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +6 -16
- data/vendor/depot_tools/bootstrap/win/git_version.txt +1 -1
- data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +1 -1
- data/vendor/depot_tools/checkout.py +20 -433
- data/vendor/depot_tools/cipd +73 -0
- data/vendor/depot_tools/cipd.bat +12 -0
- data/vendor/depot_tools/cipd.ps1 +57 -0
- data/vendor/depot_tools/cipd_client_version +1 -0
- data/vendor/depot_tools/clang_format.py +9 -6
- data/vendor/depot_tools/clang_format_merge_driver +8 -0
- data/vendor/depot_tools/clang_format_merge_driver.bat +11 -0
- data/vendor/depot_tools/clang_format_merge_driver.py +67 -0
- data/vendor/depot_tools/codereview.settings +3 -2
- data/vendor/depot_tools/commit_queue.py +1 -1
- data/vendor/depot_tools/cpplint.py +2 -0
- data/vendor/depot_tools/fetch.py +1 -54
- data/vendor/depot_tools/fetch_configs/android.py +2 -2
- data/vendor/depot_tools/fetch_configs/breakpad.py +2 -3
- data/vendor/depot_tools/fetch_configs/chromium.py +2 -3
- data/vendor/depot_tools/fetch_configs/crashpad.py +2 -2
- data/vendor/depot_tools/fetch_configs/dart.py +2 -3
- data/vendor/depot_tools/fetch_configs/dartino.py +2 -3
- data/vendor/depot_tools/fetch_configs/dartium.py +2 -3
- data/vendor/depot_tools/fetch_configs/depot_tools.py +3 -6
- data/vendor/depot_tools/fetch_configs/gyp.py +2 -3
- data/vendor/depot_tools/fetch_configs/infra.py +2 -2
- data/vendor/depot_tools/fetch_configs/infra_internal.py +2 -2
- data/vendor/depot_tools/fetch_configs/ios.py +2 -2
- data/vendor/depot_tools/fetch_configs/ios_internal.py +2 -3
- data/vendor/depot_tools/fetch_configs/mojo.py +2 -3
- data/vendor/depot_tools/fetch_configs/nacl.py +2 -3
- data/vendor/depot_tools/fetch_configs/naclports.py +2 -3
- data/vendor/depot_tools/fetch_configs/pdfium.py +2 -2
- data/vendor/depot_tools/fetch_configs/skia.py +2 -2
- data/vendor/depot_tools/fetch_configs/skia_buildbot.py +2 -2
- data/vendor/depot_tools/fetch_configs/syzygy.py +2 -2
- data/vendor/depot_tools/fetch_configs/v8.py +2 -3
- data/vendor/depot_tools/fetch_configs/webrtc.py +5 -3
- data/vendor/depot_tools/fetch_configs/webrtc_android.py +2 -2
- data/vendor/depot_tools/fetch_configs/webrtc_ios.py +2 -2
- data/vendor/depot_tools/fix_encoding.py +6 -6
- data/vendor/depot_tools/gclient.py +136 -368
- data/vendor/depot_tools/gclient_scm.py +108 -647
- data/vendor/depot_tools/gclient_utils.py +22 -86
- data/vendor/depot_tools/gerrit_client.py +105 -0
- data/vendor/depot_tools/gerrit_util.py +174 -67
- data/vendor/depot_tools/git-crrev-parse +6 -7
- data/vendor/depot_tools/git-gs +1 -1
- data/vendor/depot_tools/git_cache.py +68 -18
- data/vendor/depot_tools/git_cherry_pick_upload.py +4 -4
- data/vendor/depot_tools/git_cl.py +1028 -961
- data/vendor/depot_tools/git_common.py +2 -3
- data/vendor/depot_tools/git_drover.py +0 -1
- data/vendor/depot_tools/git_footers.py +3 -43
- data/vendor/depot_tools/git_rebase_update.py +9 -1
- data/vendor/depot_tools/git_squash_branch.py +1 -1
- data/vendor/depot_tools/infra/config/cq.cfg +8 -1
- data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
- data/vendor/depot_tools/man/html/depot_tools.html +3 -11
- data/vendor/depot_tools/man/html/depot_tools_tutorial.html +9 -9
- data/vendor/depot_tools/man/html/git-cherry-pick-upload.html +2 -2
- data/vendor/depot_tools/man/html/git-drover.html +17 -17
- data/vendor/depot_tools/man/html/git-footers.html +2 -2
- data/vendor/depot_tools/man/html/git-freeze.html +4 -4
- data/vendor/depot_tools/man/html/git-hyper-blame.html +2 -2
- data/vendor/depot_tools/man/html/git-map-branches.html +2 -2
- data/vendor/depot_tools/man/html/git-map.html +2 -2
- data/vendor/depot_tools/man/html/git-mark-merge-base.html +2 -2
- data/vendor/depot_tools/man/html/git-nav-downstream.html +2 -2
- data/vendor/depot_tools/man/html/git-nav-upstream.html +2 -2
- data/vendor/depot_tools/man/html/git-new-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-rebase-update.html +2 -2
- data/vendor/depot_tools/man/html/git-rename-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-reparent-branch.html +2 -2
- data/vendor/depot_tools/man/html/git-retry.html +3 -3
- data/vendor/depot_tools/man/html/git-squash-branch.html +3 -3
- data/vendor/depot_tools/man/html/git-thaw.html +2 -2
- data/vendor/depot_tools/man/html/git-upstream-diff.html +3 -3
- data/vendor/depot_tools/man/man1/git-cherry-pick-upload.1 +4 -4
- data/vendor/depot_tools/man/man1/git-drover.1 +19 -19
- data/vendor/depot_tools/man/man1/git-footers.1 +4 -4
- data/vendor/depot_tools/man/man1/git-freeze.1 +6 -6
- data/vendor/depot_tools/man/man1/git-hyper-blame.1 +4 -4
- data/vendor/depot_tools/man/man1/git-map-branches.1 +4 -4
- data/vendor/depot_tools/man/man1/git-map.1 +4 -4
- data/vendor/depot_tools/man/man1/git-mark-merge-base.1 +4 -4
- data/vendor/depot_tools/man/man1/git-nav-downstream.1 +4 -4
- data/vendor/depot_tools/man/man1/git-nav-upstream.1 +4 -4
- data/vendor/depot_tools/man/man1/git-new-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-rebase-update.1 +4 -4
- data/vendor/depot_tools/man/man1/git-rename-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-reparent-branch.1 +4 -4
- data/vendor/depot_tools/man/man1/git-retry.1 +5 -5
- data/vendor/depot_tools/man/man1/git-squash-branch.1 +5 -5
- data/vendor/depot_tools/man/man1/git-thaw.1 +4 -4
- data/vendor/depot_tools/man/man1/git-upstream-diff.1 +5 -5
- data/vendor/depot_tools/man/man7/depot_tools.7 +5 -10
- data/vendor/depot_tools/man/man7/depot_tools_tutorial.7 +4 -4
- data/vendor/depot_tools/man/src/depot_tools.txt +1 -1
- data/vendor/depot_tools/man/src/depot_tools_tutorial.txt +7 -7
- data/vendor/depot_tools/man/src/filter_demo_output.py +2 -2
- data/vendor/depot_tools/man/src/git-footers.demo.1.sh +1 -1
- data/vendor/depot_tools/man/src/git-retry.txt +1 -1
- data/vendor/depot_tools/man/src/git-squash-branch.txt +2 -2
- data/vendor/depot_tools/man/src/git-upstream-diff.txt +1 -1
- data/vendor/depot_tools/my_activity.py +6 -3
- data/vendor/depot_tools/my_reviews.py +1 -1
- data/vendor/depot_tools/ninja +2 -2
- data/vendor/depot_tools/ninja-linux32 +0 -0
- data/vendor/depot_tools/ninja-linux64 +0 -0
- data/vendor/depot_tools/ninja-mac +0 -0
- data/vendor/depot_tools/ninja.exe +0 -0
- data/vendor/depot_tools/owners.py +14 -3
- data/vendor/depot_tools/presubmit_canned_checks.py +46 -67
- data/vendor/depot_tools/presubmit_support.py +109 -371
- data/vendor/depot_tools/pylintrc +83 -56
- data/vendor/depot_tools/recipe_modules/OWNERS +1 -0
- data/vendor/depot_tools/recipe_modules/bot_update/__init__.py +18 -9
- data/vendor/depot_tools/recipe_modules/bot_update/api.py +56 -55
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic.json +3 -7
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_output_manifest.json +3 -7
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +3 -7
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/buildbot.json +52 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/clobber.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/no_shallow.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +19 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange.json +3 -7
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2.json +2 -54
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2_buildbot.json +56 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/{forced.json → trychange_oauth2_json.json} +6 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/trychange_oauth2_json_win.json +54 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +20 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +59 -0
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8.json +9 -9
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +20 -10
- data/vendor/depot_tools/recipe_modules/bot_update/example.py +45 -63
- data/vendor/depot_tools/recipe_modules/bot_update/resources/bot_update.py +210 -807
- data/vendor/depot_tools/recipe_modules/bot_update/test_api.py +34 -45
- data/vendor/depot_tools/recipe_modules/cipd/api.py +59 -84
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/basic.json +71 -117
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-failed.json +14 -60
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/describe-many-instances.json +71 -117
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/mac64.json +71 -117
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/win64.json +71 -117
- data/vendor/depot_tools/recipe_modules/cipd/example.py +2 -12
- data/vendor/depot_tools/recipe_modules/cipd/test_api.py +0 -9
- data/vendor/depot_tools/recipe_modules/depot_tools/api.py +6 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/example.expected/basic.json +7 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/example.expected/win.json +7 -0
- data/vendor/depot_tools/recipe_modules/depot_tools/example.py +3 -0
- data/vendor/depot_tools/recipe_modules/gclient/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/gclient/api.py +9 -22
- data/vendor/depot_tools/recipe_modules/gclient/config.py +18 -5
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/basic.json +14 -14
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/buildbot.json +211 -0
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/revision.json +16 -14
- data/vendor/depot_tools/recipe_modules/gclient/example.expected/tryserver.json +16 -14
- data/vendor/depot_tools/recipe_modules/gclient/example.py +13 -11
- data/vendor/depot_tools/recipe_modules/gerrit/__init__.py +6 -0
- data/vendor/depot_tools/recipe_modules/gerrit/api.py +63 -0
- data/vendor/depot_tools/recipe_modules/gerrit/example.expected/basic.json +64 -0
- data/vendor/depot_tools/recipe_modules/gerrit/example.py +35 -0
- data/vendor/depot_tools/recipe_modules/gerrit/test_api.py +24 -0
- data/vendor/depot_tools/recipe_modules/git/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/git/api.py +155 -142
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_branch.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_file_name.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_hash.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_ref.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/basic_submodule_update_force.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/can_fail_build.json +13 -13
- data/vendor/depot_tools/recipe_modules/git/example.expected/cannot_fail_build.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/cat-file_test.json +45 -19
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_delta.json +45 -19
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_failed.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/count-objects_with_bad_output_fails_build.json +8 -8
- data/vendor/depot_tools/recipe_modules/git/example.expected/curl_trace_file.json +44 -18
- data/vendor/depot_tools/recipe_modules/git/example.expected/git-cache-checkout.json +48 -22
- data/vendor/depot_tools/recipe_modules/git/example.expected/platform_win.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/rebase_failed.json +42 -16
- data/vendor/depot_tools/recipe_modules/git/example.expected/remote_not_origin.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.expected/set_got_revision.json +43 -17
- data/vendor/depot_tools/recipe_modules/git/example.py +9 -3
- data/vendor/depot_tools/recipe_modules/git_cl/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/git_cl/api.py +8 -8
- data/vendor/depot_tools/recipe_modules/git_cl/example.py +1 -1
- data/vendor/depot_tools/recipe_modules/gsutil/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/gsutil/api.py +196 -0
- data/vendor/depot_tools/recipe_modules/gsutil/example.expected/basic.json +186 -0
- data/vendor/depot_tools/recipe_modules/gsutil/example.py +77 -0
- data/vendor/depot_tools/recipe_modules/gsutil/resources/gsutil_smart_retry.py +69 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/__init__.py +3 -0
- data/vendor/depot_tools/recipe_modules/infra_paths/api.py +20 -3
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/basic.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_linux.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_mac.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_buildbot_win.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_linux.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_mac.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.expected/paths_swarmbucket_win.json +3 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/example.py +6 -1
- data/vendor/depot_tools/recipe_modules/infra_paths/path_config.py +4 -6
- data/vendor/depot_tools/recipe_modules/rietveld/__init__.py +5 -0
- data/vendor/depot_tools/recipe_modules/rietveld/api.py +12 -9
- data/vendor/depot_tools/recipe_modules/rietveld/example.expected/basic.json +2 -24
- data/vendor/depot_tools/recipe_modules/rietveld/example.expected/buildbot.json +30 -0
- data/vendor/depot_tools/recipe_modules/rietveld/example.py +12 -6
- data/vendor/depot_tools/recipe_modules/tryserver/__init__.py +4 -0
- data/vendor/depot_tools/recipe_modules/tryserver/api.py +46 -70
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/set_failure_hash_with_no_steps.json +8 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/{with_svn_patch.json → with_gerrit_patch.json} +1 -31
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_gerrit_patch_deprecated.json +39 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_git_patch.json +2 -2
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_git_patch_luci.json +8 -0
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch.json +3 -3
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch_new.json +3 -3
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch.json +1 -1
- data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_wrong_patch_new.json +1 -1
- data/vendor/depot_tools/recipe_modules/tryserver/example.py +35 -5
- data/vendor/depot_tools/recipes.py +52 -28
- data/vendor/depot_tools/repo +216 -69
- data/vendor/depot_tools/rietveld.py +20 -15
- data/vendor/depot_tools/roll_dep.py +1 -1
- data/vendor/depot_tools/scm.py +11 -826
- data/vendor/depot_tools/subprocess2.py +5 -5
- data/vendor/depot_tools/third_party/cq_client/README.depot_tools.md +2 -0
- data/vendor/depot_tools/third_party/cq_client/README.md +5 -1
- data/vendor/depot_tools/third_party/cq_client/cq.pb.go +183 -104
- data/vendor/depot_tools/third_party/cq_client/cq.proto +43 -27
- data/vendor/depot_tools/third_party/cq_client/cq_pb2.py +95 -29
- data/vendor/depot_tools/third_party/cq_client/testdata/cq_both.cfg +67 -0
- data/vendor/depot_tools/third_party/cq_client/testdata/cq_gerrit.cfg +1 -2
- data/vendor/depot_tools/third_party/cq_client/testdata/cq_rietveld.cfg +0 -3
- data/vendor/depot_tools/third_party/upload.py +44 -24
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +0 -5
- metadata +38 -93
- data/patches/0004-Reinterpret-thread-hash-for-FreeBSD-too.patch +0 -25
- data/vendor/depot_tools/git-auto-svn +0 -6
- data/vendor/depot_tools/git_auto_svn.py +0 -122
- data/vendor/depot_tools/man/html/git-auto-svn.html +0 -837
- data/vendor/depot_tools/man/man1/git-auto-svn.1 +0 -113
- data/vendor/depot_tools/man/src/_git-auto-svn_desc.helper.txt +0 -1
- data/vendor/depot_tools/man/src/git-auto-svn.txt +0 -69
- data/vendor/depot_tools/recipe_modules/bot_update/example.expected/off.json +0 -43
- data/vendor/depot_tools/recipe_modules/cipd/example.expected/install-failed.json +0 -31
- data/vendor/depot_tools/recipe_modules/cipd/resources/bootstrap.py +0 -218
- data/vendor/depot_tools/recipe_modules/tryserver/test_api.py +0 -7
- data/vendor/depot_tools/third_party/gsutil/CHECKSUM +0 -1
- data/vendor/depot_tools/third_party/gsutil/COPYING +0 -202
- data/vendor/depot_tools/third_party/gsutil/LICENSE.third_party +0 -295
- data/vendor/depot_tools/third_party/gsutil/MANIFEST.in +0 -5
- data/vendor/depot_tools/third_party/gsutil/README +0 -38
- data/vendor/depot_tools/third_party/gsutil/README.chromium +0 -25
- data/vendor/depot_tools/third_party/gsutil/README.pkg +0 -49
- data/vendor/depot_tools/third_party/gsutil/ReleaseNotes.txt +0 -825
- data/vendor/depot_tools/third_party/gsutil/VERSION +0 -1
- data/vendor/depot_tools/third_party/gsutil/gslib/README +0 -5
- data/vendor/depot_tools/third_party/gsutil/gslib/__init__.py +0 -22
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/__init__.py +0 -15
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/acls.py +0 -234
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/anon.py +0 -57
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/command_opts.py +0 -116
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/dev.py +0 -139
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/metadata.py +0 -186
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/naming.py +0 -173
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/prod.py +0 -160
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/projects.py +0 -130
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/subdirs.py +0 -110
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/support.py +0 -86
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/versioning.py +0 -242
- data/vendor/depot_tools/third_party/gsutil/gslib/addlhelp/wildcards.py +0 -170
- data/vendor/depot_tools/third_party/gsutil/gslib/bucket_listing_ref.py +0 -175
- data/vendor/depot_tools/third_party/gsutil/gslib/command.py +0 -725
- data/vendor/depot_tools/third_party/gsutil/gslib/command_runner.py +0 -102
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/__init__.py +0 -15
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/cat.py +0 -131
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/chacl.py +0 -523
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/config.py +0 -662
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/cp.py +0 -1819
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/disablelogging.py +0 -101
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/enablelogging.py +0 -149
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getacl.py +0 -82
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getcors.py +0 -121
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getdefacl.py +0 -86
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getlogging.py +0 -137
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getversioning.py +0 -116
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/getwebcfg.py +0 -122
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/help.py +0 -218
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/ls.py +0 -578
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/mb.py +0 -172
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/mv.py +0 -159
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/perfdiag.py +0 -903
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/rb.py +0 -113
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/rm.py +0 -237
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setacl.py +0 -138
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setcors.py +0 -145
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setdefacl.py +0 -105
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setmeta.py +0 -420
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setversioning.py +0 -114
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/setwebcfg.py +0 -190
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/update.py +0 -305
- data/vendor/depot_tools/third_party/gsutil/gslib/commands/version.py +0 -150
- data/vendor/depot_tools/third_party/gsutil/gslib/exception.py +0 -76
- data/vendor/depot_tools/third_party/gsutil/gslib/help_provider.py +0 -81
- data/vendor/depot_tools/third_party/gsutil/gslib/name_expansion.py +0 -550
- data/vendor/depot_tools/third_party/gsutil/gslib/no_op_auth_plugin.py +0 -30
- data/vendor/depot_tools/third_party/gsutil/gslib/plurality_checkable_iterator.py +0 -56
- data/vendor/depot_tools/third_party/gsutil/gslib/project_id.py +0 -67
- data/vendor/depot_tools/third_party/gsutil/gslib/storage_uri_builder.py +0 -56
- data/vendor/depot_tools/third_party/gsutil/gslib/thread_pool.py +0 -79
- data/vendor/depot_tools/third_party/gsutil/gslib/util.py +0 -167
- data/vendor/depot_tools/third_party/gsutil/gslib/wildcard_iterator.py +0 -498
- data/vendor/depot_tools/third_party/gsutil/gsutil +0 -384
- data/vendor/depot_tools/third_party/gsutil/gsutil.spec.in +0 -75
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/__init__.py +0 -22
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_client.py +0 -630
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_client_test.py +0 -374
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_helper.py +0 -103
- data/vendor/depot_tools/third_party/gsutil/oauth2_plugin/oauth2_plugin.py +0 -24
- data/vendor/depot_tools/third_party/gsutil/pkg_util.py +0 -60
- data/vendor/depot_tools/third_party/gsutil/plugins/__init__.py +0 -0
- data/vendor/depot_tools/third_party/gsutil/plugins/sso_auth.py +0 -105
@@ -11,14 +11,20 @@ DEPS = [
|
|
11
11
|
]
|
12
12
|
|
13
13
|
def RunSteps(api):
|
14
|
-
api.path['checkout'] = api.path['
|
14
|
+
api.path['checkout'] = api.path['start_dir']
|
15
15
|
api.rietveld.apply_issue('foo', 'bar', authentication='oauth2')
|
16
16
|
api.rietveld.calculate_issue_root({'project': ['']})
|
17
17
|
|
18
18
|
|
19
19
|
def GenTests(api):
|
20
|
-
yield
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
20
|
+
yield api.test('basic') + api.properties(
|
21
|
+
issue=1,
|
22
|
+
patchset=1,
|
23
|
+
rietveld='http://review_tool.url',
|
24
|
+
)
|
25
|
+
yield api.test('buildbot') + api.properties(
|
26
|
+
path_config='buildbot',
|
27
|
+
issue=1,
|
28
|
+
patchset=1,
|
29
|
+
rietveld='http://review_tool.url',
|
30
|
+
)
|
@@ -11,7 +11,6 @@ from recipe_engine import recipe_api
|
|
11
11
|
|
12
12
|
PATCH_STORAGE_RIETVELD = 'rietveld'
|
13
13
|
PATCH_STORAGE_GIT = 'git'
|
14
|
-
PATCH_STORAGE_SVN = 'svn'
|
15
14
|
|
16
15
|
|
17
16
|
class TryserverApi(recipe_api.RecipeApi):
|
@@ -19,17 +18,11 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
19
18
|
super(TryserverApi, self).__init__(*args, **kwargs)
|
20
19
|
self._failure_reasons = []
|
21
20
|
|
22
|
-
@property
|
23
|
-
def patch_url(self):
|
24
|
-
"""Reads patch_url property and corrects it if needed."""
|
25
|
-
url = self.m.properties.get('patch_url')
|
26
|
-
return url
|
27
|
-
|
28
21
|
@property
|
29
22
|
def is_tryserver(self):
|
30
23
|
"""Returns true iff we can apply_issue or patch."""
|
31
|
-
return (
|
32
|
-
|
24
|
+
return (
|
25
|
+
self.can_apply_issue or self.is_patch_in_git or self.is_gerrit_issue)
|
33
26
|
|
34
27
|
@property
|
35
28
|
def can_apply_issue(self):
|
@@ -41,15 +34,13 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
41
34
|
@property
|
42
35
|
def is_gerrit_issue(self):
|
43
36
|
"""Returns true iff the properties exist to match a Gerrit issue."""
|
37
|
+
if self.m.properties.get('patch_storage') == 'gerrit':
|
38
|
+
return True
|
39
|
+
# TODO(tandrii): remove this, once nobody is using buildbot Gerrit Poller.
|
44
40
|
return ('event.patchSet.ref' in self.m.properties and
|
45
41
|
'event.change.url' in self.m.properties and
|
46
42
|
'event.change.id' in self.m.properties)
|
47
43
|
|
48
|
-
@property
|
49
|
-
def is_patch_in_svn(self):
|
50
|
-
"""Returns true iff the properties exist to patch from a patch URL."""
|
51
|
-
return self.patch_url
|
52
|
-
|
53
44
|
@property
|
54
45
|
def is_patch_in_git(self):
|
55
46
|
return (self.m.properties.get('patch_storage') == PATCH_STORAGE_GIT and
|
@@ -73,27 +64,6 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
73
64
|
self.m.step('apply patch', patch_cmd,
|
74
65
|
stdin=patch_content)
|
75
66
|
|
76
|
-
def apply_from_svn(self, cwd):
|
77
|
-
"""Downloads patch from patch_url using svn-export and applies it"""
|
78
|
-
# TODO(nodir): accept these properties as parameters
|
79
|
-
patch_url = self.patch_url
|
80
|
-
root = cwd
|
81
|
-
if root is None:
|
82
|
-
issue_root = self.m.rietveld.calculate_issue_root()
|
83
|
-
root = self.m.path['checkout'].join(issue_root)
|
84
|
-
|
85
|
-
patch_file = self.m.raw_io.output('.diff')
|
86
|
-
ext = '.bat' if self.m.platform.is_win else ''
|
87
|
-
svn_cmd = ['svn' + ext, 'export', '--force', patch_url, patch_file]
|
88
|
-
|
89
|
-
result = self.m.step('download patch', svn_cmd,
|
90
|
-
step_test_data=self.test_api.patch_content)
|
91
|
-
result.presentation.logs['patch.diff'] = (
|
92
|
-
result.raw_io.output.split('\n'))
|
93
|
-
|
94
|
-
patch_content = self.m.raw_io.input(result.raw_io.output)
|
95
|
-
self._apply_patch_step(patch_content=patch_content, root=root)
|
96
|
-
|
97
67
|
def apply_from_git(self, cwd):
|
98
68
|
"""Downloads patch from given git repo and ref and applies it"""
|
99
69
|
# TODO(nodir): accept these properties as parameters
|
@@ -101,17 +71,23 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
101
71
|
patch_ref = self.m.properties['patch_ref']
|
102
72
|
|
103
73
|
patch_dir = self.m.path.mkdtemp('patch')
|
104
|
-
|
74
|
+
try:
|
75
|
+
build_path = self.m.path['build']
|
76
|
+
except KeyError:
|
77
|
+
raise self.m.step.StepFailure(
|
78
|
+
'path["build"] is not defined. '
|
79
|
+
'Possibly this is a LUCI build. '
|
80
|
+
'tryserver.apply_from_git is not supported in LUCI builds.')
|
81
|
+
|
82
|
+
git_setup_py = build_path.join('scripts', 'slave', 'git_setup.py')
|
105
83
|
git_setup_args = ['--path', patch_dir, '--url', patch_repo_url]
|
106
84
|
patch_path = patch_dir.join('patch.diff')
|
107
85
|
|
108
86
|
self.m.python('patch git setup', git_setup_py, git_setup_args)
|
109
|
-
self.m.
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
self.m.git('checkout', '-f', 'FETCH_HEAD',
|
114
|
-
name='patch git checkout', cwd=patch_dir)
|
87
|
+
with self.m.step.context({'cwd': patch_dir}):
|
88
|
+
self.m.git('fetch', 'origin', patch_ref, name='patch fetch')
|
89
|
+
self.m.git('clean', '-f', '-d', '-x', name='patch clean')
|
90
|
+
self.m.git('checkout', '-f', 'FETCH_HEAD', name='patch git checkout')
|
115
91
|
self._apply_patch_step(patch_file=patch_path, root=cwd)
|
116
92
|
self.m.step('remove patch', ['rm', '-rf', patch_dir])
|
117
93
|
|
@@ -123,8 +99,6 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
123
99
|
|
124
100
|
if self.can_apply_issue:
|
125
101
|
return PATCH_STORAGE_RIETVELD
|
126
|
-
elif self.is_patch_in_svn:
|
127
|
-
return PATCH_STORAGE_SVN
|
128
102
|
|
129
103
|
def maybe_apply_issue(self, cwd=None, authentication=None):
|
130
104
|
"""If we're a trybot, apply a codereview issue.
|
@@ -141,8 +115,6 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
141
115
|
return self.m.rietveld.apply_issue(
|
142
116
|
self.m.rietveld.calculate_issue_root(),
|
143
117
|
authentication=authentication)
|
144
|
-
elif storage == PATCH_STORAGE_SVN:
|
145
|
-
return self.apply_from_svn(cwd)
|
146
118
|
elif storage == PATCH_STORAGE_GIT:
|
147
119
|
return self.apply_from_git(cwd)
|
148
120
|
else:
|
@@ -166,14 +138,15 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
166
138
|
# removed.
|
167
139
|
if patch_root is None:
|
168
140
|
return self._old_get_files_affected_by_patch()
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
141
|
+
with self.m.step.context({
|
142
|
+
'cwd': self.m.step.get_from_context(
|
143
|
+
'cwd', self.m.path['start_dir'].join(patch_root))}):
|
144
|
+
step_result = self.m.git('diff', '--cached', '--name-only',
|
145
|
+
name='git diff to analyze patch',
|
146
|
+
stdout=self.m.raw_io.output(),
|
147
|
+
step_test_data=lambda:
|
148
|
+
self.m.raw_io.test_api.stream_output('foo.cc'),
|
149
|
+
**kwargs)
|
177
150
|
paths = [self.m.path.join(patch_root, p) for p in
|
178
151
|
step_result.stdout.split()]
|
179
152
|
if self.m.platform.is_win:
|
@@ -185,16 +158,16 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
185
158
|
|
186
159
|
|
187
160
|
def _old_get_files_affected_by_patch(self):
|
188
|
-
|
161
|
+
context = {}
|
189
162
|
issue_root = self.m.rietveld.calculate_issue_root()
|
190
163
|
if issue_root:
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
164
|
+
context['cwd'] = self.m.path['checkout'].join(issue_root)
|
165
|
+
with self.m.step.context(context):
|
166
|
+
step_result = self.m.git('diff', '--cached', '--name-only',
|
167
|
+
name='git diff to analyze patch',
|
168
|
+
stdout=self.m.raw_io.output(),
|
169
|
+
step_test_data=lambda:
|
170
|
+
self.m.raw_io.test_api.stream_output('foo.cc'))
|
198
171
|
paths = step_result.stdout.split()
|
199
172
|
if issue_root:
|
200
173
|
paths = [self.m.path.join(issue_root, path) for path in paths]
|
@@ -273,14 +246,17 @@ class TryserverApi(recipe_api.RecipeApi):
|
|
273
246
|
except self.m.step.StepFailure as e:
|
274
247
|
self.add_failure_reason(e.reason)
|
275
248
|
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
step_result
|
281
|
-
|
282
|
-
|
283
|
-
|
249
|
+
try:
|
250
|
+
step_result = self.m.step.active_result
|
251
|
+
except ValueError:
|
252
|
+
step_result = None
|
253
|
+
if step_result:
|
254
|
+
failure_hash = hashlib.sha1()
|
255
|
+
failure_hash.update(self.m.json.dumps(self._failure_reasons))
|
256
|
+
step_result.presentation.properties['failure_hash'] = (
|
257
|
+
failure_hash.hexdigest())
|
258
|
+
|
259
|
+
raise e
|
284
260
|
|
285
261
|
def get_footers(self, patch_text=None):
|
286
262
|
"""Retrieves footers from the patch description.
|
@@ -1,34 +1,4 @@
|
|
1
1
|
[
|
2
|
-
{
|
3
|
-
"cmd": [
|
4
|
-
"svn",
|
5
|
-
"export",
|
6
|
-
"--force",
|
7
|
-
"svn://checkout.url",
|
8
|
-
"/path/to/tmp/diff"
|
9
|
-
],
|
10
|
-
"name": "download patch",
|
11
|
-
"~followup_annotations": [
|
12
|
-
"@@@STEP_LOG_LINE@patch.diff@fake patch.diff content (line 1)@@@",
|
13
|
-
"@@@STEP_LOG_LINE@patch.diff@fake patch.diff content (line 2)@@@",
|
14
|
-
"@@@STEP_LOG_LINE@patch.diff@@@@",
|
15
|
-
"@@@STEP_LOG_END@patch.diff@@@"
|
16
|
-
]
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"cmd": [
|
20
|
-
"patch",
|
21
|
-
"--dir",
|
22
|
-
"[SLAVE_BUILD]",
|
23
|
-
"--force",
|
24
|
-
"--forward",
|
25
|
-
"--remove-empty-files",
|
26
|
-
"--strip",
|
27
|
-
"0"
|
28
|
-
],
|
29
|
-
"name": "apply patch",
|
30
|
-
"stdin": "fake patch.diff content (line 1)\nfake patch.diff content (line 2)\n"
|
31
|
-
},
|
32
2
|
{
|
33
3
|
"cmd": [
|
34
4
|
"git",
|
@@ -36,7 +6,7 @@
|
|
36
6
|
"--cached",
|
37
7
|
"--name-only"
|
38
8
|
],
|
39
|
-
"cwd": "[
|
9
|
+
"cwd": "[START_DIR]",
|
40
10
|
"name": "git diff to analyze patch",
|
41
11
|
"stdout": "/path/to/tmp/",
|
42
12
|
"~followup_annotations": [
|
data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_gerrit_patch_deprecated.json
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"cmd": [
|
4
|
+
"git",
|
5
|
+
"diff",
|
6
|
+
"--cached",
|
7
|
+
"--name-only"
|
8
|
+
],
|
9
|
+
"cwd": "[START_DIR]",
|
10
|
+
"name": "git diff to analyze patch",
|
11
|
+
"stdout": "/path/to/tmp/",
|
12
|
+
"~followup_annotations": [
|
13
|
+
"@@@STEP_LOG_LINE@files@foo.cc@@@",
|
14
|
+
"@@@STEP_LOG_END@files@@@",
|
15
|
+
"@@@SET_BUILD_PROPERTY@failure_type@\"INVALID_TEST_RESULTS\"@@@",
|
16
|
+
"@@@SET_BUILD_PROPERTY@subproject_tag@\"v8\"@@@"
|
17
|
+
]
|
18
|
+
},
|
19
|
+
{
|
20
|
+
"cmd": [
|
21
|
+
"python",
|
22
|
+
"-u",
|
23
|
+
"import sys; sys.exit(1)"
|
24
|
+
],
|
25
|
+
"name": "fail",
|
26
|
+
"~followup_annotations": [
|
27
|
+
"step returned non-zero exit code: 1",
|
28
|
+
"@@@STEP_TEXT@foo@@@",
|
29
|
+
"@@@STEP_FAILURE@@@",
|
30
|
+
"@@@SET_BUILD_PROPERTY@failure_hash@\"c2311ad770732eade3d2f48247abd147e40a70e7\"@@@"
|
31
|
+
]
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"name": "$result",
|
35
|
+
"reason": "Step('fail') failed with return_code 1",
|
36
|
+
"recipe_result": null,
|
37
|
+
"status_code": 1
|
38
|
+
}
|
39
|
+
]
|
@@ -46,7 +46,7 @@
|
|
46
46
|
"cmd": [
|
47
47
|
"patch",
|
48
48
|
"--dir",
|
49
|
-
"[
|
49
|
+
"[START_DIR]",
|
50
50
|
"--force",
|
51
51
|
"--forward",
|
52
52
|
"--remove-empty-files",
|
@@ -72,7 +72,7 @@
|
|
72
72
|
"--cached",
|
73
73
|
"--name-only"
|
74
74
|
],
|
75
|
-
"cwd": "[
|
75
|
+
"cwd": "[START_DIR]/v8",
|
76
76
|
"name": "git diff to analyze patch",
|
77
77
|
"stdout": "/path/to/tmp/",
|
78
78
|
"~followup_annotations": [
|
@@ -3,9 +3,9 @@
|
|
3
3
|
"cmd": [
|
4
4
|
"python",
|
5
5
|
"-u",
|
6
|
-
"[
|
6
|
+
"RECIPE_PACKAGE_REPO[depot_tools]/apply_issue.py",
|
7
7
|
"-r",
|
8
|
-
"[
|
8
|
+
"[START_DIR]",
|
9
9
|
"-i",
|
10
10
|
"12853011",
|
11
11
|
"-p",
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"--cached",
|
53
53
|
"--name-only"
|
54
54
|
],
|
55
|
-
"cwd": "[
|
55
|
+
"cwd": "[START_DIR]",
|
56
56
|
"name": "git diff to analyze patch",
|
57
57
|
"stdout": "/path/to/tmp/",
|
58
58
|
"~followup_annotations": [
|
data/vendor/depot_tools/recipe_modules/tryserver/example.expected/with_rietveld_patch_new.json
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
"cmd": [
|
4
4
|
"python",
|
5
5
|
"-u",
|
6
|
-
"[
|
6
|
+
"RECIPE_PACKAGE_REPO[depot_tools]/apply_issue.py",
|
7
7
|
"-r",
|
8
|
-
"[
|
8
|
+
"[START_DIR]",
|
9
9
|
"-i",
|
10
10
|
"12853011",
|
11
11
|
"-p",
|
@@ -52,7 +52,7 @@
|
|
52
52
|
"--cached",
|
53
53
|
"--name-only"
|
54
54
|
],
|
55
|
-
"cwd": "[
|
55
|
+
"cwd": "[START_DIR]/sub/project",
|
56
56
|
"name": "git diff to analyze patch",
|
57
57
|
"stdout": "/path/to/tmp/",
|
58
58
|
"~followup_annotations": [
|
@@ -15,7 +15,11 @@ DEPS = [
|
|
15
15
|
|
16
16
|
|
17
17
|
def RunSteps(api):
|
18
|
-
|
18
|
+
if api.properties.get('set_failure_hash_with_no_steps'):
|
19
|
+
with api.tryserver.set_failure_hash():
|
20
|
+
raise api.step.StepFailure('boom!')
|
21
|
+
|
22
|
+
api.path['checkout'] = api.path['start_dir']
|
19
23
|
if api.properties.get('patch_text'):
|
20
24
|
api.step('patch_text test', [
|
21
25
|
'echo', str(api.tryserver.get_footers(api.properties['patch_text']))])
|
@@ -44,17 +48,22 @@ def RunSteps(api):
|
|
44
48
|
|
45
49
|
def GenTests(api):
|
46
50
|
description_step = api.override_step_data(
|
47
|
-
'git_cl description', stdout=api.raw_io.
|
48
|
-
yield (api.test('with_svn_patch') +
|
49
|
-
api.properties(patch_url='svn://checkout.url'))
|
50
|
-
|
51
|
+
'git_cl description', stdout=api.raw_io.output_text('foobar'))
|
51
52
|
yield (api.test('with_git_patch') +
|
52
53
|
api.properties(
|
54
|
+
path_config='buildbot',
|
53
55
|
patch_storage='git',
|
54
56
|
patch_project='v8',
|
55
57
|
patch_repo_url='http://patch.url/',
|
56
58
|
patch_ref='johndoe#123.diff'))
|
57
59
|
|
60
|
+
yield (api.test('with_git_patch_luci') +
|
61
|
+
api.properties(
|
62
|
+
patch_storage='git',
|
63
|
+
patch_project='v8',
|
64
|
+
patch_repo_url='http://patch.url/',
|
65
|
+
patch_ref='johndoe#123.diff'))
|
66
|
+
|
58
67
|
yield (api.test('with_rietveld_patch') +
|
59
68
|
api.properties.tryserver() +
|
60
69
|
description_step)
|
@@ -65,6 +74,24 @@ def GenTests(api):
|
|
65
74
|
api.properties.tryserver(test_patch_root='sub/project') +
|
66
75
|
description_step)
|
67
76
|
|
77
|
+
yield api.test('with_gerrit_patch_deprecated') + api.properties.tryserver(
|
78
|
+
patch_project='infra/infra',
|
79
|
+
gerrit='https://chromium-review.googlesource.com',
|
80
|
+
patch_storage='gerrit',
|
81
|
+
repository='https://chromium.googlesource.com/infra/infra',
|
82
|
+
rietveld=None,
|
83
|
+
**{
|
84
|
+
'event.change.id': 'infra%2Finfra~master~Ideadbeaf',
|
85
|
+
'event.change.number': 338811,
|
86
|
+
'event.change.url':
|
87
|
+
'https://chromium-review.googlesource.com/#/c/338811',
|
88
|
+
'event.patchSet.ref': 'refs/changes/11/338811/3',
|
89
|
+
}
|
90
|
+
)
|
91
|
+
|
92
|
+
yield (api.test('with_gerrit_patch') +
|
93
|
+
api.properties.tryserver(gerrit_project='infra/infra'))
|
94
|
+
|
68
95
|
yield (api.test('with_wrong_patch_new') + api.platform('win', 32) +
|
69
96
|
api.properties(test_patch_root='sub\\project'))
|
70
97
|
|
@@ -80,3 +107,6 @@ def GenTests(api):
|
|
80
107
|
'parse description (2)',
|
81
108
|
api.json.output({'Foo': ['bar']}))
|
82
109
|
)
|
110
|
+
|
111
|
+
yield (api.test('set_failure_hash_with_no_steps') +
|
112
|
+
api.properties(set_failure_hash_with_no_steps=True))
|