libv8 8.4.255.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +19 -0
- data/.gitmodules +3 -0
- data/.rspec +3 -0
- data/.travis.yml +45 -0
- data/CHANGELOG.md +111 -0
- data/Gemfile +4 -0
- data/README.md +152 -0
- data/Rakefile +125 -0
- data/appveyor.yml.disabled +36 -0
- data/ext/libv8/arch.rb +20 -0
- data/ext/libv8/builder.rb +106 -0
- data/ext/libv8/extconf.rb +7 -0
- data/ext/libv8/location.rb +89 -0
- data/ext/libv8/paths.rb +28 -0
- data/lib/libv8.rb +9 -0
- data/lib/libv8/version.rb +3 -0
- data/libv8.gemspec +30 -0
- data/scaleway.png +0 -0
- data/spec/location_spec.rb +69 -0
- data/spec/spec_helper.rb +4 -0
- data/thefrontside.png +0 -0
- data/vendor/depot_tools/.cipd_impl.ps1 +129 -0
- data/vendor/depot_tools/.gitattributes +55 -0
- data/vendor/depot_tools/.gitignore +92 -0
- data/vendor/depot_tools/.style.yapf +4 -0
- data/vendor/depot_tools/.vpython +55 -0
- data/vendor/depot_tools/.vpython3 +23 -0
- data/vendor/depot_tools/CROS_OWNERS +7 -0
- data/vendor/depot_tools/GOMA_OWNERS +9 -0
- data/vendor/depot_tools/LICENSE +27 -0
- data/vendor/depot_tools/LUCI_OWNERS +5 -0
- data/vendor/depot_tools/OWNERS +39 -0
- data/vendor/depot_tools/PRESUBMIT.py +150 -0
- data/vendor/depot_tools/README.gclient.md +67 -0
- data/vendor/depot_tools/README.git-cl.md +99 -0
- data/vendor/depot_tools/README.md +78 -0
- data/vendor/depot_tools/WATCHLISTS +26 -0
- data/vendor/depot_tools/auth.py +163 -0
- data/vendor/depot_tools/autoninja +36 -0
- data/vendor/depot_tools/autoninja.bat +33 -0
- data/vendor/depot_tools/autoninja.py +148 -0
- data/vendor/depot_tools/bb +12 -0
- data/vendor/depot_tools/bb.bat +7 -0
- data/vendor/depot_tools/bootstrap/README.md +155 -0
- data/vendor/depot_tools/bootstrap/bootstrap.py +356 -0
- data/vendor/depot_tools/bootstrap/git-bash.template.sh +12 -0
- data/vendor/depot_tools/bootstrap/git.template.bat +5 -0
- data/vendor/depot_tools/bootstrap/manifest.txt +27 -0
- data/vendor/depot_tools/bootstrap/manifest_bleeding_edge.txt +27 -0
- data/vendor/depot_tools/bootstrap/profile.d.python.sh +20 -0
- data/vendor/depot_tools/bootstrap/python27.bat +46 -0
- data/vendor/depot_tools/bootstrap/python3.bat +46 -0
- data/vendor/depot_tools/bootstrap/win_tools.bat +79 -0
- data/vendor/depot_tools/bootstrap_python3 +35 -0
- data/vendor/depot_tools/breakpad.py +12 -0
- data/vendor/depot_tools/cbuildbot +1 -0
- data/vendor/depot_tools/chrome_set_ver +1 -0
- data/vendor/depot_tools/cipd +247 -0
- data/vendor/depot_tools/cipd.bat +67 -0
- data/vendor/depot_tools/cipd_bin_setup.bat +6 -0
- data/vendor/depot_tools/cipd_bin_setup.sh +22 -0
- data/vendor/depot_tools/cipd_client_version +1 -0
- data/vendor/depot_tools/cipd_client_version.digests +22 -0
- data/vendor/depot_tools/cipd_manifest.txt +63 -0
- data/vendor/depot_tools/cipd_manifest.versions +438 -0
- data/vendor/depot_tools/cit +8 -0
- data/vendor/depot_tools/cit.bat +12 -0
- data/vendor/depot_tools/cit.py +167 -0
- data/vendor/depot_tools/clang-format +8 -0
- data/vendor/depot_tools/clang-format.bat +12 -0
- data/vendor/depot_tools/clang_format.py +79 -0
- data/vendor/depot_tools/clang_format_merge_driver +8 -0
- data/vendor/depot_tools/clang_format_merge_driver.bat +12 -0
- data/vendor/depot_tools/clang_format_merge_driver.py +69 -0
- data/vendor/depot_tools/codereview.settings +6 -0
- data/vendor/depot_tools/compile_single_file +8 -0
- data/vendor/depot_tools/compile_single_file.bat +11 -0
- data/vendor/depot_tools/compile_single_file.py +79 -0
- data/vendor/depot_tools/cpplint.bat +11 -0
- data/vendor/depot_tools/cpplint.py +6097 -0
- data/vendor/depot_tools/cpplint_chromium.py +50 -0
- data/vendor/depot_tools/cros +87 -0
- data/vendor/depot_tools/cros_sdk +1 -0
- data/vendor/depot_tools/crosjobs +13 -0
- data/vendor/depot_tools/detect_host_arch.py +55 -0
- data/vendor/depot_tools/dirmd +12 -0
- data/vendor/depot_tools/dirmd.bat +7 -0
- data/vendor/depot_tools/download_from_google_storage +8 -0
- data/vendor/depot_tools/download_from_google_storage.bat +12 -0
- data/vendor/depot_tools/download_from_google_storage.py +634 -0
- data/vendor/depot_tools/ensure_bootstrap +53 -0
- data/vendor/depot_tools/fetch +21 -0
- data/vendor/depot_tools/fetch.bat +28 -0
- data/vendor/depot_tools/fetch.py +319 -0
- data/vendor/depot_tools/fetch_configs/android.py +34 -0
- data/vendor/depot_tools/fetch_configs/android_internal.py +34 -0
- data/vendor/depot_tools/fetch_configs/breakpad.py +44 -0
- data/vendor/depot_tools/fetch_configs/chromium.py +66 -0
- data/vendor/depot_tools/fetch_configs/config_util.py +52 -0
- data/vendor/depot_tools/fetch_configs/crashpad.py +41 -0
- data/vendor/depot_tools/fetch_configs/dart.py +45 -0
- data/vendor/depot_tools/fetch_configs/depot_tools.py +44 -0
- data/vendor/depot_tools/fetch_configs/devtools-frontend.py +44 -0
- data/vendor/depot_tools/fetch_configs/goma_client.py +41 -0
- data/vendor/depot_tools/fetch_configs/gyp.py +41 -0
- data/vendor/depot_tools/fetch_configs/infra.py +40 -0
- data/vendor/depot_tools/fetch_configs/infra_internal.py +45 -0
- data/vendor/depot_tools/fetch_configs/inspector_protocol.py +40 -0
- data/vendor/depot_tools/fetch_configs/ios.py +34 -0
- data/vendor/depot_tools/fetch_configs/ios_internal.py +39 -0
- data/vendor/depot_tools/fetch_configs/nacl.py +48 -0
- data/vendor/depot_tools/fetch_configs/naclports.py +47 -0
- data/vendor/depot_tools/fetch_configs/node-ci.py +41 -0
- data/vendor/depot_tools/fetch_configs/pdfium.py +40 -0
- data/vendor/depot_tools/fetch_configs/skia.py +41 -0
- data/vendor/depot_tools/fetch_configs/skia_buildbot.py +41 -0
- data/vendor/depot_tools/fetch_configs/syzygy.py +41 -0
- data/vendor/depot_tools/fetch_configs/v8.py +44 -0
- data/vendor/depot_tools/fetch_configs/webrtc.py +52 -0
- data/vendor/depot_tools/fetch_configs/webrtc_android.py +34 -0
- data/vendor/depot_tools/fetch_configs/webrtc_ios.py +34 -0
- data/vendor/depot_tools/fix_encoding.py +385 -0
- data/vendor/depot_tools/gclient +38 -0
- data/vendor/depot_tools/gclient-new-workdir.py +124 -0
- data/vendor/depot_tools/gclient.bat +32 -0
- data/vendor/depot_tools/gclient.py +3198 -0
- data/vendor/depot_tools/gclient_completion.sh +76 -0
- data/vendor/depot_tools/gclient_eval.py +891 -0
- data/vendor/depot_tools/gclient_paths.py +152 -0
- data/vendor/depot_tools/gclient_scm.py +1615 -0
- data/vendor/depot_tools/gclient_utils.py +1280 -0
- data/vendor/depot_tools/gerrit_client.py +151 -0
- data/vendor/depot_tools/gerrit_util.py +996 -0
- data/vendor/depot_tools/git-cache +6 -0
- data/vendor/depot_tools/git-cl +6 -0
- data/vendor/depot_tools/git-crrev-parse +53 -0
- data/vendor/depot_tools/git-drover +6 -0
- data/vendor/depot_tools/git-find-releases +6 -0
- data/vendor/depot_tools/git-footers +6 -0
- data/vendor/depot_tools/git-freeze +8 -0
- data/vendor/depot_tools/git-gs +9 -0
- data/vendor/depot_tools/git-hyper-blame +6 -0
- data/vendor/depot_tools/git-map +6 -0
- data/vendor/depot_tools/git-map-branches +6 -0
- data/vendor/depot_tools/git-mark-merge-base +6 -0
- data/vendor/depot_tools/git-nav-downstream +6 -0
- data/vendor/depot_tools/git-nav-upstream +6 -0
- data/vendor/depot_tools/git-new-branch +6 -0
- data/vendor/depot_tools/git-number +6 -0
- data/vendor/depot_tools/git-rebase-update +6 -0
- data/vendor/depot_tools/git-rename-branch +6 -0
- data/vendor/depot_tools/git-reparent-branch +6 -0
- data/vendor/depot_tools/git-retry +8 -0
- data/vendor/depot_tools/git-runhooks +23 -0
- data/vendor/depot_tools/git-squash-branch +6 -0
- data/vendor/depot_tools/git-templates/description +3 -0
- data/vendor/depot_tools/git-templates/hooks/applypatch-msg +4 -0
- data/vendor/depot_tools/git-templates/hooks/post-applypatch +4 -0
- data/vendor/depot_tools/git-templates/hooks/post-checkout +4 -0
- data/vendor/depot_tools/git-templates/hooks/post-commit +4 -0
- data/vendor/depot_tools/git-templates/hooks/post-merge +4 -0
- data/vendor/depot_tools/git-templates/hooks/post-update +4 -0
- data/vendor/depot_tools/git-templates/hooks/pre-applypatch +4 -0
- data/vendor/depot_tools/git-templates/hooks/pre-auto-gc +4 -0
- data/vendor/depot_tools/git-templates/hooks/pre-commit +4 -0
- data/vendor/depot_tools/git-templates/hooks/pre-rebase +4 -0
- data/vendor/depot_tools/git-templates/hooks/prepare-commit-msg +4 -0
- data/vendor/depot_tools/git-templates/info/exclude +6 -0
- data/vendor/depot_tools/git-thaw +13 -0
- data/vendor/depot_tools/git-upstream-diff +9 -0
- data/vendor/depot_tools/git_cache.py +786 -0
- data/vendor/depot_tools/git_cl.py +5158 -0
- data/vendor/depot_tools/git_cl_completion.sh +48 -0
- data/vendor/depot_tools/git_common.py +1101 -0
- data/vendor/depot_tools/git_dates.py +62 -0
- data/vendor/depot_tools/git_drover.py +469 -0
- data/vendor/depot_tools/git_find_releases.py +67 -0
- data/vendor/depot_tools/git_footers.py +261 -0
- data/vendor/depot_tools/git_freezer.py +40 -0
- data/vendor/depot_tools/git_hyper_blame.py +391 -0
- data/vendor/depot_tools/git_map.py +166 -0
- data/vendor/depot_tools/git_map_branches.py +354 -0
- data/vendor/depot_tools/git_mark_merge_base.py +73 -0
- data/vendor/depot_tools/git_nav_downstream.py +69 -0
- data/vendor/depot_tools/git_new_branch.py +82 -0
- data/vendor/depot_tools/git_number.py +301 -0
- data/vendor/depot_tools/git_rebase_update.py +351 -0
- data/vendor/depot_tools/git_rename_branch.py +55 -0
- data/vendor/depot_tools/git_reparent_branch.py +101 -0
- data/vendor/depot_tools/git_retry.py +181 -0
- data/vendor/depot_tools/git_squash_branch.py +28 -0
- data/vendor/depot_tools/git_upstream_diff.py +64 -0
- data/vendor/depot_tools/gn +8 -0
- data/vendor/depot_tools/gn.bat +12 -0
- data/vendor/depot_tools/gn.py +78 -0
- data/vendor/depot_tools/goma_auth +12 -0
- data/vendor/depot_tools/goma_auth.bat +8 -0
- data/vendor/depot_tools/goma_ctl +12 -0
- data/vendor/depot_tools/goma_ctl.bat +8 -0
- data/vendor/depot_tools/gsutil.py +190 -0
- data/vendor/depot_tools/gsutil.py.bat +23 -0
- data/vendor/depot_tools/gsutil.vpython +120 -0
- data/vendor/depot_tools/infra/README.md +1 -0
- data/vendor/depot_tools/infra/config/OWNERS +7 -0
- data/vendor/depot_tools/infra/config/README.md +1 -0
- data/vendor/depot_tools/infra/config/recipes.cfg +26 -0
- data/vendor/depot_tools/led +12 -0
- data/vendor/depot_tools/led.bat +7 -0
- data/vendor/depot_tools/lockfile.py +116 -0
- data/vendor/depot_tools/luci-auth +13 -0
- data/vendor/depot_tools/luci-auth.bat +8 -0
- data/vendor/depot_tools/lucicfg +12 -0
- data/vendor/depot_tools/lucicfg.bat +7 -0
- data/vendor/depot_tools/mac_toolchain +12 -0
- data/vendor/depot_tools/man/html/depot_tools.html +934 -0
- data/vendor/depot_tools/man/html/depot_tools_tutorial.html +1593 -0
- data/vendor/depot_tools/man/html/git-cl.html +1033 -0
- data/vendor/depot_tools/man/html/git-drover.html +1048 -0
- data/vendor/depot_tools/man/html/git-footers.html +878 -0
- data/vendor/depot_tools/man/html/git-freeze.html +859 -0
- data/vendor/depot_tools/man/html/git-hyper-blame.html +878 -0
- data/vendor/depot_tools/man/html/git-map-branches.html +904 -0
- data/vendor/depot_tools/man/html/git-map.html +887 -0
- data/vendor/depot_tools/man/html/git-mark-merge-base.html +826 -0
- data/vendor/depot_tools/man/html/git-nav-downstream.html +844 -0
- data/vendor/depot_tools/man/html/git-nav-upstream.html +853 -0
- data/vendor/depot_tools/man/html/git-new-branch.html +932 -0
- data/vendor/depot_tools/man/html/git-rebase-update.html +961 -0
- data/vendor/depot_tools/man/html/git-rename-branch.html +794 -0
- data/vendor/depot_tools/man/html/git-reparent-branch.html +847 -0
- data/vendor/depot_tools/man/html/git-retry.html +858 -0
- data/vendor/depot_tools/man/html/git-squash-branch.html +881 -0
- data/vendor/depot_tools/man/html/git-thaw.html +794 -0
- data/vendor/depot_tools/man/html/git-upstream-diff.html +923 -0
- data/vendor/depot_tools/man/man1/git-cl.1 +198 -0
- data/vendor/depot_tools/man/man1/git-drover.1 +330 -0
- data/vendor/depot_tools/man/man1/git-footers.1 +144 -0
- data/vendor/depot_tools/man/man1/git-freeze.1 +113 -0
- data/vendor/depot_tools/man/man1/git-hyper-blame.1 +128 -0
- data/vendor/depot_tools/man/man1/git-map-branches.1 +210 -0
- data/vendor/depot_tools/man/man1/git-map.1 +179 -0
- data/vendor/depot_tools/man/man1/git-mark-merge-base.1 +69 -0
- data/vendor/depot_tools/man/man1/git-nav-downstream.1 +112 -0
- data/vendor/depot_tools/man/man1/git-nav-upstream.1 +122 -0
- data/vendor/depot_tools/man/man1/git-new-branch.1 +176 -0
- data/vendor/depot_tools/man/man1/git-rebase-update.1 +177 -0
- data/vendor/depot_tools/man/man1/git-rename-branch.1 +53 -0
- data/vendor/depot_tools/man/man1/git-reparent-branch.1 +93 -0
- data/vendor/depot_tools/man/man1/git-retry.1 +108 -0
- data/vendor/depot_tools/man/man1/git-squash-branch.1 +129 -0
- data/vendor/depot_tools/man/man1/git-thaw.1 +54 -0
- data/vendor/depot_tools/man/man1/git-upstream-diff.1 +153 -0
- data/vendor/depot_tools/man/man7/depot_tools.7 +139 -0
- data/vendor/depot_tools/man/man7/depot_tools_tutorial.7 +1061 -0
- data/vendor/depot_tools/man/push_to_gs.sh +4 -0
- data/vendor/depot_tools/man/src/.gitignore +5 -0
- data/vendor/depot_tools/man/src/_aliases.txt +5 -0
- data/vendor/depot_tools/man/src/_footer.txt +8 -0
- data/vendor/depot_tools/man/src/_git-cl_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-drover_desc.helper.txt +2 -0
- data/vendor/depot_tools/man/src/_git-footers_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-freeze_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-hyper-blame_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-map-branches_desc.helper.txt +4 -0
- data/vendor/depot_tools/man/src/_git-map_desc.helper.txt +3 -0
- data/vendor/depot_tools/man/src/_git-mark-merge-base_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-nav-downstream_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-nav-upstream_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-new-branch_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-rebase-update_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-rename-branch_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-reparent-branch_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-retry_desc.helper.txt +2 -0
- data/vendor/depot_tools/man/src/_git-squash-branch_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_git-thaw_desc.helper.txt +2 -0
- data/vendor/depot_tools/man/src/_git-upstream-diff_desc.helper.txt +1 -0
- data/vendor/depot_tools/man/src/_helper_prefix.txt +1 -0
- data/vendor/depot_tools/man/src/asciidoc-override.css +7 -0
- data/vendor/depot_tools/man/src/common_demo_functions.sh +84 -0
- data/vendor/depot_tools/man/src/demo_repo.sh +43 -0
- data/vendor/depot_tools/man/src/depot_tools.txt +28 -0
- data/vendor/depot_tools/man/src/depot_tools_tutorial.demo.walkthrough.sh +155 -0
- data/vendor/depot_tools/man/src/depot_tools_tutorial.txt +432 -0
- data/vendor/depot_tools/man/src/filter_demo_output.py +141 -0
- data/vendor/depot_tools/man/src/git-cl.txt +119 -0
- data/vendor/depot_tools/man/src/git-drover.demo.1.sh +22 -0
- data/vendor/depot_tools/man/src/git-drover.demo.2.sh +23 -0
- data/vendor/depot_tools/man/src/git-drover.demo.3.sh +27 -0
- data/vendor/depot_tools/man/src/git-drover.demo.4.sh +39 -0
- data/vendor/depot_tools/man/src/git-drover.demo.common.sh +19 -0
- data/vendor/depot_tools/man/src/git-drover.txt +102 -0
- data/vendor/depot_tools/man/src/git-footers.demo.1.sh +17 -0
- data/vendor/depot_tools/man/src/git-footers.txt +71 -0
- data/vendor/depot_tools/man/src/git-freeze.demo.1.sh +23 -0
- data/vendor/depot_tools/man/src/git-freeze.txt +54 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.demo.1.sh +3 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.demo.2.sh +4 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.demo.common.sh +57 -0
- data/vendor/depot_tools/man/src/git-hyper-blame.txt +85 -0
- data/vendor/depot_tools/man/src/git-map-branches.demo.1.sh +8 -0
- data/vendor/depot_tools/man/src/git-map-branches.txt +64 -0
- data/vendor/depot_tools/man/src/git-map.demo.1.sh +3 -0
- data/vendor/depot_tools/man/src/git-map.txt +67 -0
- data/vendor/depot_tools/man/src/git-mark-merge-base.txt +46 -0
- data/vendor/depot_tools/man/src/git-nav-downstream.demo.1.sh +12 -0
- data/vendor/depot_tools/man/src/git-nav-downstream.txt +40 -0
- data/vendor/depot_tools/man/src/git-nav-upstream.demo.1.sh +12 -0
- data/vendor/depot_tools/man/src/git-nav-upstream.txt +39 -0
- data/vendor/depot_tools/man/src/git-new-branch.demo.1.sh +17 -0
- data/vendor/depot_tools/man/src/git-new-branch.txt +82 -0
- data/vendor/depot_tools/man/src/git-rebase-update.txt +141 -0
- data/vendor/depot_tools/man/src/git-rename-branch.txt +28 -0
- data/vendor/depot_tools/man/src/git-reparent-branch.txt +61 -0
- data/vendor/depot_tools/man/src/git-retry.txt +67 -0
- data/vendor/depot_tools/man/src/git-squash-branch.demo.1.sh +12 -0
- data/vendor/depot_tools/man/src/git-squash-branch.txt +59 -0
- data/vendor/depot_tools/man/src/git-thaw.txt +29 -0
- data/vendor/depot_tools/man/src/git-upstream-diff.txt +107 -0
- data/vendor/depot_tools/man/src/make_docs.sh +260 -0
- data/vendor/depot_tools/man/src/prep_demo_repo.sh +103 -0
- data/vendor/depot_tools/metrics.README.md +101 -0
- data/vendor/depot_tools/metrics.py +297 -0
- data/vendor/depot_tools/metrics_utils.py +293 -0
- data/vendor/depot_tools/my_activity.py +971 -0
- data/vendor/depot_tools/ninja +44 -0
- 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/ninjalog.README.md +64 -0
- data/vendor/depot_tools/ninjalog_uploader.py +233 -0
- data/vendor/depot_tools/ninjalog_uploader_wrapper.py +125 -0
- data/vendor/depot_tools/owners.py +641 -0
- data/vendor/depot_tools/owners_finder.py +385 -0
- data/vendor/depot_tools/post_build_ninja_summary.py +350 -0
- data/vendor/depot_tools/presubmit_canned_checks.py +1655 -0
- data/vendor/depot_tools/presubmit_support.py +1923 -0
- data/vendor/depot_tools/profile.xml +8 -0
- data/vendor/depot_tools/prpc +13 -0
- data/vendor/depot_tools/prpc.bat +8 -0
- data/vendor/depot_tools/pylint +9 -0
- data/vendor/depot_tools/pylint-1.5 +78 -0
- data/vendor/depot_tools/pylint-1.6 +78 -0
- data/vendor/depot_tools/pylint-1.7 +78 -0
- data/vendor/depot_tools/pylint-1.8 +78 -0
- data/vendor/depot_tools/pylint-1.9 +78 -0
- data/vendor/depot_tools/pylint.bat +12 -0
- data/vendor/depot_tools/pylint_main.py +45 -0
- data/vendor/depot_tools/pylintrc +349 -0
- data/vendor/depot_tools/python-bin/python3 +7 -0
- data/vendor/depot_tools/python_runner.sh +60 -0
- data/vendor/depot_tools/rdb +12 -0
- data/vendor/depot_tools/rdb.bat +7 -0
- data/vendor/depot_tools/recipes/OWNERS +4 -0
- data/vendor/depot_tools/recipes/README.recipes.md +1079 -0
- data/vendor/depot_tools/recipes/recipe_modules/OWNERS +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/OWNERS +2 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/__init__.py +38 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/api.py +516 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic.json +117 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_luci.json +117 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json +118 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json +211 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json +194 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json +211 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json +211 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/input_commit_with_id_without_repo.json +210 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/multiple_patch_refs.json +214 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_apply_patch_on_gclient.json +265 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_HEAD.json +65 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_branch_head.json +65 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_a_specific_commit.json +65 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_cp_checkout_master.json +65 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/refs.json +212 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json +210 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/resolve_chromium_fixed_version.json +117 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +95 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +209 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +193 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json +265 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_branch_heads.json +261 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json +261 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json +265 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_webrtc.json +265 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json +265 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json +265 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/unrecognized_commit_repo.json +8 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json +211 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.py +308 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/__init__.py +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py +1258 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/test_api.py +93 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/tests/do_not_retry_patch_failures_in_cq.py +42 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/tests/ensure_checkout.py +35 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/__init__.py +9 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/api.py +455 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/basic.json +403 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/basic_pkg.json +403 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/describe-failed.json +82 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/describe-many-instances.json +411 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/mac64.json +403 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/pkg_bad_file.json +315 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/pkg_bad_mode.json +313 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/pkg_bad_verfile.json +313 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.expected/win64.json +403 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/full.py +187 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk arch.json +5 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk bits.json +5 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_32.json +12 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_64.json +12 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_32.json +12 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_64.json +12 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_mips_64.json +12 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/mac_intel_64.json +12 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_32.json +12 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_64.json +12 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.py +59 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/test_api.py +93 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/__init__.py +9 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py +75 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/examples/full.expected/basic.json +83 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/examples/full.expected/basic_luci.json +83 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/examples/full.expected/win.json +83 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/examples/full.py +55 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/__init__.py +13 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/api.py +428 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/config.py +462 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/basic.json +238 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/revision.json +240 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/tryserver.json +238 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.py +95 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/resources/diff_deps.py +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/test_api.py +36 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/diff_deps.expected/basic.json +55 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/diff_deps.expected/dont have revision yet.json +84 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/diff_deps.expected/no change, exception.json +83 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/diff_deps.expected/windows.json +55 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/diff_deps.py +88 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py +92 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/sync_failure.py +24 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/__init__.py +8 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/api.py +178 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.expected/basic.json +284 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.py +73 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/test_api.py +53 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/__init__.py +11 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/api.py +405 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic.json +217 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_branch.json +217 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_file_name.json +219 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_hash.json +216 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_ref.json +217 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_submodule_update_force.json +218 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/basic_tags.json +218 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/can_fail_build.json +164 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/cannot_fail_build.json +220 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/cat-file_test.json +239 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/count-objects_delta.json +290 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/count-objects_failed.json +220 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/count-objects_with_bad_output.json +222 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/count-objects_with_bad_output_fails_build.json +111 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/curl_trace_file.json +218 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/git-cache-checkout.json +265 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/platform_win.json +217 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/rebase_failed.json +221 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/remote_not_origin.json +219 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/set_got_revision.json +218 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.py +170 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/resources/git_setup.py +52 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/test_api.py +18 -0
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/__init__.py +5 -0
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/api.py +50 -0
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/config.py +22 -0
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.expected/basic.json +105 -0
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/examples/full.py +47 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/OWNERS +2 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/__init__.py +12 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/api.py +257 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.expected/basic.json +596 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.py +93 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/resources/gerrit_client.py +251 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/test_api.py +95 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/tests/parse_repo_url.expected/basic.json +5 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/tests/parse_repo_url.py +49 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/__init__.py +4 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/api.py +222 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/examples/full.expected/basic.json +247 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/examples/full.py +92 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/resources/gsutil_smart_retry.py +69 -0
- data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/__init__.py +36 -0
- data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/api.py +140 -0
- data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.expected/ancient_version.json +83 -0
- data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.expected/automatic_version.json +83 -0
- data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.expected/explicit_version.json +83 -0
- data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.expected/linux.json +21 -0
- data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.expected/mac.json +83 -0
- data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.expected/win.json +21 -0
- data/vendor/depot_tools/recipes/recipe_modules/osx_sdk/examples/full.py +42 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/__init__.py +27 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/api.py +251 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/examples/full.expected/basic.json +27 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/examples/full.py +19 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/properties.proto +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/test_api.py +19 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/tests/execute.py +247 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/tests/prepare.py +49 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/__init__.py +18 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/api.py +264 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/basic_tags.json +57 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch.json +190 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch_and_target_ref.json +190 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch.json +21 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch_new.json +22 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.py +95 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/test_api.py +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/tests/gerrit_change_fetch_ref_timeout.py +29 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/tests/gerrit_change_owner.expected/basic.json +5 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/tests/gerrit_change_owner.py +22 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/tests/gerrit_change_target_ref.py +32 -0
- data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/__init__.py +25 -0
- data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/api.py +137 -0
- data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/examples/full.expected/linux.json +21 -0
- data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/examples/full.expected/mac.json +21 -0
- data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/examples/full.expected/win.json +108 -0
- data/vendor/depot_tools/recipes/recipe_modules/windows_sdk/examples/full.py +21 -0
- data/vendor/depot_tools/recipes/recipes.py +249 -0
- data/vendor/depot_tools/recipes/recipes/fetch_end_to_end_test.expected/basic.json +175 -0
- data/vendor/depot_tools/recipes/recipes/fetch_end_to_end_test.py +56 -0
- data/vendor/depot_tools/recipes/trigger_recipe_roller.txt +13 -0
- data/vendor/depot_tools/repo +1194 -0
- data/vendor/depot_tools/roll-dep +21 -0
- data/vendor/depot_tools/roll-dep.bat +21 -0
- data/vendor/depot_tools/roll_dep.py +282 -0
- data/vendor/depot_tools/scm.py +415 -0
- data/vendor/depot_tools/setup_color.py +130 -0
- data/vendor/depot_tools/split_cl.py +263 -0
- data/vendor/depot_tools/subcommand.py +261 -0
- data/vendor/depot_tools/subprocess2.py +258 -0
- data/vendor/depot_tools/third_party/__init__.py +5 -0
- data/vendor/depot_tools/third_party/colorama/LICENSE.txt +27 -0
- data/vendor/depot_tools/third_party/colorama/README.chromium +12 -0
- data/vendor/depot_tools/third_party/colorama/README.rst +346 -0
- data/vendor/depot_tools/third_party/colorama/__init__.py +6 -0
- data/vendor/depot_tools/third_party/colorama/ansi.py +102 -0
- data/vendor/depot_tools/third_party/colorama/ansitowin32.py +257 -0
- data/vendor/depot_tools/third_party/colorama/initialise.py +80 -0
- data/vendor/depot_tools/third_party/colorama/win32.py +152 -0
- data/vendor/depot_tools/third_party/colorama/winterm.py +169 -0
- data/vendor/depot_tools/third_party/coverage/AUTHORS.txt +43 -0
- data/vendor/depot_tools/third_party/coverage/PKG-INFO +41 -0
- data/vendor/depot_tools/third_party/coverage/README.chromium +13 -0
- data/vendor/depot_tools/third_party/coverage/__init__.py +120 -0
- data/vendor/depot_tools/third_party/coverage/__main__.py +4 -0
- data/vendor/depot_tools/third_party/coverage/annotate.py +101 -0
- data/vendor/depot_tools/third_party/coverage/backward.py +184 -0
- data/vendor/depot_tools/third_party/coverage/bytecode.py +75 -0
- data/vendor/depot_tools/third_party/coverage/cmdline.py +740 -0
- data/vendor/depot_tools/third_party/coverage/codeunit.py +145 -0
- data/vendor/depot_tools/third_party/coverage/collector.py +353 -0
- data/vendor/depot_tools/third_party/coverage/config.py +213 -0
- data/vendor/depot_tools/third_party/coverage/control.py +776 -0
- data/vendor/depot_tools/third_party/coverage/data.py +278 -0
- data/vendor/depot_tools/third_party/coverage/debug.py +54 -0
- data/vendor/depot_tools/third_party/coverage/execfile.py +171 -0
- data/vendor/depot_tools/third_party/coverage/files.py +309 -0
- data/vendor/depot_tools/third_party/coverage/fullcoverage/encodings.py +57 -0
- data/vendor/depot_tools/third_party/coverage/html.py +387 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/coverage_html.js +376 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/index.html +104 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/jquery-1.4.3.min.js +166 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/jquery.hotkeys.js +99 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/jquery.isonscreen.js +53 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/jquery.min.js +166 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/jquery.tablesorter.min.js +2 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/keybd_closed.png +0 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/keybd_open.png +0 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/pyfile.html +90 -0
- data/vendor/depot_tools/third_party/coverage/htmlfiles/style.css +300 -0
- data/vendor/depot_tools/third_party/coverage/misc.py +163 -0
- data/vendor/depot_tools/third_party/coverage/parser.py +666 -0
- data/vendor/depot_tools/third_party/coverage/phystokens.py +208 -0
- data/vendor/depot_tools/third_party/coverage/report.py +92 -0
- data/vendor/depot_tools/third_party/coverage/results.py +286 -0
- data/vendor/depot_tools/third_party/coverage/summary.py +86 -0
- data/vendor/depot_tools/third_party/coverage/templite.py +166 -0
- data/vendor/depot_tools/third_party/coverage/version.py +9 -0
- data/vendor/depot_tools/third_party/coverage/xmlreport.py +155 -0
- data/vendor/depot_tools/third_party/httplib2/LICENSE +1339 -0
- data/vendor/depot_tools/third_party/httplib2/README.chromium +15 -0
- data/vendor/depot_tools/third_party/httplib2/__init__.py +1780 -0
- data/vendor/depot_tools/third_party/httplib2/cacerts.txt +2196 -0
- data/vendor/depot_tools/third_party/httplib2/iri2uri.py +110 -0
- data/vendor/depot_tools/third_party/httplib2/socks.py +448 -0
- data/vendor/depot_tools/third_party/repo/COPYING +202 -0
- data/vendor/depot_tools/third_party/repo/README.chromium +4 -0
- data/vendor/depot_tools/third_party/repo/__init__.py +0 -0
- data/vendor/depot_tools/third_party/repo/progress.py +117 -0
- data/vendor/depot_tools/third_party/retry_decorator/LICENSE.google +30 -0
- data/vendor/depot_tools/third_party/retry_decorator/__init__.py +0 -0
- data/vendor/depot_tools/third_party/retry_decorator/decorators.py +45 -0
- data/vendor/depot_tools/third_party/schema/.editorconfig +15 -0
- data/vendor/depot_tools/third_party/schema/.gitignore +174 -0
- data/vendor/depot_tools/third_party/schema/.travis.yml +37 -0
- data/vendor/depot_tools/third_party/schema/LICENSE-MIT +19 -0
- data/vendor/depot_tools/third_party/schema/MANIFEST.in +1 -0
- data/vendor/depot_tools/third_party/schema/README.chromium +12 -0
- data/vendor/depot_tools/third_party/schema/README.rst +382 -0
- data/vendor/depot_tools/third_party/schema/__init__.py +1 -0
- data/vendor/depot_tools/third_party/schema/schema.py +338 -0
- data/vendor/depot_tools/third_party/schema/setup.cfg +5 -0
- data/vendor/depot_tools/third_party/schema/setup.py +30 -0
- data/vendor/depot_tools/third_party/schema/test_schema.py +556 -0
- data/vendor/depot_tools/third_party/schema/tox.ini +33 -0
- data/vendor/depot_tools/third_party/six/LICENSE.txt +18 -0
- data/vendor/depot_tools/third_party/six/README.chromium +10 -0
- data/vendor/depot_tools/third_party/six/__init__.py +762 -0
- data/vendor/depot_tools/update_depot_tools +138 -0
- data/vendor/depot_tools/update_depot_tools.bat +65 -0
- data/vendor/depot_tools/update_depot_tools_toggle.py +38 -0
- data/vendor/depot_tools/upload_metrics.py +26 -0
- data/vendor/depot_tools/upload_to_google_storage.py +306 -0
- data/vendor/depot_tools/vpython +42 -0
- data/vendor/depot_tools/vpython.bat +7 -0
- data/vendor/depot_tools/vpython3 +55 -0
- data/vendor/depot_tools/vpython3.bat +12 -0
- data/vendor/depot_tools/watchlists.py +141 -0
- data/vendor/depot_tools/weekly +54 -0
- data/vendor/depot_tools/win32imports.py +61 -0
- data/vendor/depot_tools/win_toolchain/OWNERS +2 -0
- data/vendor/depot_tools/win_toolchain/README.md +74 -0
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +599 -0
- data/vendor/depot_tools/win_toolchain/package_from_installed.py +524 -0
- data/vendor/depot_tools/wtf +81 -0
- data/vendor/depot_tools/yapf +21 -0
- data/vendor/depot_tools/yapf.bat +12 -0
- data/vendor/depot_tools/zsh-goodies/README +6 -0
- data/vendor/depot_tools/zsh-goodies/_gclient +14 -0
- metadata +729 -0
@@ -0,0 +1,284 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"cmd": [
|
4
|
+
"vpython",
|
5
|
+
"-u",
|
6
|
+
"RECIPE_REPO[depot_tools]/gerrit_client.py",
|
7
|
+
"branch",
|
8
|
+
"--host",
|
9
|
+
"https://chromium-review.googlesource.com",
|
10
|
+
"--project",
|
11
|
+
"v8/v8",
|
12
|
+
"--branch",
|
13
|
+
"test",
|
14
|
+
"--commit",
|
15
|
+
"67ebf73496383c6777035e374d2d664009e2aa5c",
|
16
|
+
"--json_file",
|
17
|
+
"/path/to/tmp/json"
|
18
|
+
],
|
19
|
+
"env": {
|
20
|
+
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
21
|
+
},
|
22
|
+
"infra_step": true,
|
23
|
+
"name": "gerrit create_gerrit_branch (v8/v8 test)",
|
24
|
+
"~followup_annotations": [
|
25
|
+
"@@@STEP_LOG_LINE@json.output@{@@@",
|
26
|
+
"@@@STEP_LOG_LINE@json.output@ \"can_delete\": true, @@@",
|
27
|
+
"@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/heads/test\", @@@",
|
28
|
+
"@@@STEP_LOG_LINE@json.output@ \"revision\": \"76016386a0d8ecc7b6be212424978bb45959d668\"@@@",
|
29
|
+
"@@@STEP_LOG_LINE@json.output@}@@@",
|
30
|
+
"@@@STEP_LOG_END@json.output@@@"
|
31
|
+
]
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"cmd": [
|
35
|
+
"vpython",
|
36
|
+
"-u",
|
37
|
+
"RECIPE_REPO[depot_tools]/gerrit_client.py",
|
38
|
+
"branchinfo",
|
39
|
+
"--host",
|
40
|
+
"https://chromium-review.googlesource.com",
|
41
|
+
"--project",
|
42
|
+
"v8/v8",
|
43
|
+
"--branch",
|
44
|
+
"master",
|
45
|
+
"--json_file",
|
46
|
+
"/path/to/tmp/json"
|
47
|
+
],
|
48
|
+
"env": {
|
49
|
+
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
50
|
+
},
|
51
|
+
"infra_step": true,
|
52
|
+
"name": "gerrit get_gerrit_branch (v8/v8 master)",
|
53
|
+
"~followup_annotations": [
|
54
|
+
"@@@STEP_LOG_LINE@json.output@{@@@",
|
55
|
+
"@@@STEP_LOG_LINE@json.output@ \"ref\": \"refs/heads/master\", @@@",
|
56
|
+
"@@@STEP_LOG_LINE@json.output@ \"revision\": \"67ebf73496383c6777035e374d2d664009e2aa5c\"@@@",
|
57
|
+
"@@@STEP_LOG_LINE@json.output@}@@@",
|
58
|
+
"@@@STEP_LOG_END@json.output@@@"
|
59
|
+
]
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"cmd": [
|
63
|
+
"vpython",
|
64
|
+
"-u",
|
65
|
+
"RECIPE_REPO[depot_tools]/gerrit_client.py",
|
66
|
+
"changes",
|
67
|
+
"--host",
|
68
|
+
"https://chromium-review.googlesource.com",
|
69
|
+
"--json_file",
|
70
|
+
"/path/to/tmp/json",
|
71
|
+
"--start",
|
72
|
+
"1",
|
73
|
+
"--limit",
|
74
|
+
"1",
|
75
|
+
"-p",
|
76
|
+
"project=chromium/src",
|
77
|
+
"-p",
|
78
|
+
"status=open",
|
79
|
+
"-p",
|
80
|
+
"label=Commit-Queue>0"
|
81
|
+
],
|
82
|
+
"env": {
|
83
|
+
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
84
|
+
},
|
85
|
+
"infra_step": true,
|
86
|
+
"name": "gerrit changes",
|
87
|
+
"~followup_annotations": [
|
88
|
+
"@@@STEP_LOG_LINE@json.output@[@@@",
|
89
|
+
"@@@STEP_LOG_LINE@json.output@ {@@@",
|
90
|
+
"@@@STEP_LOG_LINE@json.output@ \"_number\": \"91827\", @@@",
|
91
|
+
"@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
|
92
|
+
"@@@STEP_LOG_LINE@json.output@ \"change_id\": \"Ideadbeef\", @@@",
|
93
|
+
"@@@STEP_LOG_LINE@json.output@ \"created\": \"2017-01-30 13:11:20.000000000\", @@@",
|
94
|
+
"@@@STEP_LOG_LINE@json.output@ \"has_review_started\": false, @@@",
|
95
|
+
"@@@STEP_LOG_LINE@json.output@ \"project\": \"chromium/src\", @@@",
|
96
|
+
"@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
|
97
|
+
"@@@STEP_LOG_LINE@json.output@ \"184ebe53805e102605d11f6b143486d15c23a09c\": {@@@",
|
98
|
+
"@@@STEP_LOG_LINE@json.output@ \"_number\": \"1\", @@@",
|
99
|
+
"@@@STEP_LOG_LINE@json.output@ \"commit\": {@@@",
|
100
|
+
"@@@STEP_LOG_LINE@json.output@ \"message\": \"Change commit message\"@@@",
|
101
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
102
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
103
|
+
"@@@STEP_LOG_LINE@json.output@ }, @@@",
|
104
|
+
"@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\", @@@",
|
105
|
+
"@@@STEP_LOG_LINE@json.output@ \"subject\": \"Change title\"@@@",
|
106
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
107
|
+
"@@@STEP_LOG_LINE@json.output@]@@@",
|
108
|
+
"@@@STEP_LOG_END@json.output@@@"
|
109
|
+
]
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"cmd": [
|
113
|
+
"vpython",
|
114
|
+
"-u",
|
115
|
+
"RECIPE_REPO[depot_tools]/gerrit_client.py",
|
116
|
+
"changes",
|
117
|
+
"--host",
|
118
|
+
"https://chromium-review.googlesource.com",
|
119
|
+
"--json_file",
|
120
|
+
"/path/to/tmp/json",
|
121
|
+
"-p",
|
122
|
+
"project=chromium/src",
|
123
|
+
"-p",
|
124
|
+
"status=open",
|
125
|
+
"-p",
|
126
|
+
"label=Commit-Queue>2"
|
127
|
+
],
|
128
|
+
"env": {
|
129
|
+
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
130
|
+
},
|
131
|
+
"infra_step": true,
|
132
|
+
"name": "gerrit changes empty query",
|
133
|
+
"~followup_annotations": [
|
134
|
+
"@@@STEP_LOG_LINE@json.output@[]@@@",
|
135
|
+
"@@@STEP_LOG_END@json.output@@@"
|
136
|
+
]
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"cmd": [
|
140
|
+
"vpython",
|
141
|
+
"-u",
|
142
|
+
"RECIPE_REPO[depot_tools]/gerrit_client.py",
|
143
|
+
"changes",
|
144
|
+
"--host",
|
145
|
+
"https://chromium-review.googlesource.com",
|
146
|
+
"--json_file",
|
147
|
+
"/path/to/tmp/json",
|
148
|
+
"--limit",
|
149
|
+
"1",
|
150
|
+
"-p",
|
151
|
+
"change=123",
|
152
|
+
"-o",
|
153
|
+
"ALL_REVISIONS",
|
154
|
+
"-o",
|
155
|
+
"ALL_COMMITS"
|
156
|
+
],
|
157
|
+
"env": {
|
158
|
+
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
159
|
+
},
|
160
|
+
"infra_step": true,
|
161
|
+
"name": "gerrit changes (2)",
|
162
|
+
"~followup_annotations": [
|
163
|
+
"@@@STEP_LOG_LINE@json.output@[@@@",
|
164
|
+
"@@@STEP_LOG_LINE@json.output@ {@@@",
|
165
|
+
"@@@STEP_LOG_LINE@json.output@ \"_number\": \"91827\", @@@",
|
166
|
+
"@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
|
167
|
+
"@@@STEP_LOG_LINE@json.output@ \"change_id\": \"Ideadbeef\", @@@",
|
168
|
+
"@@@STEP_LOG_LINE@json.output@ \"created\": \"2017-01-30 13:11:20.000000000\", @@@",
|
169
|
+
"@@@STEP_LOG_LINE@json.output@ \"has_review_started\": false, @@@",
|
170
|
+
"@@@STEP_LOG_LINE@json.output@ \"project\": \"chromium/src\", @@@",
|
171
|
+
"@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
|
172
|
+
"@@@STEP_LOG_LINE@json.output@ \"184ebe53805e102605d11f6b143486d15c23a09c\": {@@@",
|
173
|
+
"@@@STEP_LOG_LINE@json.output@ \"_number\": \"1\", @@@",
|
174
|
+
"@@@STEP_LOG_LINE@json.output@ \"commit\": {@@@",
|
175
|
+
"@@@STEP_LOG_LINE@json.output@ \"message\": \"Change commit message\"@@@",
|
176
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
177
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
178
|
+
"@@@STEP_LOG_LINE@json.output@ }, @@@",
|
179
|
+
"@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\", @@@",
|
180
|
+
"@@@STEP_LOG_LINE@json.output@ \"subject\": \"Change title\"@@@",
|
181
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
182
|
+
"@@@STEP_LOG_LINE@json.output@]@@@",
|
183
|
+
"@@@STEP_LOG_END@json.output@@@"
|
184
|
+
]
|
185
|
+
},
|
186
|
+
{
|
187
|
+
"cmd": [
|
188
|
+
"vpython",
|
189
|
+
"-u",
|
190
|
+
"RECIPE_REPO[depot_tools]/gerrit_client.py",
|
191
|
+
"abandon",
|
192
|
+
"--host",
|
193
|
+
"https://chromium-review.googlesource.com",
|
194
|
+
"--change",
|
195
|
+
"123",
|
196
|
+
"--json_file",
|
197
|
+
"/path/to/tmp/json",
|
198
|
+
"--message",
|
199
|
+
"bad roll"
|
200
|
+
],
|
201
|
+
"env": {
|
202
|
+
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
203
|
+
},
|
204
|
+
"infra_step": true,
|
205
|
+
"name": "gerrit abandon",
|
206
|
+
"~followup_annotations": [
|
207
|
+
"@@@STEP_LOG_LINE@json.output@[@@@",
|
208
|
+
"@@@STEP_LOG_LINE@json.output@ {@@@",
|
209
|
+
"@@@STEP_LOG_LINE@json.output@ \"_number\": \"123\", @@@",
|
210
|
+
"@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
|
211
|
+
"@@@STEP_LOG_LINE@json.output@ \"change_id\": \"Ideadbeef\", @@@",
|
212
|
+
"@@@STEP_LOG_LINE@json.output@ \"created\": \"2017-01-30 13:11:20.000000000\", @@@",
|
213
|
+
"@@@STEP_LOG_LINE@json.output@ \"has_review_started\": false, @@@",
|
214
|
+
"@@@STEP_LOG_LINE@json.output@ \"project\": \"chromium/src\", @@@",
|
215
|
+
"@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
|
216
|
+
"@@@STEP_LOG_LINE@json.output@ \"184ebe53805e102605d11f6b143486d15c23a09c\": {@@@",
|
217
|
+
"@@@STEP_LOG_LINE@json.output@ \"_number\": \"1\", @@@",
|
218
|
+
"@@@STEP_LOG_LINE@json.output@ \"commit\": {@@@",
|
219
|
+
"@@@STEP_LOG_LINE@json.output@ \"message\": \"Change commit message\"@@@",
|
220
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
221
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
222
|
+
"@@@STEP_LOG_LINE@json.output@ }, @@@",
|
223
|
+
"@@@STEP_LOG_LINE@json.output@ \"status\": \"ABANDONED\", @@@",
|
224
|
+
"@@@STEP_LOG_LINE@json.output@ \"subject\": \"Change title\"@@@",
|
225
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
226
|
+
"@@@STEP_LOG_LINE@json.output@]@@@",
|
227
|
+
"@@@STEP_LOG_END@json.output@@@"
|
228
|
+
]
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"cmd": [
|
232
|
+
"vpython",
|
233
|
+
"-u",
|
234
|
+
"RECIPE_REPO[depot_tools]/gerrit_client.py",
|
235
|
+
"changes",
|
236
|
+
"--host",
|
237
|
+
"https://chromium-review.googlesource.com",
|
238
|
+
"--json_file",
|
239
|
+
"/path/to/tmp/json",
|
240
|
+
"--limit",
|
241
|
+
"1",
|
242
|
+
"-p",
|
243
|
+
"change=122",
|
244
|
+
"-o",
|
245
|
+
"ALL_REVISIONS",
|
246
|
+
"-o",
|
247
|
+
"ALL_COMMITS"
|
248
|
+
],
|
249
|
+
"env": {
|
250
|
+
"PATH": "<PATH>:RECIPE_REPO[depot_tools]"
|
251
|
+
},
|
252
|
+
"infra_step": true,
|
253
|
+
"name": "gerrit changes (3)",
|
254
|
+
"~followup_annotations": [
|
255
|
+
"@@@STEP_LOG_LINE@json.output@[@@@",
|
256
|
+
"@@@STEP_LOG_LINE@json.output@ {@@@",
|
257
|
+
"@@@STEP_LOG_LINE@json.output@ \"_number\": \"91827\", @@@",
|
258
|
+
"@@@STEP_LOG_LINE@json.output@ \"branch\": \"master\", @@@",
|
259
|
+
"@@@STEP_LOG_LINE@json.output@ \"change_id\": \"Ideadbeef\", @@@",
|
260
|
+
"@@@STEP_LOG_LINE@json.output@ \"created\": \"2017-01-30 13:11:20.000000000\", @@@",
|
261
|
+
"@@@STEP_LOG_LINE@json.output@ \"has_review_started\": false, @@@",
|
262
|
+
"@@@STEP_LOG_LINE@json.output@ \"project\": \"chromium/src\", @@@",
|
263
|
+
"@@@STEP_LOG_LINE@json.output@ \"revisions\": {@@@",
|
264
|
+
"@@@STEP_LOG_LINE@json.output@ \"184ebe53805e102605d11f6b143486d15c23a09c\": {@@@",
|
265
|
+
"@@@STEP_LOG_LINE@json.output@ \"_number\": \"1\", @@@",
|
266
|
+
"@@@STEP_LOG_LINE@json.output@ \"commit\": {@@@",
|
267
|
+
"@@@STEP_LOG_LINE@json.output@ \"message\": \"Change commit message\"@@@",
|
268
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
269
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
270
|
+
"@@@STEP_LOG_LINE@json.output@ }, @@@",
|
271
|
+
"@@@STEP_LOG_LINE@json.output@ \"status\": \"NEW\", @@@",
|
272
|
+
"@@@STEP_LOG_LINE@json.output@ \"subject\": \"Change title\"@@@",
|
273
|
+
"@@@STEP_LOG_LINE@json.output@ }@@@",
|
274
|
+
"@@@STEP_LOG_LINE@json.output@]@@@",
|
275
|
+
"@@@STEP_LOG_END@json.output@@@"
|
276
|
+
]
|
277
|
+
},
|
278
|
+
{
|
279
|
+
"failure": {
|
280
|
+
"humanReason": "1 out of 1 aggregated steps failed: Error querying for CL description: host:'https://chromium-review.googlesource.com' change:122; patchset:3"
|
281
|
+
},
|
282
|
+
"name": "$result"
|
283
|
+
}
|
284
|
+
]
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# Copyright 2014 The Chromium Authors. All rights reserved.
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
|
5
|
+
DEPS = [
|
6
|
+
'gerrit',
|
7
|
+
'recipe_engine/step',
|
8
|
+
]
|
9
|
+
|
10
|
+
|
11
|
+
def RunSteps(api):
|
12
|
+
host = 'https://chromium-review.googlesource.com'
|
13
|
+
project = 'v8/v8'
|
14
|
+
|
15
|
+
branch = 'test'
|
16
|
+
commit = '67ebf73496383c6777035e374d2d664009e2aa5c'
|
17
|
+
|
18
|
+
data = api.gerrit.create_gerrit_branch(host, project, branch, commit)
|
19
|
+
assert data == 'refs/heads/test'
|
20
|
+
|
21
|
+
data = api.gerrit.get_gerrit_branch(host, project, 'master')
|
22
|
+
assert data == '67ebf73496383c6777035e374d2d664009e2aa5c'
|
23
|
+
|
24
|
+
# Query for changes in Chromium's CQ.
|
25
|
+
api.gerrit.get_changes(
|
26
|
+
host,
|
27
|
+
query_params=[
|
28
|
+
('project', 'chromium/src'),
|
29
|
+
('status', 'open'),
|
30
|
+
('label', 'Commit-Queue>0'),
|
31
|
+
],
|
32
|
+
start=1,
|
33
|
+
limit=1,
|
34
|
+
)
|
35
|
+
|
36
|
+
# Query which returns no changes is still successful query.
|
37
|
+
empty_list = api.gerrit.get_changes(
|
38
|
+
host,
|
39
|
+
query_params=[
|
40
|
+
('project', 'chromium/src'),
|
41
|
+
('status', 'open'),
|
42
|
+
('label', 'Commit-Queue>2'),
|
43
|
+
],
|
44
|
+
name='changes empty query',
|
45
|
+
)
|
46
|
+
assert len(empty_list) == 0
|
47
|
+
|
48
|
+
api.gerrit.get_change_description(
|
49
|
+
host, change=123, patchset=1)
|
50
|
+
|
51
|
+
api.gerrit.abandon_change(host, 123, 'bad roll')
|
52
|
+
|
53
|
+
with api.step.defer_results():
|
54
|
+
api.gerrit.get_change_description(
|
55
|
+
host, change=122, patchset=3)
|
56
|
+
|
57
|
+
|
58
|
+
def GenTests(api):
|
59
|
+
yield (
|
60
|
+
api.test('basic')
|
61
|
+
+ api.step_data(
|
62
|
+
'gerrit create_gerrit_branch (v8/v8 test)',
|
63
|
+
api.gerrit.make_gerrit_create_branch_response_data()
|
64
|
+
)
|
65
|
+
+ api.step_data(
|
66
|
+
'gerrit get_gerrit_branch (v8/v8 master)',
|
67
|
+
api.gerrit.make_gerrit_get_branch_response_data()
|
68
|
+
)
|
69
|
+
+ api.step_data(
|
70
|
+
'gerrit changes empty query',
|
71
|
+
api.gerrit.get_empty_changes_response_data()
|
72
|
+
)
|
73
|
+
)
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# Copyright 2014 The Chromium Authors. All rights reserved.
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
|
5
|
+
from recipe_engine import recipe_test_api
|
6
|
+
|
7
|
+
|
8
|
+
# Exemplary change. Note: This contains only a subset of the key/value pairs
|
9
|
+
# present in production to limit recipe simulation output.
|
10
|
+
EXAMPLE_CHANGE = {
|
11
|
+
'status': 'NEW',
|
12
|
+
'created': '2017-01-30 13:11:20.000000000',
|
13
|
+
'_number': '91827',
|
14
|
+
'change_id': 'Ideadbeef',
|
15
|
+
'project': 'chromium/src',
|
16
|
+
'has_review_started': False,
|
17
|
+
'branch': 'master',
|
18
|
+
'subject': 'Change title',
|
19
|
+
'revisions': {
|
20
|
+
'184ebe53805e102605d11f6b143486d15c23a09c': {
|
21
|
+
'_number': '1',
|
22
|
+
'commit': {
|
23
|
+
'message': 'Change commit message',
|
24
|
+
},
|
25
|
+
},
|
26
|
+
},
|
27
|
+
}
|
28
|
+
|
29
|
+
class GerritTestApi(recipe_test_api.RecipeTestApi):
|
30
|
+
|
31
|
+
def _make_gerrit_response_json(self, data):
|
32
|
+
return self.m.json.output(data)
|
33
|
+
|
34
|
+
def make_gerrit_create_branch_response_data(self):
|
35
|
+
return self._make_gerrit_response_json({
|
36
|
+
"ref": "refs/heads/test",
|
37
|
+
"revision": "76016386a0d8ecc7b6be212424978bb45959d668",
|
38
|
+
"can_delete": True
|
39
|
+
})
|
40
|
+
|
41
|
+
def make_gerrit_get_branch_response_data(self):
|
42
|
+
return self._make_gerrit_response_json({
|
43
|
+
"ref": "refs/heads/master",
|
44
|
+
"revision": "67ebf73496383c6777035e374d2d664009e2aa5c"
|
45
|
+
})
|
46
|
+
|
47
|
+
def get_one_change_response_data(self, **kwargs):
|
48
|
+
change = EXAMPLE_CHANGE.copy()
|
49
|
+
change.update(kwargs)
|
50
|
+
return self._make_gerrit_response_json([change])
|
51
|
+
|
52
|
+
def get_empty_changes_response_data(self):
|
53
|
+
return self._make_gerrit_response_json([])
|
@@ -0,0 +1,405 @@
|
|
1
|
+
# Copyright 2013 The Chromium Authors. All rights reserved.
|
2
|
+
# Use of this source code is governed by a BSD-style license that can be
|
3
|
+
# found in the LICENSE file.
|
4
|
+
|
5
|
+
import itertools
|
6
|
+
import re
|
7
|
+
|
8
|
+
from recipe_engine import recipe_api
|
9
|
+
|
10
|
+
class GitApi(recipe_api.RecipeApi):
|
11
|
+
_GIT_HASH_RE = re.compile('[0-9a-f]{40}', re.IGNORECASE)
|
12
|
+
|
13
|
+
def __call__(self, *args, **kwargs):
|
14
|
+
"""Return a git command step."""
|
15
|
+
name = kwargs.pop('name', 'git ' + args[0])
|
16
|
+
|
17
|
+
infra_step = kwargs.pop('infra_step', True)
|
18
|
+
git_cmd = ['git']
|
19
|
+
|
20
|
+
options = kwargs.pop('git_config_options', {})
|
21
|
+
for k, v in sorted(options.items()):
|
22
|
+
git_cmd.extend(['-c', '%s=%s' % (k, v)])
|
23
|
+
can_fail_build = kwargs.pop('can_fail_build', True)
|
24
|
+
try:
|
25
|
+
with self.m.context(cwd=(self.m.context.cwd or self.m.path['checkout'])):
|
26
|
+
return self.m.step(name, git_cmd + list(args), infra_step=infra_step,
|
27
|
+
**kwargs)
|
28
|
+
except self.m.step.StepFailure as f:
|
29
|
+
if can_fail_build:
|
30
|
+
raise
|
31
|
+
else:
|
32
|
+
return f.result
|
33
|
+
|
34
|
+
def fetch_tags(self, remote_name=None, **kwargs):
|
35
|
+
"""Fetches all tags from the remote."""
|
36
|
+
kwargs.setdefault('name', 'git fetch tags')
|
37
|
+
remote_name = remote_name or 'origin'
|
38
|
+
return self('fetch', remote_name, '--tags', **kwargs)
|
39
|
+
|
40
|
+
def cat_file_at_commit(self, file_path, commit_hash, remote_name=None,
|
41
|
+
**kwargs):
|
42
|
+
"""Outputs the contents of a file at a given revision."""
|
43
|
+
self.fetch_tags(remote_name=remote_name, **kwargs)
|
44
|
+
kwargs.setdefault('name', 'git cat-file %s:%s' % (commit_hash, file_path))
|
45
|
+
return self('cat-file', 'blob', '%s:%s' % (commit_hash, file_path),
|
46
|
+
**kwargs)
|
47
|
+
|
48
|
+
def count_objects(self, previous_result=None, can_fail_build=False, **kwargs):
|
49
|
+
"""Returns `git count-objects` result as a dict.
|
50
|
+
|
51
|
+
Args:
|
52
|
+
previous_result (dict): the result of previous count_objects call.
|
53
|
+
If passed, delta is reported in the log and step text.
|
54
|
+
can_fail_build (bool): if True, may fail the build and/or raise an
|
55
|
+
exception. Defaults to False.
|
56
|
+
|
57
|
+
Returns:
|
58
|
+
A dict of count-object values, or None if count-object run failed.
|
59
|
+
"""
|
60
|
+
if previous_result:
|
61
|
+
assert isinstance(previous_result, dict)
|
62
|
+
assert all(isinstance(v, long) for v in previous_result.values())
|
63
|
+
assert 'size' in previous_result
|
64
|
+
assert 'size-pack' in previous_result
|
65
|
+
|
66
|
+
step_result = None
|
67
|
+
try:
|
68
|
+
step_result = self(
|
69
|
+
'count-objects', '-v', stdout=self.m.raw_io.output(),
|
70
|
+
can_fail_build=can_fail_build, **kwargs)
|
71
|
+
|
72
|
+
if not step_result.stdout:
|
73
|
+
return None
|
74
|
+
|
75
|
+
result = {}
|
76
|
+
for line in step_result.stdout.splitlines():
|
77
|
+
name, value = line.split(':', 1)
|
78
|
+
result[name] = long(value.strip())
|
79
|
+
|
80
|
+
def results_to_text(results):
|
81
|
+
return [' %s: %s' % (k, v) for k, v in results.items()]
|
82
|
+
|
83
|
+
step_result.presentation.logs['result'] = results_to_text(result)
|
84
|
+
|
85
|
+
if previous_result:
|
86
|
+
delta = {
|
87
|
+
key: value - previous_result[key]
|
88
|
+
for key, value in result.items()
|
89
|
+
if key in previous_result}
|
90
|
+
step_result.presentation.logs['delta'] = (
|
91
|
+
['before:'] + results_to_text(previous_result) +
|
92
|
+
['', 'after:'] + results_to_text(result) +
|
93
|
+
['', 'delta:'] + results_to_text(delta)
|
94
|
+
)
|
95
|
+
|
96
|
+
size_delta = (
|
97
|
+
result['size'] + result['size-pack']
|
98
|
+
- previous_result['size'] - previous_result['size-pack'])
|
99
|
+
# size_delta is in KiB.
|
100
|
+
step_result.presentation.step_text = (
|
101
|
+
'size delta: %+.2f MiB' % (size_delta / 1024.0))
|
102
|
+
|
103
|
+
return result
|
104
|
+
except Exception as ex:
|
105
|
+
if step_result:
|
106
|
+
step_result.presentation.logs['exception'] = ['%r' % ex]
|
107
|
+
step_result.presentation.status = self.m.step.WARNING
|
108
|
+
if can_fail_build:
|
109
|
+
raise recipe_api.InfraFailure('count-objects failed: %s' % ex)
|
110
|
+
return None
|
111
|
+
|
112
|
+
def checkout(self, url, ref=None, dir_path=None, recursive=False,
|
113
|
+
submodules=True, submodule_update_force=False,
|
114
|
+
keep_paths=None, step_suffix=None,
|
115
|
+
curl_trace_file=None, can_fail_build=True,
|
116
|
+
set_got_revision=False, remote_name=None,
|
117
|
+
display_fetch_size=None, file_name=None,
|
118
|
+
submodule_update_recursive=True,
|
119
|
+
use_git_cache=False, progress=True, tags=False):
|
120
|
+
"""Performs a full git checkout and returns sha1 of checked out revision.
|
121
|
+
|
122
|
+
Args:
|
123
|
+
url (str): url of remote repo to use as upstream
|
124
|
+
ref (str): ref to fetch and check out
|
125
|
+
dir_path (Path): optional directory to clone into
|
126
|
+
recursive (bool): whether to recursively fetch submodules or not
|
127
|
+
submodules (bool): whether to sync and update submodules or not
|
128
|
+
submodule_update_force (bool): whether to update submodules with --force
|
129
|
+
keep_paths (iterable of strings): paths to ignore during git-clean;
|
130
|
+
paths are gitignore-style patterns relative to checkout_path.
|
131
|
+
step_suffix (str): suffix to add to a each step name
|
132
|
+
curl_trace_file (Path): if not None, dump GIT_CURL_VERBOSE=1 trace to that
|
133
|
+
file. Useful for debugging git issue reproducible only on bots. It has
|
134
|
+
a side effect of all stderr output of 'git fetch' going to that file.
|
135
|
+
can_fail_build (bool): if False, ignore errors during fetch or checkout.
|
136
|
+
set_got_revision (bool): if True, resolves HEAD and sets got_revision
|
137
|
+
property.
|
138
|
+
remote_name (str): name of the git remote to use
|
139
|
+
display_fetch_size (bool): if True, run `git count-objects` before and
|
140
|
+
after fetch and display delta. Adds two more steps. Defaults to False.
|
141
|
+
file_name (str): optional path to a single file to checkout.
|
142
|
+
submodule_update_recursive (bool): if True, updates submodules
|
143
|
+
recursively.
|
144
|
+
use_git_cache (bool): if True, git cache will be used for this checkout.
|
145
|
+
WARNING, this is EXPERIMENTAL!!! This wasn't tested with:
|
146
|
+
* submodules
|
147
|
+
* since origin url is modified
|
148
|
+
to a local path, may cause problem with scripts that do
|
149
|
+
"git fetch origin" or "git push origin".
|
150
|
+
* arbitrary refs such refs/whatever/not-fetched-by-default-to-cache
|
151
|
+
progress (bool): whether to show progress for fetch or not
|
152
|
+
tags (bool): Also fetch tags.
|
153
|
+
|
154
|
+
Returns: If the checkout was successful, this returns the commit hash of
|
155
|
+
the checked-out-repo. Otherwise this returns None.
|
156
|
+
"""
|
157
|
+
retVal = None
|
158
|
+
|
159
|
+
# TODO(robertocn): Break this function and refactor calls to it.
|
160
|
+
# The problem is that there are way too many unrealated use cases for
|
161
|
+
# it, and the function's signature is getting unwieldy and its body
|
162
|
+
# unreadable.
|
163
|
+
display_fetch_size = display_fetch_size or False
|
164
|
+
if not dir_path:
|
165
|
+
dir_path = url.rsplit('/', 1)[-1]
|
166
|
+
if dir_path.endswith('.git'): # ex: https://host/foobar.git
|
167
|
+
dir_path = dir_path[:-len('.git')]
|
168
|
+
|
169
|
+
# ex: ssh://host:repo/foobar/.git
|
170
|
+
dir_path = dir_path or dir_path.rsplit('/', 1)[-1]
|
171
|
+
|
172
|
+
dir_path = self.m.path['start_dir'].join(dir_path)
|
173
|
+
|
174
|
+
if 'checkout' not in self.m.path:
|
175
|
+
self.m.path['checkout'] = dir_path
|
176
|
+
|
177
|
+
git_setup_args = ['--path', dir_path, '--url', url]
|
178
|
+
|
179
|
+
if remote_name:
|
180
|
+
git_setup_args += ['--remote', remote_name]
|
181
|
+
else:
|
182
|
+
remote_name = 'origin'
|
183
|
+
|
184
|
+
step_suffix = '' if step_suffix is None else ' (%s)' % step_suffix
|
185
|
+
self.m.python(
|
186
|
+
'git setup%s' % step_suffix,
|
187
|
+
self.resource('git_setup.py'),
|
188
|
+
git_setup_args)
|
189
|
+
|
190
|
+
# Some of the commands below require depot_tools to be in PATH.
|
191
|
+
path = self.m.path.pathsep.join([
|
192
|
+
str(self.repo_resource()), '%(PATH)s'])
|
193
|
+
|
194
|
+
with self.m.context(cwd=dir_path):
|
195
|
+
if use_git_cache:
|
196
|
+
with self.m.context(env={'PATH': path}):
|
197
|
+
self('cache', 'populate', '-c',
|
198
|
+
self.m.path['cache'].join('git'), url,
|
199
|
+
name='populate cache',
|
200
|
+
can_fail_build=can_fail_build)
|
201
|
+
dir_cmd = self(
|
202
|
+
'cache', 'exists', '--quiet',
|
203
|
+
'--cache-dir', self.m.path['cache'].join('git'), url,
|
204
|
+
can_fail_build=can_fail_build,
|
205
|
+
stdout=self.m.raw_io.output(),
|
206
|
+
step_test_data=lambda:
|
207
|
+
self.m.raw_io.test_api.stream_output('mirror_dir'))
|
208
|
+
mirror_dir = dir_cmd.stdout.strip()
|
209
|
+
self('remote', 'set-url', 'origin', mirror_dir,
|
210
|
+
can_fail_build=can_fail_build)
|
211
|
+
|
212
|
+
# There are five kinds of refs we can be handed:
|
213
|
+
# 0) None. In this case, we default to api.buildbucket.gitiles_commit.ref.
|
214
|
+
# 1) A fully qualified branch name, e.g. 'refs/heads/master'.
|
215
|
+
# Chop off 'refs/heads/' and now it matches case (4).
|
216
|
+
# 2) A 40-character SHA1 hash.
|
217
|
+
# 3) A fully-qualifed arbitrary ref, e.g. 'refs/foo/bar/baz'.
|
218
|
+
# 4) A branch name, e.g. 'master'.
|
219
|
+
# Note that 'FETCH_HEAD' can be many things (and therefore not a valid
|
220
|
+
# checkout target) if many refs are fetched, but we only explicitly fetch
|
221
|
+
# one ref here, so this is safe.
|
222
|
+
if not ref: # Case 0.
|
223
|
+
ref = self.m.buildbucket.gitiles_commit.ref or 'master'
|
224
|
+
|
225
|
+
# If it's a fully-qualified branch name, trim the 'refs/heads/' prefix.
|
226
|
+
if ref.startswith('refs/heads/'): # Case 1.
|
227
|
+
ref = ref[len('refs/heads/'):]
|
228
|
+
|
229
|
+
fetch_args = []
|
230
|
+
if self._GIT_HASH_RE.match(ref): # Case 2.
|
231
|
+
fetch_remote = remote_name
|
232
|
+
fetch_ref = ''
|
233
|
+
checkout_ref = ref
|
234
|
+
else: # Cases 3 and 4.
|
235
|
+
fetch_remote = remote_name
|
236
|
+
fetch_ref = ref
|
237
|
+
checkout_ref = 'FETCH_HEAD'
|
238
|
+
|
239
|
+
fetch_args = [x for x in (fetch_remote, fetch_ref) if x]
|
240
|
+
if recursive:
|
241
|
+
fetch_args.append('--recurse-submodules')
|
242
|
+
|
243
|
+
if progress:
|
244
|
+
fetch_args.append('--progress')
|
245
|
+
|
246
|
+
fetch_env = {'PATH': path}
|
247
|
+
fetch_stderr = None
|
248
|
+
if curl_trace_file:
|
249
|
+
fetch_env['GIT_CURL_VERBOSE'] = '1'
|
250
|
+
fetch_stderr = self.m.raw_io.output(leak_to=curl_trace_file)
|
251
|
+
|
252
|
+
if tags:
|
253
|
+
fetch_args.append('--tags')
|
254
|
+
|
255
|
+
fetch_step_name = 'git fetch%s' % step_suffix
|
256
|
+
if display_fetch_size:
|
257
|
+
count_objects_before_fetch = self.count_objects(
|
258
|
+
name='count-objects before %s' % fetch_step_name,
|
259
|
+
step_test_data=lambda: self.m.raw_io.test_api.stream_output(
|
260
|
+
self.test_api.count_objects_output(1000)))
|
261
|
+
with self.m.context(env=fetch_env):
|
262
|
+
self('fetch', *fetch_args,
|
263
|
+
name=fetch_step_name,
|
264
|
+
stderr=fetch_stderr,
|
265
|
+
can_fail_build=can_fail_build)
|
266
|
+
if display_fetch_size:
|
267
|
+
self.count_objects(
|
268
|
+
name='count-objects after %s' % fetch_step_name,
|
269
|
+
previous_result=count_objects_before_fetch,
|
270
|
+
step_test_data=lambda: self.m.raw_io.test_api.stream_output(
|
271
|
+
self.test_api.count_objects_output(2000)))
|
272
|
+
|
273
|
+
if file_name:
|
274
|
+
self('checkout', '-f', checkout_ref, '--', file_name,
|
275
|
+
name='git checkout%s' % step_suffix,
|
276
|
+
can_fail_build=can_fail_build)
|
277
|
+
|
278
|
+
else:
|
279
|
+
self('checkout', '-f', checkout_ref,
|
280
|
+
name='git checkout%s' % step_suffix,
|
281
|
+
can_fail_build=can_fail_build)
|
282
|
+
|
283
|
+
rev_parse_step = self('rev-parse', 'HEAD',
|
284
|
+
name='read revision',
|
285
|
+
stdout=self.m.raw_io.output(),
|
286
|
+
can_fail_build=False,
|
287
|
+
step_test_data=lambda:
|
288
|
+
self.m.raw_io.test_api.stream_output('deadbeef'))
|
289
|
+
|
290
|
+
if rev_parse_step.presentation.status == 'SUCCESS':
|
291
|
+
sha = rev_parse_step.stdout.strip()
|
292
|
+
retVal = sha
|
293
|
+
rev_parse_step.presentation.step_text = "<br/>checked out %r<br/>" % sha
|
294
|
+
if set_got_revision:
|
295
|
+
rev_parse_step.presentation.properties['got_revision'] = sha
|
296
|
+
|
297
|
+
clean_args = list(itertools.chain(
|
298
|
+
*[('-e', path) for path in keep_paths or []]))
|
299
|
+
|
300
|
+
self('clean', '-f', '-d', '-x', *clean_args,
|
301
|
+
name='git clean%s' % step_suffix,
|
302
|
+
can_fail_build=can_fail_build)
|
303
|
+
|
304
|
+
if submodules:
|
305
|
+
self('submodule', 'sync',
|
306
|
+
name='submodule sync%s' % step_suffix,
|
307
|
+
can_fail_build=can_fail_build)
|
308
|
+
submodule_update = ['submodule', 'update', '--init']
|
309
|
+
if submodule_update_recursive:
|
310
|
+
submodule_update.append('--recursive')
|
311
|
+
if submodule_update_force:
|
312
|
+
submodule_update.append('--force')
|
313
|
+
self(*submodule_update,
|
314
|
+
name='submodule update%s' % step_suffix,
|
315
|
+
can_fail_build=can_fail_build)
|
316
|
+
|
317
|
+
return retVal
|
318
|
+
|
319
|
+
def get_timestamp(self, commit='HEAD', test_data=None, **kwargs):
|
320
|
+
"""Find and return the timestamp of the given commit."""
|
321
|
+
step_test_data = None
|
322
|
+
if test_data is not None:
|
323
|
+
step_test_data = lambda: self.m.raw_io.test_api.stream_output(test_data)
|
324
|
+
return self('show', commit, '--format=%at', '-s',
|
325
|
+
stdout=self.m.raw_io.output(),
|
326
|
+
step_test_data=step_test_data).stdout.rstrip()
|
327
|
+
|
328
|
+
def rebase(self, name_prefix, branch, dir_path, remote_name=None,
|
329
|
+
**kwargs):
|
330
|
+
"""Run rebase HEAD onto branch
|
331
|
+
Args:
|
332
|
+
name_prefix (str): a prefix used for the step names
|
333
|
+
branch (str): a branch name or a hash to rebase onto
|
334
|
+
dir_path (Path): directory to clone into
|
335
|
+
remote_name (str): the remote name to rebase from if not origin
|
336
|
+
"""
|
337
|
+
remote_name = remote_name or 'origin'
|
338
|
+
with self.m.context(cwd=dir_path):
|
339
|
+
try:
|
340
|
+
self('rebase', '%s/master' % remote_name,
|
341
|
+
name="%s rebase" % name_prefix, **kwargs)
|
342
|
+
except self.m.step.StepFailure:
|
343
|
+
self('rebase', '--abort', name='%s rebase abort' % name_prefix,
|
344
|
+
**kwargs)
|
345
|
+
raise
|
346
|
+
|
347
|
+
def config_get(self, prop_name, **kwargs):
|
348
|
+
"""Returns: (str) The Git config output, or None if no output was generated.
|
349
|
+
|
350
|
+
Args:
|
351
|
+
prop_name: (str) The name of the config property to query.
|
352
|
+
kwargs: Forwarded to '__call__'.
|
353
|
+
"""
|
354
|
+
kwargs['name'] = kwargs.get('name', 'git config %s' % (prop_name,))
|
355
|
+
result = self('config', '--get', prop_name, stdout=self.m.raw_io.output(),
|
356
|
+
**kwargs)
|
357
|
+
|
358
|
+
value = result.stdout
|
359
|
+
if value:
|
360
|
+
value = value.strip()
|
361
|
+
result.presentation.step_text = value
|
362
|
+
return value
|
363
|
+
|
364
|
+
def get_remote_url(self, remote_name=None, **kwargs):
|
365
|
+
"""Returns: (str) The URL of the remote Git repository, or None.
|
366
|
+
|
367
|
+
Args:
|
368
|
+
remote_name: (str) The name of the remote to query, defaults to 'origin'.
|
369
|
+
kwargs: Forwarded to '__call__'.
|
370
|
+
"""
|
371
|
+
remote_name = remote_name or 'origin'
|
372
|
+
return self.config_get('remote.%s.url' % (remote_name,), **kwargs)
|
373
|
+
|
374
|
+
def bundle_create(self, bundle_path, rev_list_args=None, **kwargs):
|
375
|
+
"""Run 'git bundle create' on a Git repository.
|
376
|
+
|
377
|
+
Args:
|
378
|
+
bundle_path (Path): The path of the output bundle.
|
379
|
+
refs (list): The list of refs to include in the bundle. If None, all
|
380
|
+
refs in the Git checkout will be bundled.
|
381
|
+
kwargs: Forwarded to '__call__'.
|
382
|
+
"""
|
383
|
+
if not rev_list_args:
|
384
|
+
rev_list_args = ['--all']
|
385
|
+
self('bundle', 'create', bundle_path, *rev_list_args, **kwargs)
|
386
|
+
|
387
|
+
def new_branch(self, branch, name=None, upstream=None, **kwargs):
|
388
|
+
"""Runs git new-branch on a Git repository, to be used before git cl upload.
|
389
|
+
|
390
|
+
Args:
|
391
|
+
branch (str): new branch name, which must not yet exist.
|
392
|
+
name (str): step name.
|
393
|
+
upstream (str): to origin/master.
|
394
|
+
kwargs: Forwarded to '__call__'.
|
395
|
+
"""
|
396
|
+
env = self.m.context.env
|
397
|
+
env['PATH'] = self.m.path.pathsep.join([
|
398
|
+
str(self.repo_resource()), '%(PATH)s'])
|
399
|
+
args = ['new-branch', branch]
|
400
|
+
if upstream:
|
401
|
+
args.extend(['--upstream', upstream])
|
402
|
+
if not name:
|
403
|
+
name = 'git new-branch %s' % branch
|
404
|
+
with self.m.context(env=env):
|
405
|
+
return self(*args, name=name, **kwargs)
|