[llvm] [BOLT] Create marker for source changes in nfc-mode testing. (PR #142931)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 21 15:59:14 PDT 2025
================
@@ -7,6 +7,29 @@
import sys
import textwrap
+def get_relevant_bolt_changes(dir: str) -> str:
+ # Return a list of bolt source changes that are relevant to testing.
+ all_changes = subprocess.run(
+ shlex.split("git show HEAD --name-only --pretty=''"),
+ cwd=dir,
+ text=True,
+ stdout=subprocess.PIPE,
+ )
+ keep_bolt = subprocess.run(
+ shlex.split("grep '^bolt'"),
+ input=all_changes.stdout,
+ text=True,
+ stdout=subprocess.PIPE,
+ )
+ keep_relevant = subprocess.run(
+ shlex.split(
+ "grep -v -e '^bolt/docs' -e '^bolt/utils/docker' -e '^bolt/utils/dot2html'"
----------------
aaupov wrote:
Any reason to selectively include bolt/utils? I'd say utils is external to BOLT proper, and can be excluded.
https://github.com/llvm/llvm-project/pull/142931
More information about the llvm-commits
mailing list