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
Stephanie Kim 16e7252be4 Add is_first_class_gcs migration file
If is_first_class_gcs file exists with contents '1'
- GCS hooks will download content and then overwrite the file with '0'
- First class GCS deps will download as necessary by checking the hash
file.

If there is no is_first_class_gcs file or its content is '0' for a GCS hook:
- Hook will run normally and, if content is downloaded, an is_first_class_gcs
file will be written with '0'

If there is no is_first_class_gcs file or its content is '0' for a first
class gcs dep:
- Content will be downloaded and is_first_class_gcs will be set to '1'

Verified locally with migrating and unmigrating a GCS hook.
TODO: update other GCS hook scripts in chromium/src to check migration
file.

Bug: b/324418194
Change-Id: Ida8541cb70839b86e99115bcabfc38bc87e40136
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5368250
Reviewed-by: Joanna Wang <jojwang@chromium.org>
Commit-Queue: Stephanie Kim <kimstephanie@google.com>
1 year ago
..
gstools
OWNERS
auth_test.py
autoninja_test.py Revert "Remove ability to use_goma in autoninja (chromeos excepted)" 1 year ago
bazel_test.py
bot_update_coverage_test.py
cipd_bootstrap_test.py
detect_host_arch_test.py
download_from_google_storage_unittest.py Revert "Reland "Add support for GCS deps"" 1 year ago
fetch_test.py
gclient_cipd_smoketest.py
gclient_eval_unittest.py
gclient_gcs_smoketest.py Add is_first_class_gcs migration file 1 year ago
gclient_git_mutates_smoketest.py
gclient_git_smoketest.py
gclient_no_sync_smoketest.py
gclient_paths_test.py
gclient_scm_test.py Reland "Reland "Add support for GCS deps"" 1 year ago
gclient_smoketest.py
gclient_smoketest_base.py
gclient_test.py
gclient_transitions_smoketest.py
gclient_utils_test.py
gerrit_client_test.py
gerrit_util_test.py Reland "Update gclient to use git config caching" 1 year ago
git_cache_test.py
git_cl_creds_check_report.txt
git_cl_test.py git_cl: Add JSON output flag for `git cl presubmit` 1 year ago
git_common_test.py Reland "Update gclient to use git config caching" 1 year ago
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
gsutil_test.py
hooks_test.py
lockfile_test.py
metrics_test.py
my_activity_test.py
ninja_reclient_test.py Change source of hash for reproxy socket. 1 year ago
ninjalog_uploader_test.py
owners_client_test.py
owners_finder_test.py
presubmit_canned_checks_test.py
presubmit_diff_test.py Add presubmit_diff.py 1 year ago
presubmit_support_test.py Add --generate_diff flag to presubmit_support.py 1 year ago
presubmit_unittest.py Add --generate_diff flag to presubmit_support.py 1 year ago
rdb_wrapper_test.py
recipes_test.py Support recipes_test.py in non-git workspace 1 year ago
reclient_metrics_test.py
roll_dep_test.py
scm_unittest.py Reland "Update gclient to use git config caching" 1 year ago
split_cl_test.py
subcommand_test.py
subprocess2_test.py
upload_to_google_storage_unittest.py
utils_test.py
watchlists_unittest.py