You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
depot_tools/tests
Josip Sokcevic 632bbc0cb1 Skip Python 2 presubmit step when unneeded
All of the PRESUBMIT.py files in the Chromium repo are running under
Python 3. However "git cl presubmit" also works with other repos where
some PRESUBMIT.py scripts still run under Python 2. This means that
the Python 2 presubmit commit checks step cannot simply be disabled.
That meant that Chromium was paying up to a one-minute cost just to
setup for and look for Python 2 scripts that it doesn't run.

This change runs the Python 3 PRESUBMIT.py scripts first, and keeps
track of whether any were skipped. If none were skipped then the
Python 2 PRESUBMIT.py stage can be skipped.

Note that the child scripts of PRESUBMIT.py scripts may still be run
under Python 2, but that is orthogonal to this change.

Bug: 1313804
Change-Id: Ib65838223f232f1e78058d6a08ea15a89f442310
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3614453
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Reviewed-by: Bruce Dawson <brucedawson@chromium.org>
Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
3 years ago
..
gstools
OWNERS autoninja: add simple test 3 years ago
PRESUBMIT.py
auth_test.py
autoninja_test.py autoninja: add simple test 3 years ago
bot_update_coverage_test.py Use pylint 2.7 for depot_tools 4 years ago
cipd_bootstrap_test.py
detect_host_arch_test.py
download_from_google_storage_unittest.py Skip 'ls' when downloading from gs. 3 years ago
fetch_test.py Add --protocol-override to fetch.py 3 years ago
fix_encoding_test.py Make fix_encoding_test py3 compatible 4 years ago
gclient_cipd_smoketest.py
gclient_eval_unittest.py
gclient_git_mutates_smoketest.py
gclient_git_smoketest.py
gclient_paths_test.py
gclient_scm_test.py Fix host and repo parsing for download-topics 4 years ago
gclient_smoketest.py
gclient_smoketest_base.py Use pylint 2.7 for depot_tools 4 years ago
gclient_test.py Revert "Remove unused functionality in bot_update.py" 4 years ago
gclient_transitions_smoketest.py
gclient_utils_test.py
gerrit_client_test.py Add a 'setlabel' command to gerrit_client.py 4 years ago
gerrit_util_test.py
git_cache_test.py
git_cl_creds_check_report.txt
git_cl_test.py Skip Python 2 presubmit step when unneeded 3 years ago
git_common_test.py Fix git_common_test.py: git checkout -tb -> git checkout -t -b 4 years ago
git_dates_test.py
git_find_releases_test.py Use pylint 2.7 for depot_tools 4 years ago
git_footers_test.py
git_hyper_blame_test.py
git_map_test.py
git_migrate_default_branch_test.py Use pylint 2.7 for depot_tools 4 years ago
git_number_test.py
git_rebase_update_test.py Fix depot_tools tests when running without py2 4 years ago
gsutil_test.py Refactor gsutil and fix concurrecny issue on MacOS 4 years ago
lockfile_test.py
metrics_test.py
my_activity_test.py Require certifi package and python3 in my_activity 4 years ago
ninjalog_uploader_test.py fix ninjalog_uploader.py 4 years ago
owners_client_test.py
owners_finder_test.py
owners_unittest.py
presubmit_unittest.py Skip Python 2 presubmit step when unneeded 3 years ago
rdb_wrapper_test.py
recipes_test.py add vpython3 to tests that run under vpython3 4 years ago
roll_dep_test.py
scm_unittest.py Refresh remote HEAD if matches legacy default 4 years ago
split_cl_test.py
subcommand_test.py
subprocess2_test.py Use pylint 2.7 for depot_tools 4 years ago
upload_to_google_storage_unittest.py Set cache-control when uploading to google storage 4 years ago
utils_test.py Add a basic depot_tools version information 4 years ago
watchlists_unittest.py