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
Bruce Dawson 0af709772e Don't do double-serial Pylint checks
Pylint uses parallelism to improve performance, but high startup costs
means that this only makes sense if there are lots of files to be
processed. So, a while ago a change was made such that if there are
fewer than ten files to be analyzed then no parallelism is used.

Our Pylint wrapper also has a hack where it does one type of check in
serial mode, because that is the only time it is reliable. This
requires running Pylint twice, which is expensive.

If there are a small enough number of files to analyze then we will be
doing serial analysis anyway, so there is no need to do two separate
runs. In this test case:

  git cl presubmit -v --files tools\code_coverage\create_js_source_maps\test\create_js_source_maps_test.py

the cost of Pylint is dropped roughly in half, from six seconds to
three seconds, by eliminating one of the three-second runs.

Bug: 1309977
Change-Id: I2e5e96a86d1d76b127f481af7478d807c042b609
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3812436
Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com>
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 [no-sync] bot_update: Remove previous no-sync exp changes and implement new one. 3 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 Reland "Update fetch protocol using --protocol-override flag" 3 years ago
fix_encoding_test.py
gclient_cipd_smoketest.py Override cipd install mode for runhooks 3 years ago
gclient_eval_unittest.py
gclient_git_mutates_smoketest.py
gclient_git_smoketest.py [no-sync] Set _should_sync and add flag to control if the experiment should be enabled. 3 years ago
gclient_no_sync_smoketest.py [no-sync] Save previous values to files. 3 years ago
gclient_paths_test.py
gclient_scm_test.py [no-sync] Add method to check for diffs between the current checkout and another commit. 3 years ago
gclient_smoketest.py
gclient_smoketest_base.py
gclient_test.py [no-sync] Save previous values to files. 3 years ago
gclient_transitions_smoketest.py
gclient_utils_test.py Update gclient cloning to work with cog. 3 years ago
gerrit_client_test.py
gerrit_util_test.py
git_cache_test.py
git_cl_creds_check_report.txt
git_cl_test.py [git-cl] If set, use `options.title` for initial uploads. 3 years ago
git_common_test.py
git_dates_test.py
git_find_releases_test.py
git_footers_test.py
git_hyper_blame_test.py
git_map_test.py
git_migrate_default_branch_test.py
git_number_test.py
git_rebase_update_test.py Remove 'Fetching' check in testTrackTag 3 years ago
gsutil_test.py
lockfile_test.py
metrics_test.py
my_activity_test.py
ninjalog_uploader_test.py
owners_client_test.py Revert "Remove old DepotToolsOwners implementation" 3 years ago
owners_finder_test.py
owners_unittest.py Revert "Remove old DepotToolsOwners implementation" 3 years ago
presubmit_unittest.py Don't do double-serial Pylint checks 3 years ago
rdb_wrapper_test.py
recipes_test.py
roll_dep_test.py
scm_unittest.py
split_cl_test.py
subcommand_test.py
subprocess2_test.py
upload_to_google_storage_unittest.py
utils_test.py Add a basic depot_tools version information 3 years ago
watchlists_unittest.py