Commit Graph

11421 Commits (1fe11ccfe0ee780a0807ec8e2c023a30e3709316)
 

Author SHA1 Message Date
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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 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>
2 months ago
Allen Li 47701fdcd0 [git_cl] Fix creds_check new auth switch logic pt 3
Third time's the charm.  The issue is still the "multi-valued boolean"
logic.  I introduce a new "switched on" concept to clarify things.

If new auth is "switched off", then all new auth related things are
off.  Simple enough.

There are two ways for new auth to be "switched on".  Either it is
explicitly enabled in the user's config, or we rolled out the default
to on.

When it is "switched on", we still rely on the presence of .gitcookies
to determine whether we enable new auth for depot_tools.  HOWEVER, we
must use the new git cl creds-check, because that is the intended way
for users to remove their .gitcookies file.

                     | auth logic | creds-check |
switched off         | old        | old         |
switched on +cookies | old        | new         |
switched on -cookies | new        | new         |

Change-Id: I311089960d78d8be2cdffd00e4515bfebf0f8f58
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6439385
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
2 months ago
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