Skip to content

Commit 3df23dc

Browse files
feedback
Created using spr 1.3.4
1 parent 6b29b17 commit 3df23dc

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

.ci/compute_projects.py

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,16 @@
3737
# just invert the dependencies list to give more control over what exactly is
3838
# tested.
3939
DEPENDENTS_TO_TEST = {
40-
"llvm": {"bolt", "clang", "clang-tools-extra", "lld", "lldb", "mlir", "polly"},
40+
"llvm": {
41+
"bolt",
42+
"clang",
43+
"clang-tools-extra",
44+
"lld",
45+
"lldb",
46+
"mlir",
47+
"polly",
48+
"flang",
49+
},
4150
"lld": {"bolt", "cross-project-tests"},
4251
# TODO(issues/132795): LLDB should be enabled on clang changes.
4352
"clang": {"clang-tools-extra", "compiler-rt", "cross-project-tests"},
@@ -61,6 +70,13 @@
6170
"bolt", # No Windows Support.
6271
}
6372

73+
# These are projects that we should test if the project itself is changed but
74+
# where testing is not yet stable enough for it to be enabled on changes to
75+
# dependencies.
76+
EXCLUDE_DEPENDENTS_WINDOWS = {
77+
"flang", # TODO(issues/132803): Flang is not stable.
78+
}
79+
6480
EXCLUDE_MAC = {
6581
"bolt",
6682
"compiler-rt",
@@ -118,7 +134,13 @@ def _compute_projects_to_test(modified_projects: Set[str], platform: str) -> Set
118134
projects_to_test.add(modified_project)
119135
if modified_project not in DEPENDENTS_TO_TEST:
120136
continue
121-
projects_to_test.update(DEPENDENTS_TO_TEST[modified_project])
137+
for dependent_project in DEPENDENTS_TO_TEST[modified_project]:
138+
if (
139+
platform == "Windows"
140+
and dependent_project in EXCLUDE_DEPENDENTS_WINDOWS
141+
):
142+
continue
143+
projects_to_test.add(dependent_project)
122144
if platform == "Linux":
123145
for to_exclude in EXCLUDE_LINUX:
124146
if to_exclude in projects_to_test:

.ci/compute_projects_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ def test_llvm(self):
1515
)
1616
self.assertEqual(
1717
env_variables["projects_to_build"],
18-
"bolt;clang;clang-tools-extra;lld;lldb;llvm;mlir;polly",
18+
"bolt;clang;clang-tools-extra;flang;lld;lldb;llvm;mlir;polly",
1919
)
2020
self.assertEqual(
2121
env_variables["project_check_targets"],
22-
"check-bolt check-clang check-clang-tools check-lld check-lldb check-llvm check-mlir check-polly",
22+
"check-bolt check-clang check-clang-tools check-flang check-lld check-lldb check-llvm check-mlir check-polly",
2323
)
2424
self.assertEqual(
2525
env_variables["runtimes_to_build"], "libcxx;libcxxabi;libunwind"

0 commit comments

Comments
 (0)