Commit Graph

11402 Commits (5ab895473c38f358d37dea24ec09429cf3cd1490)
 

Author SHA1 Message Date
Allen Li 5ab895473c [man] Add creds-check to setup instructions
Change-Id: Icdb6bd15fca985c26189fcb82182997cf77a8695
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6434737
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
2 months ago
Allen Li 50e0120582 [git_cl] Fix creds_check new auth switch logic pt 2
I got greedy with the first fix, with the assumption that the flag
enablement would not get rolled back.  As it would be easier to not
worry about this logic flip-flopping based on the default flag
flip-flopping.

Spoilers: it did get rolled back, so we end up with the new
creds-check with the newauth flag defaulting to off.  And this causes
a UX problem because new users would get prompted to run creds-check
to set up a gitcookies file, but the new creds-check logic doesn't do
that.

Based on our newfound experience, this should just follow the default
value.  There'll still be some friction whenever we flip-flop the default
value, but that's kind of unavoidable.

Change-Id: I0d81ed4123a8a9bced2fc4300214376cd3f1c9d1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6434738
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 months ago
Allen Li 8b60ab5798 [gclient_scm] Delete auto configure in gclient
This causes more trouble than it's worth (it's breaking dawn builds).

That does mean for a fresh depot_tools install, users will need to
explicitly run git cl creds-check once, which means tracking down all
of the docs that need to say that.

In the meantime, it's probably better to delete this now.

Bug: 408427309
Change-Id: I5595756441500c43c543b47d97ff6b1bd9ddab30
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6434734
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
2 months ago
Allen Li 3f00993a55 [git_cl] Explain SSO check
Clarify why SSO is needed for the check, even if the account may not
need SSO.

Bug: 408243787
Change-Id: If855eec2dbc414a112db3469b5cc73b3f5846651
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6431248
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 months ago
Gennady Tsitovich 6cc266569e git cl cherry-pick: Use base parameter to fix identical tree errors
The `git cl cherry-pick` command previously created chained CLs by
first cherry-picking a change onto the destination branch tip and then
rebasing the result onto the parent CL created in the previous step.

This approach failed when a sequence of cherry-picks resulted in an
intermediate state having an identical tree compared to its intended
base (e.g., commit 1 changes X->Y, commit 2 changes Y->X). Gerrit
would reject the second cherry-pick with an "identical tree" error
because the rebase is done after the cherry pick.

This change modifies the process to use the `base` parameter of the
Gerrit `cherrypick` REST API endpoint.

Changes:
- Modify `gerrit_util.CherryPick` to accept and pass an optional `base`
  commit hash in the API request body.
- Update `git_cl.CMDcherry_pick`:
  - Before each cherry-pick operation in the loop, fetch the commit hash
    of the latest patchset from the previously processed parent CL.
  - Pass this commit hash as the `base` parameter to `gerrit_util.CherryPick`.
  - Remove the subsequent, now redundant, call to `gerrit_util.RebaseChange`.

This ensures the correct parent commit is specified during the
cherry-pick operation itself, allowing Gerrit to handle the chaining
correctly and avoid failures caused by identical tree states in
intermediate steps.

Bug: 408388488
Change-Id: I84066d65bd6bb127b253bee6564dd0622148a0e0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6433112
Commit-Queue: Gennady Tsitovich <gtsitovich@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
2 months ago
Scott Lee 36bfafbc82 Revert "[newauth] Enable by default"
This reverts commit 2e9d2d7ebe.

Reason for revert: this is the possible culprit for b/408427309

Original change's description:
> [newauth] Enable by default
>
> Bug: 404613530
> Change-Id: If0a214fe074d7e7591b5d37417ca447525c983b6
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6418563
> Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
> Commit-Queue: Allen Li <ayatane@chromium.org>

Bug: 404613530, 408427309
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: Ib919b2f3d852709c0e80622b4ad97327ac2ea5bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6434729
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Scott Lee <ddoman@chromium.org>
2 months ago
Fumitoshi Ukai e7df27f40f siso: don't check backend.star if backend_config dir doesn't exist
Bug: 408114984
Change-Id: I354bcd7e3c0f0e6af6496054f5f295c927cfc8f0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6431647
Commit-Queue: Philipp Wollermann <philwo@google.com>
Reviewed-by: Philipp Wollermann <philwo@google.com>
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
2 months ago
Fumitoshi Ukai 079673b191 autoninja: check internal if not use rbe-chromium-untrusted
non-Eng users don't have access to src-internal, so
need to use rbe-chromium-untrusted even on corp machine.

Bug: 408114984
Change-Id: I8956926a8723fbee70b2defb2f6f49bccc37e22e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6433491
Reviewed-by: Philipp Wollermann <philwo@google.com>
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
2 months ago
Patrick Meiring 9a1c23767a [ResultDB] Roll updated rdb tool.
This includes a new version of ResultSink that supports structured
test ID uploads. It also includes various background changes
made in the last few months.

BUG=b:398112066

Change-Id: I792a2e70db30c00493c76d6e242ed6092a0d2a7f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6427703
Reviewed-by: Chenlin Fan <fancl@chromium.org>
Reviewed-by: Beining Chen <beining@google.com>
Commit-Queue: Patrick Meiring <meiring@google.com>
2 months ago
Allen Li 9e7aa23589 [git_cl] Fix creds_check new auth switch logic
The three-way logic here (explicitly on, default (which is now on),
explicitly off) was slightly off.

Bug: 408243787
Change-Id: Idc0b55e63627708fe257ea7ca5a7f5f5dd5e1c08
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6431386
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 months ago
Allen Li 2e9d2d7ebe [newauth] Enable by default
Bug: 404613530
Change-Id: If0a214fe074d7e7591b5d37417ca447525c983b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6418563
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 months ago
Wenbin Zhang 405e5c48ac [pinpoint cli] update the version to apply the target name fix
Bug: 405286899
Change-Id: I83438a88c77cf27cbb48a501b042b822b8de1312
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6432086
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Chan Li <chanli@chromium.org>
Commit-Queue: Wenbin Zhang <wenbinzhang@google.com>
2 months ago
Allen Li 848643d8b5 [git_cl_test] Fix test mocking for git_auth.AutoConfigure
Bug: 404613530
Change-Id: I307637ccd5ac5e59ca13588572dd0cb0bf691d03
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6431247
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 months ago
Allen Li 79b74c9be8 [git_cl_test] Delete broken mocked tests
These tests get broken by If0a214fe074d7e7591b5d37417ca447525c983b6 so
delete them.

Now, you might raise your eyebrows at that, but hear me out.

These tests are so heavily mocked that I argue that they aren't
providing any value.  What's the point of tests?  To save time by
catching regressions early.

Being dumped a large list of expected mocked calls like:

  @10: (['os.path.isfile', 'TEMP_DIR/trace-packet'],)
  @11: (['FileRead', 'TEMP_DIR/trace-packet'],)
  @12: (['FileWrite', 'TEMP_DIR/trace-packet', 'git-hash: 012345\ngit-hash: abcdea\n'],)
  @13: (['make_archive', 'TRACES_DIR/20170316T200041.000000-traces', 'zip', 'TEMP_DIR'],)
  @14: (['FileWrite', 'TEMP_DIR/git-config', <ANY>],)

provides little value.  Like, what the heck is this even supposed to
be testing?

I argue that:

the cost of potentially having a regression in the future, fixing it,
and adding a new, sane test for that case

is LESS than:

the cost of someone looking at one of these tests failures and
trying to figure out what exactly broke, whether it is an actual
breakage or do they just need to wade into the mess of expected mocked
calls and figure out how to update the mocked calls to reflect a
perfectly fine change that they are trying to make

Bug: 404613530
Change-Id: Id8e2f5ebb9ad55ee32291c2f70b2d26fb479b195
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6428049
Reviewed-by: Gregory Nisbet <gregorynisbet@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 months ago
Allen Li a71f255604 [git_cl_test] Fix getAccountDetailsMock
Bug: 404613530
Change-Id: Iefc2f0456182e4e6eb816be2b3605685528d82f4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6428048
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 months ago
recipe-roller 1e07d36cd3 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/8718582031552549025

recipe_engine:
242ae12e49
  242ae12 (olivernewman@google.com)
      [findings] Allow patchset-level findings

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: I116139b89eb4eba656955c406e3299698449edb4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6430819
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>
2 months ago
Jakob Linke 2c780a1530 Log commits cherry-picked for --patch-ref
The previous logging output didn't show which commits were actually
being cherry-picked. Here's what it used to look like:

  Will cherrypick 'refs/remotes/origin/main' .. <hash> on top of <hash>.

Where it's unclear what commit `main` refers to. This changes logging
to 1. show the actual commit hash for `main`, and 2. display a list
of picked commits. The new output:

  Will cherrypick <hash> .. <hash> on top of <hash>:
    <git log --oneline output>

Bug: 407795715
Change-Id: I45341fed65f692a9e1d7d7b807bd40680bf162b2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6424742
Commit-Queue: Tony Seaward <seawardt@google.com>
Auto-Submit: Jakob Linke <jgruber@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Tony Seaward <seawardt@google.com>
2 months ago
Fumitoshi Ukai e1f6feb7ac siso: better error message when backend.star doesn't exist
Change-Id: I0c87b2c371f71b9777baaf2a4acc2111b30f3633
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6420348
Feels: Gary Tong <gatong@chromium.org>
Reviewed-by: Gary Tong <gatong@chromium.org>
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
2 months ago
recipe-roller 34b02c92d0 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/8718660045128512769

recipe_engine:
7fb0b9bdbc
  7fb0b9b (meiring@google.com)
      [ResultDB] Add support for -shorten-ids command line flag.

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: Ic08f54e9fd2ffacce23b5c7fa90cdc2b49d99421
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6428046
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>
2 months ago
Allen Li 321b0e6b99 [git_auth] Add guard against bad URLs
In particular, when we enable new auth by default, one of the tests
that uses gclient to clone a local directory fails.

Bug: 404613530
Change-Id: I1bd41da2a3aba6f92cc3d5d9c75ab4d8fc293f22
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6426441
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
2 months ago
recipe-roller eae511073a 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/8718664446609246897

recipe_engine:
055f474e1a
  055f474 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 54d6b1806d50 to cd0142e4e2f3

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: I5919142fb2c7bfc8c62fec664d57f35b158950b6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6426440
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>
2 months ago
Allen Li 4627b309b8 Roll Git credential helper
Pick up updated client and scopes

Change-Id: I23478eaed5e05c70c96975a77e1c7c14b737125c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6427882
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
2 months ago
Dave Tapuska f35efa5b85 Fix typo: "onn" -> "on"
Change-Id: I0600b36fa55c668b79b8601d24fceb77619f232b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6426181
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Dave Tapuska <dtapuska@chromium.org>
2 months ago
recipe-roller ee7178a211 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/8718716658926905393

recipe_engine:
c74224ede2
  c74224e (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 28a3326fc246 to 962d2d095317

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: I624326ed286988c98c50330d6e033540fa1f4b77
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6424939
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>
2 months ago
Jordan Brown 4373d97c21 roll_dep: Update README.chromium when rolling submodules
Attempt to update the README.chromium file with the new submodule
revision after rolling it in a DEPS update. This update is flag-guarded
and will only run when explicitly specified.

Currently, only README.chromium files with a single "Revision:" line are
supported. Multiple lines and files with the divider are not handled.
These are left as future TODOs.

Bug: 390067679
Change-Id: Ib776564ae94360cc72dd633fc7ed7b3f84b5b9d2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6173767
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Jordan Brown <rop@google.com>
Reviewed-by: Jiewei Qian <qjw@chromium.org>
2 months ago
recipe-roller 9383bafee1 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/8718742461296466465

recipe_engine:
9a22b0d703
  9a22b0d (meiring@google.com)
      [ResultDB] Add support for new ResultSink flags to rdb recipe m...

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: Ibaf540f7fe77bc0ef8030e473f67b07f0b233ade
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6423612
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>
2 months ago
Dan Le Febvre cb5069bb8e [auth-unify] deprecate no_auth options in download_for_google_storage
This will reduce confusion with the tools, gsutil.py will now take into
account supplied boto config outside of authentication (such as proxy
settings).

If the user is not logged in with luci-auth, the users configured .boto
config (including auth if configured) will still be taken into account
by the regular gsutil (not gsutil.py!) command.

Bug:b/342261857
Change-Id: I369489db60c46c13cbe9fd93d15c9597a525feb8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6414748
Commit-Queue: Dan Le Febvre <dlf@google.com>
Reviewed-by: Scott Lee <ddoman@chromium.org>
2 months ago
Android Open Source Project 41b8b54089 repo: Update from upstream
- dc8185f2a9af53fd91fef160313564ad1abf827f launcher: change RunError to subprocess.CalledProcessError by Mike Frysinger <vapier@google.com>

GitOrigin-RevId: dc8185f2a9af53fd91fef160313564ad1abf827f
Change-Id: Iaa8211ab5363622629372996ff5c487c5d5b0fc7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6422195
Auto-Submit: Copybara Service <copybara-worker-blackhole@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
2 months ago
Fumitoshi Ukai c6684fda98 win_toolchain: setup junction for toolchain dir
Some builders use env:DEPOT_TOOLS_WIN_TOOLCHAIN_ROOT to
specify shared builder cache on bot, which is out side
of builder's workspace, so we needed to set RBE_exec_root
to common ancestor dir above for reclient.

This CL sets up a directory junction in win_toolchain
(default location) to toolchain dir if specified by
`--toolchain-dir` or env:DEPOT_TOOLS_WIN_TOOLCHAIN_ROOT,
download win toolchain in the toolchain dir,
and use default location path for win toolchain,
so win toolchain can be available under normal exec root.

Bug: 397786479, 313567009
Change-Id: Ia39ce9e40f477f71e70036ed47c4b61c29626718
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6288233
Reviewed-by: Junji Watanabe <jwata@google.com>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
Reviewed-by: Andy Perelson <ajp@google.com>
Reviewed-by: Dirk Pranke <dpranke@google.com>
Reviewed-by: Philipp Wollermann <philwo@google.com>
2 months ago
Allen Li e32bcc7be0 [git_auth] Print empty line after all read input
Small UX improvement

Bug: 404613530
Change-Id: Ie1cb79279a41cd80f1992e2e18107d4a15e16edb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6418884
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 months ago
Allen Li 5dcf92389b Fix git_map_test.py
I think the latest Git version changed this behavior.

Change-Id: Id10c3ec41daf4e6700fc8168373cae9482502231
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6422996
Commit-Queue: Allen Li <ayatane@chromium.org>
Feels: Yiwei Zhang <yiwzhang@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
2 months ago
recipe-roller a7e3ac3034 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/8718865775815289777

recipe_engine:
d5aff4618a
  d5aff46 (olivernewman@google.com)
      [change_verifier] Roll luci-cv CLI

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: If20d7d20c793de89d876d97efa7a23dabff892ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6417042
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>
2 months ago
Andy Perelson a983b67726 Update root OWNERS
Change-Id: Ic4c7a23a82f06c8e4917b66d0848fd2ffa89e83c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6410152
Auto-Submit: Andy Perelson <ajp@google.com>
Commit-Queue: Brian Ryner <bryner@google.com>
Reviewed-by: Brian Ryner <bryner@google.com>
2 months ago
Dan Le Febvre 3ce438f7f0 [auth-unify] prefer luci-auth over .boto config auth in gsutil.py.
Try LUCI Auth before using an existing BOTO config. If a
.BOTO config is used, warn on it and ask the user to try luci-auth
method next time.

http://crrev/c/6397035 also includes the GSUtil section in case anyone
is using it.

Bug:b/342261857
Change-Id: I79669926e956112faff45068b3cd822cf28a2385
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6396595
Reviewed-by: Scott Lee <ddoman@chromium.org>
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Commit-Queue: Dan Le Febvre <dlf@google.com>
2 months ago
Android Open Source Project 416b5b3d73 repo: Update from upstream
- 59b81c84ded4e2312b2b554d22a51dca89825bc3 launcher: change collections.namedtuple to typing.NamedTu... by Mike Frysinger <vapier@google.com>

GitOrigin-RevId: 59b81c84ded4e2312b2b554d22a51dca89825bc3
Change-Id: Iadd0af8c670917eb4cd418b7f7184ee819ea9d2f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6410153
Auto-Submit: Copybara Service <copybara-worker-blackhole@google.com>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Mike Frysinger <vapier@chromium.org>
2 months ago
Sky Malice c214cd9faf Add android resource files to DEFAULT_FILES_TO_CHECK.
The existing licence regex assumed each line would start with an unknown
and optional comment delimiter, followed by a required space. However
the standard way to write the licence in XML files uses a multi-line
comment, each individual line simply starts with the licence text, no
delimiter or space. The license check thus needed to be updated to make
the space optional as well.

Bug: 407060754
Change-Id: I4a83dd9408de890593952e441ba6b650f726907c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6409392
Commit-Queue: Sky Malice <skym@chromium.org>
Reviewed-by: Andy Perelson <ajp@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
2 months ago
recipe-roller c75e6df261 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/8719130646245608273

recipe_engine:
b44da3c0f8
  b44da3c (gbeaty@chromium.org)
      Remove config_vars from config_item_context.

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: I733d2bde57b5d4203db2c0a106ed980897d0baa5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6408007
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>
2 months ago
Android Open Source Project 7e4f6d1841 repo: Update from upstream
- 243df2042ed756e7829cd39d3ebe3d1919444d5d launcher: change RunResult to subprocess.CompletedProcess by Mike Frysinger <vapier@google.com>

GitOrigin-RevId: 243df2042ed756e7829cd39d3ebe3d1919444d5d
Change-Id: I2c607922216ee35f8555c023b25e6e9e37a6d9c6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6405593
Auto-Submit: Mike Frysinger <vapier@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
2 months ago
Dan Le Febvre 2e17cd1d70 [auth-unify] update luci-auth pin
This adds .BOTO config (non auth) support to the gsutil shim.

http://crrev/c/6397035
http://crrev/c/6332773

Bug: b/342261857
Change-Id: I18c1cce7cba1926daa4678310e62cf26aaf48123
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6399833
Auto-Submit: Dan Le Febvre <dlf@google.com>
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Commit-Queue: Vadim Shtayura <vadimsh@chromium.org>
2 months ago
Junji Watanabe 6058be3e48 siso: Use bundled python to run siso
Similar to https://crrev.com/c/6395717, but for siso wrapper.
This allows the build steps to use the bundled Python.

Change-Id: I57d56622f204cb26e025f164f90c079089314180
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6395718
Auto-Submit: Junji Watanabe <jwata@google.com>
Commit-Queue: Junji Watanabe <jwata@google.com>
Reviewed-by: Fumitoshi Ukai <ukai@google.com>
2 months ago
Junji Watanabe e636a67972 autoninja: Use bundled Python to invoke autoninja.py
`python-bin/python3` sets the depot_tool's Python binary dir to PATH.
This allows build steps to use the bundled Python, so that the Python version can be aligned with what the infra uses.
Note that autoninja.bat already uses the bundled Python.

Change-Id: I9350859bcc5bd0ed59f2f00be8e5615d89281daa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6395717
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Commit-Queue: Junji Watanabe <jwata@google.com>
Reviewed-by: Fumitoshi Ukai <ukai@google.com>
Auto-Submit: Junji Watanabe <jwata@google.com>
2 months ago
recipe-roller 22e5a04e59 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/8719503725944566033

recipe_engine:
7f9ca93a5c
  7f9ca93 (olivernewman@google.com)
      [time] Make `timeout()` not extend the deadline

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: I256cee90c27f331df588938f536f2d892751f404
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6387975
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>
2 months ago
Sam Clegg 097e207237 [git-map-branches] Fix coloring of root branch
I use `upstream/main` as my default upstream and not `origin/main`.

Change-Id: I614b88b2991a915c4477302e5064eaefd3a04ef0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6372748
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Sam Clegg <sbc@chromium.org>
3 months ago
Allen Li e73ad0d422 [newauth] Remove SkipSSO support
This was only for testing.

Bug: b/404613530
Change-Id: I8e79f14036f027aed91933158805b6ec4c03b266
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6373672
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
3 months ago
Allen Li 2bfa28f442 [newauth] Print warning for .gitcookies file
This will print a warning and disable new auth if .gitcookies file
exists.

This ensures we don't break bots once we default new auth on while
pushing human users away from .gitcookies.

Bug: b/404613530
Change-Id: Ia2d05bb7e5d2bf11e5605a26ef492954acbd9833
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6367723
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Allen Li <ayatane@chromium.org>
3 months ago
Allen Li 4b4ec94b3e Update Gerrit auth manpage
Just rewords things better.

Bug: b/404613530
Change-Id: I6bd339fa4bce4fc83e5f18a5bc6e9f9a3d52dd3b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6374090
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
3 months ago
Allen Li a2c6f107c3 [git_auth] Move config wizard to creds-check
Bug: b/404613530
Change-Id: Ie0b8fd675b66739a129d5eeeda895473a8a49eeb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6368999
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
3 months ago
Allen Li 817ddf8d4f [gclient_scm] Disable gclient auto config on Windows
Bug: b/328682976
Change-Id: Ic096807302d8d345435c8913d84913aafba3d4d0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6367721
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Allen Li <ayatane@chromium.org>
3 months ago
Allen Li 0f344dbf8a [auth] Delete unused _run_luci_auth_login method
No hits in git grep

Change-Id: If3f6a8c44f576413e5db129059c3d6fd8c713809
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6367724
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
Commit-Queue: Allen Li <ayatane@chromium.org>
3 months ago
Allen Li 428ceb6428 [git_auth] Add extra info about OAuth setup
Change-Id: I145d18dbddee27b8655005c789191b3c524f0710
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6367722
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Josip Sokcevic <sokcevic@chromium.org>
3 months ago