Filter non-applicable versions for cros patches

At present, patches sent to ChromeOS from Android are sent
unconditionally with regards to our current LLVM revisions.

With our new branching workflow, this is subideal. We should
instead be filtering patches only for our appropriate LLVM
revisions.

This commit repurposes some of the original llvm revision
extraction work for Android to also be used for ChromeOS.

BUG=b:427944363
TEST=Ran on chrotomation

Change-Id: I7bfe423fb08e8a579c01e4963b5df3a0bc055473
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/6723533
Reviewed-by: George Burgess <gbiv@chromium.org>
Tested-by: Jordan Abrahams-Whitehead <ajordanr@google.com>
Commit-Queue: Jordan Abrahams-Whitehead <ajordanr@google.com>
4 files changed
tree: 8539b8dd9a12c93c47157da1befe1be35ecb78a9
  1. afdo_metadata/
  2. afdo_redaction/
  3. afdo_tools/
  4. bot_tools/
  5. compiler_wrapper/
  6. contrib/
  7. cros_utils/
  8. cwp/
  9. llvm_extra/
  10. llvm_patches/
  11. llvm_tools/
  12. pgo_tools/
  13. pgo_tools_rust/
  14. py/
  15. rust-analyzer-chromiumos-wrapper/
  16. rust_tools/
  17. seccomp_tools/
  18. toolchain_utils_githooks/
  19. upstream_workon/
  20. .gitignore
  21. android_merge_from_upstream.sh
  22. auto_abandon_cls.py
  23. check_portable_toolchains.py
  24. compiler-test.sh
  25. DIR_METADATA
  26. LICENSE
  27. OWNERS
  28. OWNERS.toolchain
  29. ping_automatic_cls.py
  30. PRESUBMIT.cfg
  31. pyrightconfig.json
  32. pyrun
  33. python_wrapper.py
  34. README.chromium
  35. README.md
  36. run_python_tests.sh
  37. run_tests_for.py
  38. run_weekly_job.py
README.md

toolchain-utils

Various utilities used by the ChromeOS toolchain team.

Note

To run Python scripts in this directory, first run:

export PYTHONPATH=$(readlink -f .):$PYTHONPATH

from this directory.

Then you can run any script.

To get help on any script, type in python <script> --help, or refer to the header of the script for more information.