Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .ci/compute_projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,16 @@
"mlir": {"flang"},
# Test everything if ci scripts are changed.
".ci": {
"llvm",
"clang",
"lld",
"lldb",
"bolt",
"clang-tools-extra",
"mlir",
"polly",
"flang",
"libclc",
# "llvm",
# "clang",
# "lld",
# "lldb",
# "bolt",
# "clang-tools-extra",
# "mlir",
# "polly",
# "flang",
# "libclc",
"openmp",
},
}
Expand All @@ -77,12 +77,12 @@
DEPENDENT_RUNTIMES_TO_TEST = {
"clang": {"compiler-rt"},
"clang-tools-extra": {"libc"},
".ci": {"compiler-rt", "libc"},
# ".ci": {"compiler-rt", "libc"},
}
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
"llvm": {"libcxx", "libcxxabi", "libunwind"},
"clang": {"libcxx", "libcxxabi", "libunwind"},
".ci": {"libcxx", "libcxxabi", "libunwind"},
# ".ci": {"libcxx", "libcxxabi", "libunwind"},
}

EXCLUDE_LINUX = {
Expand Down Expand Up @@ -170,6 +170,7 @@ def _exclude_projects(current_projects: Set[str], platform: str) -> Set[str]:
def _compute_projects_to_test(modified_projects: Set[str], platform: str) -> Set[str]:
projects_to_test = set()
for modified_project in modified_projects:
sys.stderr.write("HELLO " + modified_project)
if modified_project in RUNTIMES:
continue
# Skip all projects where we cannot run tests.
Expand Down Expand Up @@ -207,6 +208,8 @@ def _compute_runtimes_to_test(modified_projects: Set[str], platform: str) -> Set
for modified_project in modified_projects:
if modified_project in DEPENDENT_RUNTIMES_TO_TEST:
runtimes_to_test.update(DEPENDENT_RUNTIMES_TO_TEST[modified_project])
# if modified_project in RUNTIMES:
# runtimes_to_test.add(modified_project)
return _exclude_projects(runtimes_to_test, platform)


Expand Down
10 changes: 10 additions & 0 deletions .ci/compute_projects_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,16 @@ def test_exclude_runtiems_in_projects(self):
self.assertEqual(env_variables["runtimes_check_targets"], "")
self.assertEqual(env_variables["runtimes_check_targets_needs_reconfig"], "")

def test_exclude_libc_from_projects(self):
env_variables = compute_projects.get_env_variables(
["libc/CMakeLists.txt"], "Linux"
)
self.assertEqual(env_variables["projects_to_build"], "")
self.assertEqual(env_variables["project_check_targets"], "")
self.assertEqual(env_variables["runtimes_to_build"], "libc")
self.assertEqual(env_variables["runtimes_check_targets"], "check-libc")
self.assertEqual(env_variables["runtimes_check_targets_needs_reconfig"], "")

def test_exclude_docs(self):
env_variables = compute_projects.get_env_variables(
["llvm/docs/CIBestPractices.rst"], "Linux"
Expand Down
2 changes: 2 additions & 0 deletions libc/src/math/exp10f.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include "src/__support/macros/config.h"

// test change to trigger premerge

namespace LIBC_NAMESPACE_DECL {

float exp10f(float x);
Expand Down
Loading