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> |
2 years ago | |
|---|---|---|
| .. | ||
| fields | 2 years ago | |
| tests | 2 years ago | |
| OWNERS | ||
| PRESUBMIT.py | 2 years ago | |
| README.md | 2 years ago | |
| __init__.py | 2 years ago | |
| dependency_metadata.py | 2 years ago | |
| discover.py | 2 years ago | |
| parse.py | 2 years ago | |
| scan.py | 2 years ago | |
| validate.py | 2 years 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 runhookson 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