Commit Graph

11603 Commits (75449d2000f1bbfdae9e5cfbc13bedac876fa6b0)
 

Author SHA1 Message Date
Scott Lee 829b580b57 set verbose=False for mirror.populate in _UpdateMirrorIfNotContains()
In https://crrev.com/c/6442501, apply_patch_ref() was updated to
refresh the git cache when applying patches in gclient. However,
it causes an excessive number of logs to be created, particularly
for src/v8, as the repo has a huge number of branches.

This CL simply sets the verbose option with False,
ignoring the value in options.verbose.

Bug: 407795715
Change-Id: Ibf32ff67d23f41b398cca82372c17d7ca331db26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6486489
Commit-Queue: Scott Lee <ddoman@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
7 months ago
recipe-roller e1c9b12b81 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8716700256893464081

recipe_engine:
2d2fd8172d
  2d2fd81 (olivernewman@google.com)
      [swarming] Pass through timestamp fields

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=iannucci@chromium.org

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I1268d4b8529fcc903e0dbd79322843b2392e2ea1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6485484
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
7 months ago
Yiwei Zhang aacf07dc8b presubmit: upload result as findings even when presubmit succeeds
The presubmit script could succeed with warnings. We do want to show
those warnings in the Gerrit CL as well.

Change-Id: Iab6e420261d8cfc8baad18b3b2b8b6f9718776a8
Bug: 404837554
Recipe-Manual-Change: build
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6486226
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Auto-Submit: Yiwei Zhang <yiwzhang@google.com>
7 months ago
recipe-roller cb4b983398 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8716753733088577745

recipe_engine:
855a980644
  855a980 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from eafff38687d8 to ae028be837da

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=iannucci@chromium.org

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I34e994c686d5b68c4c4fce1bc32886f30158f979
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6485828
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
7 months ago
Scott Lee a7460c638b git_common: raise CalledProcessError with the given cwd, if set
For example, SCM.Capture() calls git_common.run() with `cwd=value`,
which then gets passed to subprocess.Popen2().
: https://source.chromium.org/chromium/chromium/tools/depot_tools/+/main:scm.py;l=705-710;drc=e0c47c138ad4b0e6224a29e597dba5ca53e63ee0

Change-Id: I4b7e14e9f3fb10c1e779fc53d82aa7922194bd36
Bug: 412904761
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6484452
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Auto-Submit: Scott Lee <ddoman@chromium.org>
7 months ago
Gavin Mak 474ecb8462 Add --ignore-dep-type option to gclient sync
This option is already available for gclient revinfo. Adding it
to gclient sync means we get to reuse the filtering logic
already being used for revinfo.

Bug: 411662322
Change-Id: I6bd5e1cffe583247a497358ada1e0b82d0be986d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6481194
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
7 months ago
Yiwei Zhang cc03c34e35 presubmit: upload findings only if resultdb is enabled
Code findings will be uploaded to resultdb. If resultdb is not
enabled, exception will be thrown.

Bug: 404837554
Change-Id: I76ff82d6ecdd987fe08fdd703b67a1171d85eed0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6479007
Commit-Queue: Gavin Mak <gavinmak@google.com>
Auto-Submit: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Yiwei Zhang e5cd6f84f0 include file_path in CheckJsonParses PRESUBMIT check
This is to test new feature added in
https://issues.chromium.org/404837554

Bug: 404837554
Change-Id: I3da40202091e08d9104f2b69d2a372ed786b3d36
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6478701
Auto-Submit: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
7 months ago
Allen Li 8f0df9fecf Roll git-credential-luci
To pick up new info subcommand

Change-Id: I6f2189601930a67f51a831359d297fb82c6a0d5b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6469938
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
Yiwei Zhang 94eb88d04c presubmit: upload presubmit result as code findings
The recipe will convert presubmit result to finding as long as it has
location data.

Change-Id: I8e0ce4cf5f66d6236f10c21a6db87d293b3fe379
Bug: 404837554
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6469944
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Yiwei Zhang d49e17e19f presubmit: add location data to presubmit result
This will help us to display preusbmit result as findings both in
Gerrit and in Cider workspaces.

Change-Id: I0f5a9c503c1b14dc8dcbf9794cc556ef215a46a2
Bug: 404837554
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6469939
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Chan Li 5d891d2a8d [depot_tools] release led
To include https://crrev.com/c/6449820

Change-Id: Iad55431fbe733cfaf558d382e38592b60ed30513
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6476466
Commit-Queue: Chan Li <chanli@chromium.org>
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
7 months ago
Devon Loehr f6cb81eb4f [git cl split] Refactor description handling
As part of an effort to make split_cl.py less monolithic, this
collects the parts of SplitCl related to the CL description, and
puts them into a separate function.

Bug: 389069356
Change-Id: I2d01c09799182cd57bcdd60bb000b59e3bc71aa9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6470263
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Devon Loehr <dloehr@google.com>
7 months ago
Allen Li 828d536eef [doc] Add some cred helper info
Change-Id: Ie93ec79cf1708a07d48bb37042c7fac6036d9b62
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6471152
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
Gavin Mak 74c5a68653 Only check mirror existence for actual SHA-1 commit hashes
Refine the post-mirror-update check in `_UpdateMirrorIfNotContains` to
verify only when the hash revision is a SHA-1 hash. This fixes a
regression where syncing refs under refs/changes/* fails because the
check was incorrectly applied to non-hash revision strings.

Bug: 407864212, 341208163
Change-Id: I07dfe29fa7f27f6c69fa281762779e305e83b91f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6469936
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
7 months ago
Devon Loehr a4b9f2a0c1 [git cl split] Refactor summary and validation in SplitCl
As part of an effort to make split_cl.py more monolithic, this
separates out the code which summarizes the splitting, prompts
the user to edit it, and validates it afterwards.

This also fixes a bug where interactively-edited files bypassed branch validation.

Bug: 389069356
Change-Id: I498596a5ed624190fb355951049252c8b1d615fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6469475
Commit-Queue: Devon Loehr <dloehr@google.com>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
7 months ago
Devon Loehr aefad4bb1b [git cl split] Refactor git commands out of SplitCl
As part of an effort to make split_cl.py less monolithic, this
separates out the part of SplitCl which gathers basic information
about the git repository.

Bug: 389069356
Change-Id: Ib005e352aa024dab8ff69417865d2d766732af0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6471062
Commit-Queue: Devon Loehr <dloehr@google.com>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
7 months ago
Devon Loehr 3d62d2bdb5 [git cl split] Refactor splitting computation into separate function
As part of a cleanup effort to make this script's major functions
less monolithic, this moves the part of SplitCL responsible for
computing a splitting into its own function.

Bug: 389069356
Change-Id: I1f8571d7bf27018da6c25263a05ad098e7d05836
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6469473
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Devon Loehr <dloehr@google.com>
7 months ago
Allen Li 463ce5a855 [git-credential-luci] Redirect to batch file on Windows
I believe Git will try to run the file without extension (this bash
file) directly, which causes issues.

Bug: 410753790
Change-Id: I3a43dfd84e6459f64a023d3c656d8d3ff3b7bd5e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6463456
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
7 months ago
Allen Li 1fb0e39429 [git_auth] Add short blurb with manual setup instructions
Might be useful for some folks, try adding this.

Bug: 410825515
Change-Id: I367298b8276758c25167aa520556fb63a175127f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6459926
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
Allen Li 5d5475cdee [git_auth] Minor wording consistency fix
Make it consistent with the other line that uses "yet"

Change-Id: I6cae354b61ac673bb4d93a878daf01cebbf67a0b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6459922
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
7 months ago
Allen Li d28539d200 [git_auth] Move gitcookies to free backup name
Bug: 410576093
Change-Id: Ib2d9db97f4e4e1e8cfe1914ba7ffb881f9e16bbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6453918
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Allen Li 9d75b76ca5 [git_auth] Clarify which email to use
Change-Id: Ic17568c3b6fd35772b3c7d5c9db8e62e207fb7fc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6456193
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
7 months ago
Allen Li c92c5fbe99 [git_auth] Always configure chrome-internal
Most users who access this have SSO, but there are some people with,
e.g., read access without SSO.

So we may as well configure this always I guess, even if it's
nonfunctional for many people since they have no permission to any
repos on chrome-internal.

Change-Id: Ia560a64e7771f1438fb1527389a310bbbe951477
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6456192
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
Andrew Grieve 73a3fbf1fa autoninja.py: Make use_android_build_server enabled by default
We're switching the GN arg to be default-enabled for local builds.

Bug: 404503040
Change-Id: I710b8fa38bf4ce97d592861b28a49b0bc867b702
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6454372
Auto-Submit: Andrew Grieve <agrieve@chromium.org>
Reviewed-by: Fumitoshi Ukai <ukai@google.com>
Commit-Queue: Andrew Grieve <agrieve@chromium.org>
7 months ago
Allen Li 0aa5b44d94 [git_auth] Hint users to run with --global
Some users just run creds-check which doesn't fix submodules.

Bug: 408501013
Change-Id: Iddb19e922aff8cb265638588595403ac193ead52
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6449740
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
7 months ago
Allen Li 0a7f853f9d [git_auth] Split repo configuring into standalone method
Refactoring to enable running this logic recursively on submodules.

Change-Id: I3515d1659e1b619d262a62be91f0fe835f6df0d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6448584
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
7 months ago
Allen Li f3a8e0a209 [git_auth] Add _run_gerrit_host_configuration helper
Refactoring to improve readability

Change-Id: I159565840f7c869d47a70beb22000d01c6279a1a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6448580
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
Allen Li 3b66d05bd8 [git_auth] Inject Changelist dependency into ConfigWizard
Otherwise it creates a dependency cycle.  This is needed if we want to
recurse into submodules.  Maybe this should be refactored more, but
this should be an improvement for now.

Change-Id: I4641e9ce1952bba81f717acbeefd59dd687d87ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6448579
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
Tommy Chiang f088ff9f1b [cpplint] add nolint region support
Both the internal and community maintained cpplint support regional
nolint annotation NOLINTBEGIN/NOLINTEND.

Bug: 409733462
Change-Id: If738e8f6b8b30e88adec74383fecd8198fe70fbd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6446042
Auto-Submit: Tommy Chiang <ototot@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Tommy Chiang <ototot@google.com>
7 months ago
Arthur Milchior cd6685b6c0 [siso]Adding import
`shutil` was used in
https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6420348
but not imported, leading to error message when executing
_is_google_corp_machine

Bug: None
Change-Id: I0bec8986f531a31905dabaadd20af68c1cd5536f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6449462
Reviewed-by: Junji Watanabe <jwata@google.com>
Commit-Queue: Junji Watanabe <jwata@google.com>
Auto-Submit: Arthur Milchior <arthurmilchior@chromium.org>
7 months ago
Mike Frysinger 427bb0e388 OWNERS: grant copybara access to repo_launcher
We're using copybara to sync upstream repo here automatically.
Grant it owners access so more devs can help merge its syncs.

Change-Id: I54acf18c73af6e8c8a670d2761ad60b2a778a20a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6419683
Commit-Queue: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
recipe-roller 1fe11ccfe0 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8717939043442554881

recipe_engine:
c531c52ec1
  c531c52 (vadimsh@chromium.org)
      [nodejs] Disable IO uring to workaround kernel bugs.

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=iannucci@chromium.org

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: Ic3f68ee304706a8116f5bebb4c36995df42664c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6449274
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
7 months ago
Android Open Source Project 65c59753a8 repo: Update from upstream
- 0214730c9afaf732b3571f3f63416fea9f98a65c launcher: switch command quoting to shlex.quote by Mike Frysinger <vapier@google.com>

GitOrigin-RevId: 0214730c9afaf732b3571f3f63416fea9f98a65c
Change-Id: I38b5d6a05df9f5213d83a60dab863d2db791d5f9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6448569
Reviewed-by: Gavin Mak <gavinmak@google.com>
Auto-Submit: Copybara Service <copybara-worker-blackhole@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
7 months ago
Gavin Mak 9c0db48c84 Make sure _UpdateMirrorIfNotContains fetches the specified revision
_UpdateMirrorIfNotContains populates the mirror if a given rev
isn't found in the mirror, but if this rev is invalid, it's never
fetched at all. Check that we've actually fetched it after
populating the mirror.

Bug: 407864212
Change-Id: Id66695636e749c4f7372aa522ab03ec4ec8feb52
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6441962
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
7 months ago
Tommy Chiang a53354dd37 Remove Tricium notes of cpplint
cpplint is removed from Tricium in CL:6219798. Remove the reference to
it to avoid confusion.

Bug: 393394190
Change-Id: Id816bfef3af18a6d95b655b8e1155632595b1835
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6446043
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Auto-Submit: Tommy Chiang <ototot@google.com>
7 months ago
Allen Li 33bc88394e [doc] Fix creds-check reference to use --global
Change-Id: I13d952aea5e0e0dd74175aa8e7442356ade63f4d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6444536
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Allen Li 3e05d77e8d [glcient] Delete unused import
Change-Id: I6f2b22a561e823455f5e1af26a88ed7d8c0a896d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6444535
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Josip Sokcevic 08fdf45d82 [gclient] Fix SyntaxWarning when running py3.13
R=gavinmak@google.com

Bug: 40283283
Change-Id: I1a4a53f9d50eaa8601113485a07297c0863f7466
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6442907
Commit-Queue: Gavin Mak <gavinmak@google.com>
Auto-Submit: Josip Sokcevic <sokcevic@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Allen Li 68e296445e [git_auth] Pause before configuring common hosts
The config dumps a lot of text, so pause here.  Probably improves UX a
bit.

Change-Id: I9890f9286abe28ecc3e6f05b6d0dde94c5bc9710
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6442237
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Scott Lee b0de8a9432 Refresh the git cache when applying patches in gclient
https://crrev.com/c/3206616 was landed to refresh remote/origin/main.
However, it only updated the workspace so that the stale info in
the mirror can possibly cause unrelated commits to be picked in
the cherry-pick command in [0]

This patch is to update the git cache in Mirror, so that the cherry
pick will work with the up-to-date commit history.

[0]: https://source.chromium.org/chromium/chromium/tools/depot_tools/+/main:gclient_scm.py;l=616;drc=8b60ab5798150d5ea53a89a968edaa62e60d2b36

Bug: 40199928, 407795715
Change-Id: Icf691bf0f50ce2080e8163c91576f00afa60b154
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6442501
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Scott Lee <ddoman@chromium.org>
7 months ago
Allen Li f5b53c0e98 [git_cl] Add --global to creds-check
The UX of cd'ing to a non-Gerrit repo to setup common repo auth is not
good.  Also people don't read.

Bug: 408501013
Change-Id: Ia31914cf8672d0b5a6033de11c928140fd34a95c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6442235
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
Allen Li 07d24776f2 [git_auth] Emphasize success
People assume the tool has failed and keep trying to re-run it when it
says to run git credential-luci login.

Bug: 408501013
Change-Id: Id1f671bacfdc19d4614ff03cfa69bfd484ad741b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6441970
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
recipe-roller 40eecba36e Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8718129045527214417

recipe_engine:
416fe9b6e6
  416fe9b (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 8df87ba3134c to 38aef45b5aeb

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=iannucci@chromium.org

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I2b56a1fbd458c93643ef7448f1526b01bcb74415
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6442233
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
7 months ago
Yiwei Zhang 718c314171 git-cl: use latest commit message in no-squash mode for presubmit
In no-squash mode, when uploading the change, the latest commit message
will be used as the CL description based on my experiment ([1] is never
honored). Therefore, no-squash mode should always use the commit message
as the CL description to run presubmit rather the current description in
the CL

[1]:
https://source.chromium.org/chromium/chromium/tools/depot_tools/+/main:git_cl.py;l=3232;drc=2bfa28f442009c4db0735c8789c611f3cfb3031c

Change-Id: I0ca45189095817dbedc916c7b882549c8f0868a1
Bug: 404309440
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6426443
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Allen Li acdf15a207 [newauth] Enable by default (reland) (include bots)
Originally
https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6418563

Bug: 404613530
Bug: 408427309
Change-Id: Ida2663110c8e2d4dbd50589bd88e81edb66a9c81
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6440133
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
Allen Li 18bf67bbf5 [newauth] Enable by default (reland) (skip bots)
Originally
https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6418563

Bug: 404613530
Bug: 408427309
Change-Id: I17bf758f2dd342493d42c1b2dd233696f3ebef47
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6440137
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago
recipe-roller 009d1672d8 Roll recipe dependencies (trivial).
This is an automated CL created by the recipe roller. This CL rolls
recipe changes from upstream projects (recipe_engine) into this repository.

The build that created this CL was
https://ci.chromium.org/b/8718185668416454049

recipe_engine:
914282be29
  914282b (yoshiki@google.com)
      fileutil.py: Add an option to override files/directories on cop...

Please check the following references for more information:
- autoroller, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#autoroller
- rollback, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/workflow.md#rollback
- cross-repo dependencies, https://chromium.googlesource.com/infra/luci/recipes-py/+/main/doc/cross_repo.md

Use https://goo.gl/noib3a to file a bug.

R=iannucci@chromium.org

Recipe-Tryjob-Bypass-Reason: Autoroller
Ignore-Freeze: Autoroller
Bugdroid-Send-Email: False
Change-Id: I72b514e340a05e0c9e96146111af1cb291fd1624
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6440698
Bot-Commit: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Recipe Roller <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
7 months ago
Allen Li 649a5cb26b [newauth] Recommend creds-check in warning
Dissuade users from removing their .gitcookies manually.

Just to create a single UX path and prevent possible issues.

Bug: 408225524
Change-Id: Ief48806dccf759ead8d145424c854561e09d43ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6440131
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
7 months ago
Allen Li c65a345b10 [git_auth] Improve login instruction wording
Quick minor improvement based on user feedback.

Bug: 408225524
Change-Id: I51029dd97cb64a4b35ccd385d2af95ba1200bd25
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6440070
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
7 months ago