Commit Graph

12158 Commits (main)
 

Author SHA1 Message Date
nqmtuan f16c2eb7bf [Depot tools] Roll rdb cli to 5290cedd7d78b5911eafea14b480e3facad3173b
Include https://chromium-review.git.corp.google.com/c/infra/luci/luci-go/+/7767471 via 5290cedd7d

Regenerate cipd_manifest.versions using `cipd ensure-file-resolve -ensure-file ./cipd_manifest.txt`

Bug:b/446175448
Change-Id: I8aac1825796c4444b37510c1a5b0f7ff4acb720e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7782567
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Commit-Queue: Tuan Nguyen <nqmtuan@google.com>
11 hours ago
Matt Stark 8c234a70d9 Revert "[jj] Make JjWrapper support secondary JJ workspaces"
This reverts commit e16ce5a52d.

Reason for revert: Caused https://groups.google.com/d/msgid/chromium-jj-users/CAAME5gBqMx3UaddA2DvM9rhrf7aNAswB4kskK66eNzTpD7YQCg%40mail.gmail.com

Original change's description:
> [jj] Make JjWrapper support secondary JJ workspaces
>
> This change makes JjWrapper a no-op for secondary JJ workspaces that do not have a .git directory or worktree. It now holds an instance of GitWrapper and forwards commands to it only if a .git directory or worktree exists.
>
> In particular, this allows gclient sync to run in secondary workspaces without fetching the git repository for the root.
>
> Change-Id: Id89a83d7ce193304847dd75bbffa133e6a6a6964
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7780501
> Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
> Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org>
> Reviewed-by: Matt Stark <msta@google.com>
> Commit-Queue: Matt Stark <msta@google.com>

No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: Iabcf380e1bb78d40fced6eefc0e22ee5db389fbf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7782568
Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Matt Stark <msta@google.com>
12 hours ago
Jordan Brown 1ea94929dc [metadata] Add restrictive_license_approval.proto
Adds the protobuf schema for per-use restrictive license approvals,
needed for license compliance automation and presubmit validation.

Bug: b/504850951
Change-Id: I940d71281b32c01c9bc36c7be9c8f075f3479cce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7781485
Commit-Queue: Jordan Brown <rop@google.com>
Reviewed-by: Rachael Newitt <renewitt@google.com>
1 day ago
Sunny Sachanandani e16ce5a52d [jj] Make JjWrapper support secondary JJ workspaces
This change makes JjWrapper a no-op for secondary JJ workspaces that do not have a .git directory or worktree. It now holds an instance of GitWrapper and forwards commands to it only if a .git directory or worktree exists.

In particular, this allows gclient sync to run in secondary workspaces without fetching the git repository for the root.

Change-Id: Id89a83d7ce193304847dd75bbffa133e6a6a6964
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7780501
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org>
Reviewed-by: Matt Stark <msta@google.com>
Commit-Queue: Matt Stark <msta@google.com>
1 day ago
Sunny Sachanandani 0ac9c5de48 [jj] Only consider submodule paths with a .git inside them
It's possible for stray submodule directories to be left around e.g. if
the target_os list was changed. These directories will be empty and
won't have a .git directory inside them.

Change-Id: If802d779f239007ebb96a30615a54dcf6a6a6964
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7781124
Auto-Submit: Sunny Sachanandani <sunnyps@chromium.org>
Reviewed-by: Matt Stark <msta@google.com>
Commit-Queue: Sunny Sachanandani <sunnyps@chromium.org>
1 day ago
Victor Hugo Vianna Silva 25f27f1fd8 Accept file list in `git cl diff`
A common pain point of mine is that when I rebase locally, `git cl diff`
starts showing many files unrelated to the CL. Accepting a file list
will allow me to filter for the files included in the CL. This is useful
in general, if a user is interested in the diff of a specific subset of
files.

Change-Id: Id7c328ab8cd201ecf855e45d29119672bec8d022
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7768331
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Victor Vianna <victorvianna@google.com>
Auto-Submit: Victor Vianna <victorvianna@google.com>
2 days ago
Maciej Czarnecki 76c0cb0c63 Fix retrieval of gerrit.host flag value
_GetConfig returns a string from the configuration, which means that
in case there is "False", it will be translated to bool("False") which
is true. After the fix, the configuration should be resolved correctly.

R=bryner@google.com

Change-Id: Ic23b1c4dae48bd3d2e122b4a44e8977ade20a790
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7719643
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Brian Ryner <bryner@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
2 days ago
recipe-roller 0a389d6442 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/8684240746880968385

recipe_engine:
36229065a1
  3622906 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from b64a998e1dd4 to 052f30c112ef

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: I82fff8c920c25cda00a660417bd2e61b4a542da9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7770580
Commit-Queue: recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
5 days ago
Victor Hugo Vianna Silva d62ca80975 Add webpagereplay to recipe_modules gclient_config
Bug: 495366518
Change-Id: I7bcb474385e9d5e1255c84e328005c1fc8f7ec9f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7767990
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Auto-Submit: Victor Vianna <victorvianna@google.com>
5 days ago
Alexei Svitkine 442cbd6d58 gclient: Add stall detection and improve hang diagnostics.
- Add a 5-minute stall detector to ExecutionQueue that prints active tasks
  and troubleshooting suggestions.
- Set GIT_TERMINAL_PROMPT=0 only for non-interactive shells to prevent
  silent hangs on credential prompts.

Bug: none
Change-Id: I8b9eda8c4801e77dc2b6374c7bceca73f592f714
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7736347
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Alexei Svitkine <asvitkine@chromium.org>
6 days ago
Gavin Mak 13c80751ff Revert "Fix CheckForCommitObjects to include submodules in file scan"
This reverts commit 0ea4801192.

Reason for revert: breaking win-presubmit builds

Original change's description:
> Fix CheckForCommitObjects to include submodules in file scan
>
> Ensure gitlink changes are detected when the change is small by
> explicitly adding AffectedSubmodules to the file list for git ls-tree.
>
> The presubmit check missed https://crrev.com/c/7735426 because
> input_api.AffectedFiles explicitly excludes gitlinks.
>
> Bug: 502550552
> Change-Id: I7151b327289857a91ddbcfa88b2981db6f009e3a
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7759887
> Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
> Commit-Queue: Gavin Mak <gavinmak@google.com>

Bug: 502550552
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: I2b39293b49415ee2838045000cd6976441cb66ae
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7766820
Auto-Submit: Gavin Mak <gavinmak@google.com>
Bot-Commit: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: rubber-stamper@appspot.gserviceaccount.com <rubber-stamper@appspot.gserviceaccount.com>
6 days ago
Gavin Mak 0ea4801192 Fix CheckForCommitObjects to include submodules in file scan
Ensure gitlink changes are detected when the change is small by
explicitly adding AffectedSubmodules to the file list for git ls-tree.

The presubmit check missed https://crrev.com/c/7735426 because
input_api.AffectedFiles explicitly excludes gitlinks.

Bug: 502550552
Change-Id: I7151b327289857a91ddbcfa88b2981db6f009e3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7759887
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
7 days ago
Brian Sheedy 7914a55a09 Track edit monitor opt outs
Updates the edit monitor-related metrics code to report when the edit
monitor is not running because the user explicitly opted out. Now that
the edit monitor is enabled by default for Googlers, we want to make
sure there aren't a significant number of users opting out since that
could be indicative of some issue that is being worked around.

Bug: b/479871142
Change-Id: I5c23951b91c343a595ade06f77a2b1e8e76ce2eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7760520
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Auto-Submit: Brian Sheedy <bsheedy@chromium.org>
Reviewed-by: Junji Watanabe <jwata@google.com>
Commit-Queue: Yiwei Zhang <yiwzhang@google.com>
7 days ago
Gavin Mak b9d2b54dae Remove corp link presubmit checks
Corp links now work for external users, so don't block them from being
used.

Bug: 500464930
Change-Id: I1681fbec98afc990713c20789e1c2545ee978a3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7758988
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Allen Li <ayatane@chromium.org>
1 week ago
recipe-roller a1d178eeef 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/8684602506539629857

recipe_engine:
363e865839
  363e865 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 0928deac77c8 to 8048c0858d1b

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: I893e186b2a9970118806012007197eabe78295a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7758888
Commit-Queue: recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
Bot-Commit: recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com <recipe-mega-autoroller@chops-service-accounts.iam.gserviceaccount.com>
1 week ago
Junji Watanabe bac00505a8 siso: Fix flag print handling
The siso ninja command is printed unintentionally because log collection
flags are appended. This CL also fixes the wrong expectations in the
tests.

Change-Id: I3d893234c7388e026f7888d40633620287207ebc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7742783
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
Auto-Submit: Junji Watanabe <jwata@google.com>
Commit-Queue: Junji Watanabe <jwata@google.com>
2 weeks ago
recipe-roller de15c6313c 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/8684937640156743521

recipe_engine:
bc635a338e
  bc635a3 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from git_revision:71275b946ab6ab55fe72d4d76fdd1...

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: I14040a656eaba4db1c983278d63ea29e9535fc62
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7746784
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 weeks ago
Ziwen Lin 24ab836d2f [Depot Tools] add agents presubmit
add CheckSkillFiles and CheckSkillValidatorTestsOnCommit for presubmit


Change-Id: Ia5123ce92660c3b44dcc7b4083b305abde19076a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7707574
Reviewed-by: Peter Wen <wnwen@chromium.org>
Reviewed-by: Erik Staab <estaab@google.com>
Reviewed-by: Andrew Grieve <agrieve@chromium.org>
Commit-Queue: Ziwen Lin <ziwlin@microsoft.com>
2 weeks ago
davidhinojosa d15a96ad08 Fix telemetry user_uuid persistence across script executions
When the user_uuid is missing or stale during telemetry
initialization, a new UUID is generated in memory. However,
this newly generated UUID was never flushed to the telemetry
config file, causing it to be regenerated on every script
execution.

This updates `Config.__init__` to automatically flush the
configuration to disk if `TraceConfig` signals that the UUID
was generated or regenerated.

Bug:500756867
Change-Id: Iebe49ff4d7c59c2d739df1c3f7222f596c0ecf49
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7739314
Reviewed-by: Struan Shrimpton <sshrimp@google.com>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Commit-Queue: David Hinojosa <davidhinojosa@google.com>
2 weeks ago
Josiah Kiehl 379ab8cd5d gclient-new-workdir: Support Git worktrees as source repository.
Previously, `gclient-new-workdir.py` assumed that the source repository
was a standard Git repository where `.git` is a directory, which is only
true when the base repo is used as the source. This caused failures when
trying to create a new workdir using an existing linked worktree as the
source (where `.git` is a file).

This CL fixes these assumptions by:

1. Using `os.path.exists` to detect `.git` instead of checking if it's
in the `dirs` list from `os.walk`.
2. Handling both files and directories when deleting `.git` during
   copy-on-write setup so the new workspace is its own worktree.
3. Using `os.path.realpath` when testing for copy-on-write support to
   handle cases where `.gclient` is a symlink (which is the default
   behavior for workspaces created by this script).

These changes enable chaining workspaces by using one active workspace
as the base for another.

Change-Id: I8776d495170e182c471b07e1cde92e7549f269aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7739623
Auto-Submit: Josiah Kiehl <kiehl@google.com>
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Erik Staab <estaab@google.com>
Reviewed-by: Sunny Sachanandani <sunnyps@chromium.org>
Reviewed-by: Erik Staab <estaab@google.com>
2 weeks ago
Daniel Rubery 714d107026 Only SetPatchset if on a branch
Commands like `git cl try-results -i 1234567` shouldn't need to be on a
branch, but currently fail because they try to SetPatchset.

Change-Id: Ib7ce351ed7dc0633782458c6fee35502f7c13c77
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7744644
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
2 weeks ago
Junji Watanabe cce6753da6 Reland "siso: Set --namespace flag to "ninja" subcommand"
This is a reland of commit 86e72435d8

Original change's description:
> siso: Set --namespace flag to "ninja" subcommand
>
> To distinguish builds from developers and LUCI bots, this CL adds
> "--namespace=developer" flag to "siso ninja" command. Additionally, it
> sets "--namespace=developer:ai-agent" to distinguish AI agent builds from human builds.
>
> LUCI bot builds specify "--namespace=builder:{builder}". See also
> https://crrev.com/c/7731009
>
> The namespace will be set to Cloud logging's `generic_task.namespace`,
> which will be stored to the BigQuery table, as well.
> https://docs.cloud.google.com/logging/docs/api/v2/resource-list
>
> Bug: 354589168
> Change-Id: I264d5c4ac756dec04e7b443775e1894946d9bd56
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7730256
> Commit-Queue: Junji Watanabe <jwata@google.com>
> Reviewed-by: Philipp Wollermann <philwo@google.com>
> Reviewed-by: Nicole Desrosiers <nicolede@google.com>

Bug: 354589168
Change-Id: I3146e9bfb45e9d0d0452b864e688f7bb6eaa9b70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7735106
Reviewed-by: Philipp Wollermann <philwo@google.com>
Commit-Queue: Junji Watanabe <jwata@google.com>
Auto-Submit: Junji Watanabe <jwata@google.com>
2 weeks ago
Ziwen Lin bf968bc99c [Depot Tools] Include skill_validator.py in recipe bundle
The recipe bundle does not include the agents/ directory, which causes presubmit_canned_checks.CheckSkillFiles to fail on CQ bots.

Add the skill validator script to .gitattributes so it is included in the bundle.

Bug: 497972681
Change-Id: I2de83dc4fa4dfdc4a6ad1ac692a7a15411afe372
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7735102
Reviewed-by: Erik Staab <estaab@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Ziwen Lin <ziwlin@microsoft.com>
2 weeks ago
recipe-roller ab4f690790 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/8685040391914183873

recipe_engine:
47c4d08b58
  47c4d08 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from c56b89f66317 to 71275b946ab6

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: Id20b82b68bc42c85b6d7a9a02b68fe7387742163
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7741112
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 weeks ago
recipe-roller 364ccfdd5f 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/8685069323031786337

recipe_engine:
65c7ecf4ff~..fa9716990cbcf1f6d6f3718b08b5c9e059a532b4
  65c7ecf (bsheedy@chromium.org)
      Fix incorrect truncation of ResultDB JSON data
  fa97169 (mohrr@google.com)
      [post_process] Add StepSummaryContains

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: I43fec5029d11c268769093e05a4b346271fc61c3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7738997
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 weeks ago
Ben Pastene cbbd371901 Add a code-comment listing all duplicate DEPS-parsing codebases
After the DEPS schema changed in https://crrev.com/c/7007552, there's
been a few codebases that needed similar updating.

Needeless to say, it'd be best if the parsing wasn't duplicated in so
many places. But it's unlikely anyone has the time or motivation to
de-dupe things. So this merely at least tries to document all the
duplicated codebases in the DEPS schema source of truth.

Hopefully this provides some value if/when the schema changes again.

Bug: 448699364
Change-Id: I3f354a2216901c360aea3d4785076f155001de12
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7736646
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
2 weeks ago
Junji Watanabe 58c5376e7b Revert "siso: Set --namespace flag to "ninja" subcommand"
This reverts commit 86e72435d8.

Reason for revert: It fails when building at an old revision, where
siso didn't have --namespace flag.

Original change's description:
> siso: Set --namespace flag to "ninja" subcommand
>
> To distinguish builds from developers and LUCI bots, this CL adds
> "--namespace=developer" flag to "siso ninja" command. Additionally, it
> sets "--namespace=developer:ai-agent" to distinguish AI agent builds from human builds.
>
> LUCI bot builds specify "--namespace=builder:{builder}". See also
> https://crrev.com/c/7731009
>
> The namespace will be set to Cloud logging's `generic_task.namespace`,
> which will be stored to the BigQuery table, as well.
> https://docs.cloud.google.com/logging/docs/api/v2/resource-list
>
> Bug: 354589168
> Change-Id: I264d5c4ac756dec04e7b443775e1894946d9bd56
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7730256
> Commit-Queue: Junji Watanabe <jwata@google.com>
> Reviewed-by: Philipp Wollermann <philwo@google.com>
> Reviewed-by: Nicole Desrosiers <nicolede@google.com>

Bug: 354589168
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: I330a78d40a8fb39e1921aadadf6e0488e88fe67b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7735104
Auto-Submit: Junji Watanabe <jwata@google.com>
Commit-Queue: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
2 weeks ago
Junji Watanabe 86e72435d8 siso: Set --namespace flag to "ninja" subcommand
To distinguish builds from developers and LUCI bots, this CL adds
"--namespace=developer" flag to "siso ninja" command. Additionally, it
sets "--namespace=developer:ai-agent" to distinguish AI agent builds from human builds.

LUCI bot builds specify "--namespace=builder:{builder}". See also
https://crrev.com/c/7731009

The namespace will be set to Cloud logging's `generic_task.namespace`,
which will be stored to the BigQuery table, as well.
https://docs.cloud.google.com/logging/docs/api/v2/resource-list

Bug: 354589168
Change-Id: I264d5c4ac756dec04e7b443775e1894946d9bd56
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7730256
Commit-Queue: Junji Watanabe <jwata@google.com>
Reviewed-by: Philipp Wollermann <philwo@google.com>
Reviewed-by: Nicole Desrosiers <nicolede@google.com>
2 weeks ago
Gavin Mak a69bf29407 Fix git ls-tree failure on Windows with special characters
Fall back to recursive ls-tree in CheckForCommitObjects on Windows if
filenames contain shell special chars. This avoids passing unquoted
special characters to cmd.exe when subprocess2 uses shell=True.

Bug: 498957658
Change-Id: Ia8deb48e730ca7e0f99721b1132fb33da7466400
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7731838
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
2 weeks ago
recipe-roller 91025531f1 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/8685213399372720081

recipe_engine:
cc726202b1
  cc72620 (yuje@chromium.org)
      Clean up Python 2->3 migration code that's no longer needed.

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: Ie9e395fc21cc5ced5661a6917628a7056ccdf543
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7732866
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 weeks ago
Justin Cohen c2f0ba0f84 Update gclient-new-workdir.py to use git worktrees by default.
Use git worktrees by default instead of symlinks, and add a warning to
notify users of this change.

Change-Id: I0ece4aa911e9512c8e0d8fd8d669c0c6037c7320
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7704995
Reviewed-by: Erik Staab <estaab@google.com>
Commit-Queue: Justin Cohen <justincohen@google.com>
2 weeks ago
recipe-roller 41c40cfaec 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/8685493375638164097

recipe_engine:
ca2bc1f626
  ca2bc1f (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 3382fed1a386 to 2f961cacbab3

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: I8644aa37bf0bb54809cecd84b95d578aa777f946
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7729450
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>
3 weeks ago
recipe-roller 9d6422566d 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/8685502812945362433

recipe_engine:
66a6319a72
  66a6319 (yuje@google.com)
      Cleanup some Python 3 compatibility variables.

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: Ie03f06639131581f5e410f6b718c8cb279684e32
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7729448
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>
3 weeks ago
recipe-roller 41fd21d84f 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/8685507845693571505

recipe_engine:
3c177058be
  3c17705 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 06381a9d1046 to 328aa4830ebb

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: I175f547bcc13b95806ca6cc295a64f21d2823487
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7729444
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>
3 weeks ago
recipe-roller 0d380c5aee 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/8685509734166220833

recipe_engine:
263405bde2
  263405b (yuje@google.com)
      Cleanup a TODO action item in the findings recipe module.

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: I938a8cb24aee71c2655bfe6a38701a2faefe67b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7729442
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>
3 weeks ago
recipe-roller a2fbfff2df 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/8685521687236531905

recipe_engine:
02c9401ebf
  02c9401 (yuje@google.com)
      Clean up some Python 2->3 migration code that's no longer needed.

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: I14075cad7744cbb5024659040dd5717691961ae7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7729441
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>
3 weeks ago
Chenlin Fan f63aa542d2 Roll cipd to v2.7.12.
Include change:
https://chromium-review.git.corp.google.com/c/infra/luci/luci-go/+/7683770

Bug: 393121542
Change-Id: Ib175c285bd82cf706fed9269e42bf3cefc65641b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7720262
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Commit-Queue: Chenlin Fan <fancl@chromium.org>
3 weeks ago
Josiah Kiehl c6f8c88b92 Abort gclient-new-workdir on Btrfs snapshot failure
When attempting to create a Btrfs subvolume snapshot fails, the script
previously fell back to a slow file-by-file copy. This change modifies
the behavior to instead abort early if the source is detected to be a
Btrfs subvolume.

If the snapshot fails for a subvolume, the script now prints diagnostic
information to help the user troubleshoot and exits, saving the user
from an unexpectedly long copy operation. The fallback behavior is
preserved for non-subvolumes where snapshots are not supported.

This also adds unit tests for the new abort and diagnostic behaviors.

Change-Id: Ieee9fec08d9664d3bdffc255b6993fa2f6d8ad70
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7713376
Commit-Queue: Josiah Kiehl <kiehl@google.com>
Reviewed-by: Erik Staab <estaab@google.com>
3 weeks ago
Ben Pastene 5e98835131 gclient: Support version_file in CIPD DEPS definitions
Instead of forcing all version strings for cipd package deps to be
embedded in the DEPS file like the following:
{
    'package': 'chromium/chrome/android/orderfiles/arm',
    'version': 'q1Xa79fpCv-do8mcyvDf8wV7Whf5M7CCojmM9R06R58C',
}

This CL supports pointing the dep to another file, like the following:
{
    'package': 'chromium/chrome/android/orderfiles/arm',
    'version_file': 'some/version/file.txt',
}

Then "some/version/file.txt" would be a plain text file in the repo
(relative to the DEPS file), that contains just the version string:
"q1Xa79fpCv-do8mcyvDf8wV7Whf5M7CCojmM9R06R58C".

Moving the version to another file would let Chrome's build graph
incorporate the version text file into it's dep list for relevant
targets. This would otherwise be difficult/impossible to do for the
whole DEPS file since there's way more stuff in DEPS than a single
CIPD package.

Bug: 448699364
Change-Id: I38debd2a0af48d15b894c8e88a5e3f2f59534bf4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7007552
Commit-Queue: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Brian Ryner <bryner@google.com>
3 weeks ago
recipe-roller 316bb1e1c2 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/8685755100344509601

recipe_engine:
c452dab063
  c452dab (fancl@chromium.org)
      Roll provenance_broker to ca2431ca47b3f9ee4af25e48ff0c48b508a3382b

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: I4ae13beb324146b26d0d4c46f8d58ea67a8bda5c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7720123
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>
3 weeks ago
Russ Hamilton cdde2d99ce Change failing test list predicate to UNEXPECTED_MASK
This fixes an issue where flaky tests were not showing up in the
reported list.

Change-Id: I2de5510c530c4ba5258681e65de514348f9a47d6
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7716124
Auto-Submit: Russ Hamilton <behamilton@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Russ Hamilton <behamilton@google.com>
3 weeks ago
Dan Le Febvre 4e00b47c60 use an access token for lucicfg API calls instead of id token
id_token is not required and currently prevents LUCI auth one login from
working correctly with config validation presubmits. Please see bug for
more context.

Bug:b/496353787
Change-Id: I038871e2234878ed3a68bcacd187cc45cd31cc0b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7707198
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
Commit-Queue: Dan Le Febvre <dlf@google.com>
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
3 weeks ago
Louis Romero d12632a315 Add FREEZE detection in map-branches
This CL adds a new git-map-branches verbose
output: when a branch is frozen, it's now visible
when running `git map-branches -vvv`.

Fixed: 379846320
Change-Id: Ie6b35b9b727893e216e681e32701b302c3e9516c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7707352
Commit-Queue: Louis Romero <lpromero@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
3 weeks ago
Gavin Mak 3d11e3a2f0 Handle unknown HEAD gracefully in update_bootstrap
If a remote repo has no HEAD, running git_number.py causes
update_bootstrap to crash. Handle `(unknown)` HEAD branch better and fix
existing bug that passed re.MULTILINE to regex Pattern.search().

Bug: 492363028
Change-Id: Ie20311d50e84cfd075bf31df5da837da473a31ce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7674291
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
3 weeks ago
Gavin Mak 8215972804 Fix shutil.move failure for root gclient paths
When `checkout_path` is the root directory, we cannot move the
entire root directory into itself (i.e. into `bad_scm_dir`).
Instead, we move its contents individually, skipping the
quarantine directory.

Change-Id: Id606b42cbf2cdd909b5677744e8c842f6c11a0f2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7705375
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
3 weeks ago
Ziwen Lin f5c816648d [Depot Tools] Add skill-validator for SKILL.md presubmit checks
- A validation script (skill_validator.py) that checks required fields
    (name, description), naming conventions, YAML frontmatter, and
    directory name matching.
  - Unit tests for the validator (skill_validator_test.py).
  - A PRESUBMIT.py check (CheckSkillFiles) that automatically runs the
    validator when any SKILL.md file is modified.
  - A SKILL.md for the validator itself, so it can be invoked as
    /skill-validator.

TODO: add agents/PRESUBMIT.py in a follow-up CL

Change-Id: Ie55ef26efddd07c5f362bb0fa82f5a6893e66edd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7693938
Reviewed-by: Erik Staab <estaab@google.com>
Reviewed-by: Peter Wen <wnwen@chromium.org>
Commit-Queue: Ziwen Lin <ziwlin@microsoft.com>
4 weeks ago
recipe-roller f5a572610b 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/8686193614903977665

recipe_engine:
27aefcf0da
  27aefcf (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from d6756be19c83 to c26f1797c84d

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: I6691cc5030cc461006b2b8bf77787580aecef419
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7705381
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>
4 weeks ago
recipe-roller 69860df127 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/8686217522696700049

recipe_engine:
b13e3d33e4
  b13e3d3 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from f22a30ea9e29 to 4048470b2263

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: I09d921c3eba51da5151a869049bb37e364f88f3e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7706148
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>
4 weeks ago
Erik Staab a3a4502a8b Add --number flag to mdformat calls
This is more human-readable for unrendered markdown
files.

Change-Id: I9c0f5419fa0174f67a07bf457103042e254fa25d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7607289
Reviewed-by: Sho Mizoe <shomizoe@google.com>
Commit-Queue: Erik Staab <estaab@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Erik Staab <estaab@google.com>
4 weeks ago
Gavin Mak d948009ec3 Support multiple gitlinks with the same hash in CheckForCommitObjects
Mapping the DEPS validation dictionary to a list of paths prevents
false-positive mismatch and unexpected entry errors when duplicating
submodules (e.g. during migrations).

Bug: 496212953
Change-Id: I34c4cad56b118392007285ffaf7aff48d7f316b5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/7702032
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Yiwei Zhang <yiwzhang@google.com>
4 weeks ago