Commit Graph

11703 Commits (main)
 

Author SHA1 Message Date
Scott Lee 9c3171ffea git_cl: rename params and reduce indent
Cosmetic changes for consistent param names and unnecessary indents.

Bug: 400759419
Change-Id: I7845f0b059c66f4d6ceb8c4055d71b8704ff29fa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6918336
Auto-Submit: Scott Lee <ddoman@chromium.org>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
1 day ago
Allen Li e46459f0d3 git cl: Handle URL variations more robustly
Bug: 429002243
Change-Id: I0638da9f7ddf8f82078b13331d5890ad8b2421ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6917276
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 days ago
Allen Li 6d9991fc7b auth: Print specific instructions for ReAuth, other errors
Bug: 442666611
Change-Id: Icfc9c223937b9035f0364630455a50492e282128
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6912692
Reviewed-by: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
2 days ago
Jordan Brown 20ce2373dd Fix: Use f-string for validation warning message.
The warning message for missing autoroll exception link was not
correctly interpolating `self._name` because it was missing the `f`
prefix.

Bug:b/442963176
Change-Id: I0dfaf8aa3d1238ebbbd9bb097be53e18daa1916c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6915079
Auto-Submit: Jordan Brown <rop@google.com>
Reviewed-by: Andrew Mitchell <mitchella@google.com>
Commit-Queue: Andrew Mitchell <mitchella@google.com>
3 days ago
Jordan f916887e12 Checking for package managers in vuln sufficiency.
This improves our alignment of vuln scan sufficiency with the scanners
we are using, based on the data extracted from README.chromium files.
Other package managers are being covered based on their manifest files.

This change splits "sufficient:URL and Version" into:
* "sufficient:Git URL and Version"; and
* "sufficient:Package Manager URL and Version"

Bug: 438384047
Change-Id: Ia3262b93092cad40e60243158e437f65a04e1916
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6905113
Reviewed-by: Anne Redulla <aredulla@google.com>
Commit-Queue: Jordan Brown <rop@google.com>
3 days ago
Fumitoshi Ukai 0f565fa858 siso: add .sisorc support
if build/config/siso/.sisorc exists, it will add global flags
or subcmd flags.

global flags is line starting with "-"
e.g.
--credential_helper=gcloud

subcmd flags are line starting with subcmd name.
e.g.
ninja --verbose_failures=false -k=0

Bug: b/269554009
Change-Id: I4691b9e17571721dd5b70f6ffb063e2d2f0ac4e3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6910278
Reviewed-by: Scott Lee <ddoman@chromium.org>
Reviewed-by: Philipp Wollermann <philwo@google.com>
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
3 days ago
Allen Li 7064499de3 auth: Refactor missing access_token logic
Standalone change for review

Bug: 442666611
Change-Id: I2b99a68a3fbf70f15ceebc26bb2d136e628d9347
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6912691
Reviewed-by: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
3 days ago
Fumitoshi Ukai 671f3a1488 ninja: fix TypeError: check_out_dir() missing 1 required positional argument
Bug: 442612621
Change-Id: Ia6dd38e2b8a6b84fcf3abbe9603550af0eb6a8c5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6914234
Commit-Queue: Fumitoshi Ukai <ukai@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
3 days ago
Allen Li 008ecc31b2 auth: Remove unused param
Bug: 442666611
Change-Id: I69824453cf5d4152b5480cbb9d295a78ac023735
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6912690
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
3 days ago
Allen Li 42cfc1ef22 auth: Hoist exception handling in GerritAuthenticator
This moves the handling to the same level as
`raise GitLoginRequiredError()` so we can check for other exit codes
and raise other errors.

Bug: 442666611
Change-Id: Idbb34d6549b47b715bf59d6720362293d5c28039
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6912689
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
3 days ago
Allen Li 05b5e754e4 auth: Disable ReAuth for git-credential-luci in depot_tools
depot_tools doesn't know how to use git-credential-luci properly for
ReAuth.  For now, explicitly disable it so it doesn't break.  Future
changes will modify depot_tools so it can use ReAuth properly for the
Gerrit RPCs that need it.

Bug: 442666611
Change-Id: I77847527d1bb42a2bab8d287bc853a7a5be0b867
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6908321
Commit-Queue: Allen Li <ayatane@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
Reviewed-by: Jiewei Qian <qjw@chromium.org>
3 days ago
Jiewei Qian fa63ec7437 roll git-credential-luci to improve error messaging
GCL roll includes:

- Better error messaging
- SSH Agent probe (depends on https://crrev.com/c/6910821)

Bug: 440418327
Change-Id: I595bd8624ce2646fb5cef49193f569d3acd3e42b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6910742
Reviewed-by: Chenlin Fan <fancl@chromium.org>
Commit-Queue: Jiewei Qian <qjw@chromium.org>
4 days ago
Jiewei Qian 669375e6a1 roll luci-auth-ssh-helper to support ping/pong check
Bug: 442309587
Change-Id: I0c4260e8692e0a874c990a979a2912bfcf4a3114
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6910821
Commit-Queue: Jiewei Qian <qjw@chromium.org>
Auto-Submit: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Chenlin Fan <fancl@chromium.org>
4 days ago
Fumitoshi Ukai f80f5bc99e autoninja: support running from outside of workspace
gclient_paths.GetPrimarySolutionPath() finds primary
solution path from current directory, so it would fail
if it is invoked from outside of workspace.

Pass directory to gclient_paths.GetPrimarySolutionPath
so it could find workspace correctly if it is invoked
ninja outside of workspace.

Bug: 441240584
Change-Id: I873f7883873e143ec8a64ee0e636042ac2336a2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6898614
Auto-Submit: Fumitoshi Ukai <ukai@google.com>
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Scott Lee <ddoman@chromium.org>
Reviewed-by: Takuto Ikuta <tikuta@chromium.org>
4 days ago
recipe-roller 0e9c00fe9f 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/8704818840872905601

recipe_engine:
f1a02eca24
  f1a02ec (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from d27319d48eb3 to f58a984f19ee

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: I5373fa5deb999847234c4d8622d6fa72ad874f04
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6908685
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 days ago
recipe-roller 83ad19235f 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/8704857848275062881

recipe_engine:
a28812ee74
  a28812e (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from c1f5d1013f08 to 0ff6e38043da

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: I18e26406982662bf222a8afaf5c1969c031ff817
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6901831
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>
5 days ago
Jordan f01b22f782 Improving vuln scan sufficiency heuristics
* Centralised CPE/Version checking to reuse logic.
* Basic check that a url contains git, googlesource, or 'bitbucket etc to indicate it's a clonable url which is required to count as sufficient.
This brings the category closely in alignment with AutoVM, removing 100
dependencies, all of which did not have vulnerability cover.

Bug:b/438384047
Change-Id: I7483f20a177670ad1d6571ffcc2545c0faddd892
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6904943
Commit-Queue: Jordan Brown <rop@google.com>
Auto-Submit: Jordan Brown <rop@google.com>
Reviewed-by: Anne Redulla <aredulla@google.com>
5 days ago
recipe-roller 3f41e54ae1 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/8704939008280799825

recipe_engine:
1d4fe5b3dc
  1d4fe5b (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 87d8ad6864bb to 75f092b40e0d

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: I06ee85cf7cad78abffdb3a59c6ccb33c27b29549
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6901825
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>
6 days ago
Jordan 7e5f7cbec7 Changing CPE/Version to Warning
Bug: 441973518
Change-Id: I74ced62da409b25eed88070d473b79bd06655b82
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6903326
Reviewed-by: Dominic Battré <battre@chromium.org>
Commit-Queue: Jordan Brown <rop@google.com>
6 days ago
recipe-roller a54a6c133b 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/8705157322527026625

recipe_engine:
631bb0493d
  631bb04 (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 806dc4f5ce12 to 5482078f7d59

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: I687fc7103ecf3ecf067b4112219513058d744aef
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6902020
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>
1 week ago
Jordan Brown 0699a53d84 Add validation for CPEPrefix and Version fields.
This change introduces a new validation rule: if a `CPEPrefix` is
provided but does not contain a version component, the `Version` field
must be present in the metadata. A helper function
`has_version_component` is added to `cpe_prefix.py` to check for a
version within a CPE string. Tests are added to cover the new validation
logic and the `has_version_component` function.

Bug: 438383649
Change-Id: I69938959316051d31f7fec32c5293d2c4c1a8e2a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6898421
Reviewed-by: Jiewei Qian <qjw@chromium.org>
Commit-Queue: Jordan Brown <rop@google.com>
1 week ago
Jiewei Qian 6b19831e3c Roll git-credential-luci to default enable ReAuth
This CL rolls git-credential-luci (GCL) to default enable ReAuth after
addressing a few CLI UX issues.

Warnings and errors now include troubleshoot instructions, and a "I want
to unblock myself" escape hatch.

If things break and can't be bypassed by setting `LUCI_BYPASS_REAUTH`
environment var, please revert this CL.

Bug: 438584121
Change-Id: I3731cecb3b09cc0392b2890a764e351a41cabdc7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6896061
Reviewed-by: Chenlin Fan <fancl@chromium.org>
Commit-Queue: Jiewei Qian <qjw@chromium.org>
1 week ago
recipe-roller 59c45056ee 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/8705235335562000177

recipe_engine:
3c2226e2b4
  3c2226e (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 38fa9313f09c to 129260cb7597

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: I18c85dd4c7c901ad6409e4ff7b972d763ee5238b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6897008
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>
1 week ago
Matt Stark 9e9b885a7b Make `git cl presubmit` pass before running `git cl upload`.
This check is making any script which runs `git cl presubmit` locally fail.

In particular, `jj upload` runs `git cl presubmit`, and then uploads
only if it succeeds (we cannot run `git cl upload`, because that can
specifically only upload the currently checked out commit).

According to the bug I linked, "I think that historically it was possible
for developers to try to commit directly from their Chromium repo,
without uploading, and this aims to stop that. It also warns users that
their change has not been uploaded. Whether it still needs to be an
error is not clear, but I'm not sure it's causing any problems so I'm
inclined to leave it."

To sum things up:
* Since presubmits can be bypassed, this is not a security measure
* These days I don't believe you can commit directly from your chromium
  repo
* It's now starting to cause problems.

Bug: 40253731
Change-Id: I0d83fa68d0e65dcdd8932c7d3053750dcc16d3fb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6875404
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Matt Stark <msta@google.com>
1 week ago
recipe-roller 226b785aa0 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/8705312719528379969

recipe_engine:
90dd64cc0e
  90dd64c (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from f3da741b9c3c to 8289ab150e61

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: I7fde7f61beb6d63a1a8cfed91e8a997e0e9bec66
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6893271
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>
1 week ago
recipe-roller 6a51a435aa 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/8705324673597738113

recipe_engine:
d2aa3fdfd6
  d2aa3fd (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 5e1ef866e8cd to c0c996a0fc27

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: I5c24ba62851e72491f62dd6eaa13516e2e6606a3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6893270
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>
1 week ago
recipe-roller 8cd2e72ffd 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/8705330337206934225

recipe_engine:
aff3c3545e
  aff3c35 (mohrr@google.com)
      [file] Don't duplicate proto's Codec type

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: I2aaf49b84f34f87eac65e4e4f1a942c72a6f02a4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6893139
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>
1 week ago
Struan Shrimpton 28ecc1b36a Fix docstrings and add support for arbitrary CL try-results
This fixes the copy-paste error with the _from_id and _from_build_number
versions of get_build. It also adds support for getting try results
from a URL, not just the current checked out version.

Bug: None
Change-Id: I1e076c5c461c346f5864eda068a6552237f5691f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6890424
Reviewed-by: Brian Sheedy <bsheedy@chromium.org>
Commit-Queue: Struan Shrimpton <sshrimp@google.com>
Auto-Submit: Struan Shrimpton <sshrimp@google.com>
1 week ago
recipe-roller e0cc7e0bef 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/8705343549304553537

recipe_engine:
788226956b
  7882269 (mohrr@google.com)
      [lint] Allow 'import shlex'

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: Ib33c6920ea99c460504b4f6f9546933362f8bf39
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6893265
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>
1 week ago
recipe-roller c3749b59b3 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/8705412755164615377

recipe_engine:
38a7410665
  38a7410 (mohrr@google.com)
      [proto] Add annotation for codec type

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: I7d3742547ea94482d43053d9596f4ec0d5831778
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6887591
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
Garrett Beaty 312d6a0313 Correctly accumulate gs upload URLs
https://crrev.com/c/6796221 added a gsutil_urls output property that
provides the URLs of uploads to Google storage that were performed by
the build. It attempts to accumulate the URLs by updating a dictionary
on the result object's properties, but the properties on a step's
results object is empty when created, so it was just overriding the
property each time with a single element dict. This change keeps the
dict on the API object and updates it when an upload is performed so
that the final value includes all of the URLs produced by the build.

Change-Id: I6681ca7c137969cbef58e09ce24d0605155d2c3e
Recipe-Nontrivial-Roll: build
Recipe-Nontrivial-Roll: build_internal
Recipe-Nontrivial-Roll: chrome_release
Recipe-Nontrivial-Roll: chromiumos
Recipe-Nontrivial-Roll: infra
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6880970
Commit-Queue: Robbie Iannucci <iannucci@google.com>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@google.com>
Auto-Submit: Garrett Beaty <gbeaty@google.com>
2 weeks ago
Riley ab44126935 [lucicfg] Update v1.45.7 -> 1.45.8
Most notable change is removing generation of empty builder_health_notifier
within infra/config/generated/luci/luci-notify.cfg

Change-Id: If3861cc8c5093610e3ac9f748dd0f0b3c9601ce4
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6884286
Reviewed-by: Vadim Shtayura <vadimsh@chromium.org>
Commit-Queue: Riley Wong <rgw@google.com>
Commit-Queue: Vadim Shtayura <vadimsh@chromium.org>
Auto-Submit: Riley Wong <rgw@google.com>
2 weeks ago
Matt Stark bf3673451d Fix clang-format to work when you're not in a chromium checkout.
Bug: 40861992
Change-Id: Ic9dc3102815febc1e05795b88ed434bed66d123f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6872983
Commit-Queue: Matt Stark <msta@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
2 weeks ago
Takuto Ikuta 05cb270161 recipes: Remove unnecessary annotations
Python3 is used by default in recipes now and this annotation is not
necessary anymore.

Bug: 440235171
Change-Id: Ifdf357129c9e42fee3752ac1c07aa6e94171d81f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6875483
Commit-Queue: Scott Lee <ddoman@chromium.org>
Auto-Submit: Takuto Ikuta <tikuta@chromium.org>
Reviewed-by: Scott Lee <ddoman@chromium.org>
2 weeks ago
recipe-roller 5b7fcc4bb7 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/8705799680068483105

recipe_engine:
023cfcf554
  023cfcf (chromium-autoroll@skia-public.iam.gserviceaccount.com)
      Roll CAS Client from 8b6a66e046fd to d404c33558d6

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: If4cb748bde8d6c2ed3d5e905b50ba1a5d060476f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6876990
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
Kameron Lutes 380bbf9e37 Add sqlparse to .vpython3
sqlparse is used to enforce formatting of SQL files in web-tests.

Change-Id: I4e85ee764ae5b33da1955632cdced8be9816057c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6869613
Reviewed-by: Brian Ryner <bryner@google.com>
Commit-Queue: Kameron Lutes <kalutes@google.com>
2 weeks ago
Adam Rice a4c188532d Revert "Roll git-credential-luci: enable ReAuth by default"
This reverts commit 778a576e20.

Reason for revert: This broke `git cl upload` for at least two people.

Bug: b/438584121
Original change's description:
> Roll git-credential-luci: enable ReAuth by default
>
> This CL is potentially disruptive. If things break, please revert
> this CL and reach out to CL authors.
>
> Bug: b/438584121
> Change-Id: Ib5c493e1b89cdcfe065fcf096d9344da915d5da8
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6865736
> Reviewed-by: Chenlin Fan <fancl@chromium.org>
> Commit-Queue: Jiewei Qian <qjw@chromium.org>

Bug: b/438584121
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Change-Id: Idf2a4f31df88ab0b4fcbd5babf1894a8f9fa4cce
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6871713
Reviewed-by: Allen Li <ayatane@chromium.org>
Commit-Queue: Chenlin Fan <fancl@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Auto-Submit: Adam Rice <ricea@chromium.org>
Reviewed-by: Chenlin Fan <fancl@chromium.org>
Reviewed-by: Jiewei Qian <qjw@chromium.org>
2 weeks ago
Android Open Source Project c79d91a203 repo: Update from upstream
- 5ed12ec81dbb1b2e612fe21f7579295c8d8cab33 standardize file header wrt licensing by Mike Frysinger <vapier@google.com>

GitOrigin-RevId: 5ed12ec81dbb1b2e612fe21f7579295c8d8cab33
Change-Id: Ia04b97972ac513a4f9957e2e73fd4fe8d5b07687
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6871089
Reviewed-by: Gavin Mak <gavinmak@google.com>
Auto-Submit: Copybara Service <copybara-worker-blackhole@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
2 weeks ago
Jie Sheng 45ca62ae3a Refactors the GCS dependency handling to unify the check for Cog
This change moves the IsEnvCog() check directly into the
IsDownloadNeeded() method. This makes IsDownloadNeeded() the single
source of truth for determining if a GCS download should proceed,
thereby simplifying the logic and removing the redundant check at the
call site. Also fixed the presubmit issue in cog.

Bug: 363232952
Change-Id: Id2d57bc7290999551410c1545012bf7425f1fd2b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6868730
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Jie Sheng <jiesheng@google.com>
2 weeks ago
Jiewei Qian 778a576e20 Roll git-credential-luci: enable ReAuth by default
This CL is potentially disruptive. If things break, please revert
this CL and reach out to CL authors.

Bug: b/438584121
Change-Id: Ib5c493e1b89cdcfe065fcf096d9344da915d5da8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6865736
Reviewed-by: Chenlin Fan <fancl@chromium.org>
Commit-Queue: Jiewei Qian <qjw@chromium.org>
2 weeks ago
Jiewei Qian 630aa05da2 Roll luci-auth-ssh-plugin
This CL rolls luci-auth-ssh-plugin to https://crrev.com/c/6865210

Bug: b/439476987
Change-Id: Iee784d049fe63b58b1c4641a81df5179e6f0066d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6869612
Commit-Queue: Chenlin Fan <fancl@chromium.org>
Auto-Submit: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Chenlin Fan <fancl@chromium.org>
2 weeks ago
Junji Watanabe ac0e10e880 recipes: Set GCS URLs to output properties
It will be useful to retrieve the GS URLs later.

Recipe-Nontrivial-Roll: build
Recipe-Nontrivial-Roll: build_internal
Recipe-Nontrivial-Roll: chrome_release
Recipe-Nontrivial-Roll: chromiumos
Recipe-Nontrivial-Roll: infra
Change-Id: Ifb1ce2a161fc6fa6b2554d4a8b14eb9de0754fde
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6796221
Reviewed-by: Ben Pastene <bpastene@chromium.org>
Reviewed-by: Robbie Iannucci <iannucci@google.com>
Auto-Submit: Junji Watanabe <jwata@google.com>
Commit-Queue: Junji Watanabe <jwata@google.com>
2 weeks ago
Allen Li 4b5b51c8e5 [auth] Close stdin for git-credential-luci
Per the Git credential helper protocol, the credential helpers should
read stdin for attributes.  Previously, we didn't implement the
attributes for git-credential-luci, so this wasn't an issue, but
we're (going to) use the attributes now, and if we don't explicitly
send or close stdin, the helper will hang

Bug: 411487838
Change-Id: I80d47c31e597187c05d5fc23438ae8a52147cb9f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6868130
Commit-Queue: Gavin Mak <gavinmak@google.com>
Auto-Submit: Allen Li <ayatane@chromium.org>
Reviewed-by: Gavin Mak <gavinmak@google.com>
2 weeks ago
recipe-roller d6b162a075 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/8705998488639373601

recipe_engine:
9eb5918fd4
  9eb5918 (mohrr@google.com)
      [post_process] Pass check into PropertyMatchesCallable callable

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: If047e0627c585b702fc6a6769205224374f8689a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6868129
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
Jiewei Qian fad3730e80 add luci-auth-ssh-* entrypoints
Add entrypoints to luci-auth-ssh-* executables to fetch cipd packages
then run the binary.

Bug:b/435528916
Change-Id: Ic39b104d0ade8a65950fbbb755fa21c0b6514bb7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6864760
Auto-Submit: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Chenlin Fan <fancl@chromium.org>
Commit-Queue: Chenlin Fan <fancl@chromium.org>
3 weeks ago
Jiewei Qian a582776533 roll luci-auth-ssh* to support TCP port forwarding
Fixed:b/439476987
Change-Id: Ib65d58c7f8ce90e3cea585403861ae3babb11ac2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6864759
Auto-Submit: Jiewei Qian <qjw@chromium.org>
Commit-Queue: Chenlin Fan <fancl@chromium.org>
Reviewed-by: Chenlin Fan <fancl@chromium.org>
3 weeks ago
Ben Pastene dc84b2708f Uncap max line length for *.star files
In https://crrev.com/c/6697693, presubmit's canned formatting checks
started looking at *.star files. This included enforcing a max line
length of 80 chars in such files.

Most (all?) *.star files found in gclient-managed repos are lucicfg
client repos, which generally have their own formatter and use 4-space
indents. This can lead to some friction with presubmit's 80 char limit.
So this uncaps that limit for all *.star files.

Bug: None
Change-Id: Ice68676c5d097d7951e83cf81ca9ac8adc8151ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6862147
Reviewed-by: Scott Lee <ddoman@chromium.org>
Commit-Queue: Ben Pastene <bpastene@chromium.org>
3 weeks ago
Scott Lee 18fc4e5507 presubmit: add bypass-check-license instruction in the failure message
https://crrev.com/c/6842238 added the bypass instructions to
the presubmit failure messages, but it missed one place.

Bug: 435696543
Change-Id: Ic48b4cd3ba0f9797b48ff7e54f7a25b8c83a686b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6858267
Auto-Submit: Scott Lee <ddoman@chromium.org>
Commit-Queue: Scott Lee <ddoman@chromium.org>
Reviewed-by: Brian Egizi <begizi@google.com>
3 weeks ago
Jiewei Qian 57f57b0960 luci-auth-fido2-plugin: add a --list-devices flag for troubleshooting
This CL adds a --list-devices for luci-auth-fido2-plugin to print
information about detected FIDO2 devices, then exit itself.

This is useful for debugging udev / permission issues on Linux.

Bug:b/433851494
Change-Id: I4db7e6a56b99e077d4128c74f49d02829b667d8a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6850350
Reviewed-by: Allen Li <ayatane@chromium.org>
Commit-Queue: Jiewei Qian <qjw@chromium.org>
Reviewed-by: Chenlin Fan <fancl@chromium.org>
3 weeks ago
Scott Lee f88b25b610 Reland "presubmit: emit errors instead of warnings for bad copyright headers"
This reverts commit eb60ab38de.

Reason for revert: re-landing with an additional patch

-------------
* Problem
Browser infra runs ci.*-presubmit builders, such as linux-presubmit,
with --all to ensure that the entire chromium/src passes
presubmit checks.

crrev.com/c/6842238 changed the finding type for License Check
from warning to error, but the CI presubmit builders failed because
there are many files without valid CopyRight.

Not only the existing files, all the new files that are added with
`Bypass-Check-License: <reason> footer could also cause the presubmit
builder to fail.

* This CL

In addition to the original patch from crrev.com/c/6842238,
this CL makes additional patches to turn the CopyRight errors into
warnings, if --file or --all is given.

The same approach is used in
https://source.chromium.org/chromium/chromium/tools/depot_tools/+/main:presubmit_canned_checks.py;l=982-987;drc=eb60ab38deeda6975c9b0fef883978f2a9f69120


Bug: 435696543,40237859
Original change's description:
> Revert "presubmit: emit errors instead of warnings for bad copyright headers"
>
> This reverts commit fa62515ecb.
>
> Reason for revert: it seems that the existing files without valid copyright headers are causing linux-presubmit builds to fail. b/438791294
>
> Bug: 435696543,40237859
> Original change's description:
> > presubmit: emit errors instead of warnings for bad copyright headers
> >
> > This is an effective revert of https://crrev.com/c/4895337 with
> > additional patches to support a footer.
> >
> > https://crrev.com/c/3887721 updated CheckLicense() to emit errors
> > for bad copyright headers. However, https://crrev.com/c/4895337
> > was changed the finding type from error to warning, claiming that
> > the check is N/A for moved third files, but it's not so easy
> > to programatiically distinguish moved third-party files.
> >
> > After discussions, it was decided to change the finding type back
> > to error to prevent accidental submissions for new files without
> > correct CopyRight headers.
> >
> > To mitigate moved, third-party files, this CL adds support for
> > "Bypass-Check-License: <reason>" footer.
> >
> > If the check should be ignored in a given CL, CL authors should
> > use the footer instead.
> >
> > Bug: 435696543,40237859
> > Change-Id: I177915c65932a3d76ea60ee6a0e396f726bc400d
> > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6842238
> > Reviewed-by: Gavin Mak <gavinmak@google.com>
> > Commit-Queue: Scott Lee <ddoman@chromium.org>
>
> Bug: 435696543,40237859
> No-Presubmit: true
> No-Tree-Checks: true
> No-Try: true
> Change-Id: Ibedf8d13e3742249947e29e625a14cceaf89879c
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6852377
> Commit-Queue: Scott Lee <ddoman@chromium.org>
> Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
> Reviewed-by: Gavin Mak <gavinmak@google.com>

Bug: 435696543,40237859
Change-Id: Iafdb29b928c016eb3949e29fd43a2ba5f53e0ba0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6852108
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Scott Lee <ddoman@chromium.org>
3 weeks ago