You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
os.walk is more efficient than the current handwritten traversal. Measured the time to scan reduced from 30s+ to 8s on p920 on chromium/src. `followlinks=True` is set to preserve behavior that os.path.isdir returns True for symlink to directories, and the current traversal code will descend into those. Change-Id: I941eec9105a46d6538ca484fbb5249a75888e38a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/5379945 Reviewed-by: Anne Redulla <aredulla@google.com> Commit-Queue: Jiewei Qian <qjw@chromium.org> |
12 months ago | |
---|---|---|
.. | ||
fields | 1 year ago | |
tests | 1 year ago | |
OWNERS | ||
PRESUBMIT.py | 2 years ago | |
README.md | 2 years ago | |
__init__.py | 2 years ago | |
dependency_metadata.py | 1 year ago | |
discover.py | 12 months ago | |
parse.py | 2 years ago | |
scan.py | 1 year ago | |
validate.py | 1 year ago | |
validation_result.py | 2 years ago |
README.md
Validation for Chromium's Third Party Metadata Files
This directory contains the code to validate Chromium third party metadata
files, i.e. README.chromium
files.
Prerequisites
- Have the Chromium source code checked out on disk
- Ensure you've run
gclient runhooks
on your source checkout
Run
metadata/scan.py
can be used to search for and validate all Chromium third
party metadata files within a repository. For example, if your chromium/src
checkout is at ~/my/path/to/chromium/src
, run the following command from the
root directory of depot_tools
:
vpython3 --vpython-spec=.vpython3 metadata/scan.py ~/my/path/to/chromium/src