1
0
Fork 0
llvm-premerge-checks/scripts
Mehdi Amini 6e624c30f9 Change the premerge checks to only check the affected projects
The current setup is configuring the "affected projects" as well
as their dependencies, and run `ninja all` followed by
`ninja check-all`.

This is quite a pessimization for leaf project which don't need to
build and run the tests for their dependencies.
For example a patch affecting only MLIR shouldn't need to build
and run LLVM and clang tests.
This patch changes this by running checks only for the affected
project. For example a patch touching `mlir` is affecting `mlir`
and `flang`. However `flang` depends on `clang`. So the list of
projects to configure is `mlir;flang;clang;llvm;`, but we want
to test only mlir and flang ; we'll run only `ninja check-mlir
check-flang`.

In practice in this example running `ninja all` builds 5658 targets
and `ninja check-all` after that adds 716 more targets. On the other
hands `ninja check-flang check-mlir` results in 3997 targets total.

Concretely the contract with premerge_checks.py is changed so that
the expected argument for the --projects flag is only the list of
affected project, dependencies are automatically added.
2021-09-21 14:28:38 +02:00
..
metrics Bump urllib3 from 1.26.4 to 1.26.5 in /scripts/metrics 2021-09-21 13:13:48 +02:00
phab2github rename master to main branch following LLVM 2020-12-10 09:29:24 +01:00
phabtalk Run bazel builds in premerge 2021-07-28 16:01:44 +02:00
windows debugging container start 2021-06-01 17:32:09 +02:00
.gitignore first draft of benchmark script 2020-03-25 09:07:28 +01:00
__init__.py Add windows build 2020-06-03 13:40:22 +02:00
add_phabricator_artifact.py Process results and unit-test output of libcxx 2020-11-25 15:29:50 +01:00
apply_patch.sh improvements to patch process 2020-11-03 16:15:36 +01:00
benchmark.py rename master to main branch following LLVM 2020-12-10 09:29:24 +01:00
buildkite_utils.py cancel previous builds for the same revisions 2021-05-04 11:27:09 +02:00
choose_projects.py Change the premerge checks to only check the affected projects 2021-09-21 14:28:38 +02:00
clang-format.ignore ignore **/test for clang-format 2020-07-22 18:59:47 +02:00
clang-tidy-comments.ignore remove jenkins configs and scrips 2020-09-01 09:51:49 +02:00
clang-tidy.ignore Update clang-tidy.ignore 2021-08-23 14:11:36 +02:00
clang_format_report.py update linux node pool (machines w/ no external ssd) 2021-05-17 10:06:54 +02:00
clang_tidy_report.py make clang_tidy_report handle diffs text files with invalid utf-8 2021-08-17 14:18:39 +02:00
cleanup_branches.py error handling 2020-06-29 11:41:48 +02:00
common.ps1 fixed more windows weirdness 2019-12-16 10:09:47 +00:00
exec_utils.py return exit status of ninja command 2020-07-10 19:35:29 +02:00
ignore_diff.py building with buildkite 2020-05-25 16:42:40 +02:00
llvm-dependencies.yaml Change the premerge checks to only check the affected projects 2021-09-21 14:28:38 +02:00
patch_diff.py Run bazel builds in premerge 2021-07-28 16:01:44 +02:00
pipeline_create_branch.py Run bazel builds in premerge 2021-07-28 16:01:44 +02:00
pipeline_main.py Run bazel build on mainline 2021-09-03 15:54:53 +02:00
pipeline_premerge.py Change the premerge checks to only check the affected projects 2021-09-21 14:28:38 +02:00
premerge_checks.py Change the premerge checks to only check the affected projects 2021-09-21 14:28:38 +02:00
requirements.txt Remove requirement added in 1f2c851 to try to fix diff-checks 2021-05-04 16:22:40 -04:00
run_cmake.py export command on win is 'set' 2021-03-19 15:36:08 +01:00
run_cmake_config.yaml rename CCACHE_PATH to CCACHE_DIR 2020-08-26 14:22:37 +02:00
run_ninja.py building with buildkite 2020-05-25 16:42:40 +02:00
set_build_status.py Process results and unit-test output of libcxx 2020-11-25 15:29:50 +01:00
steps.py Run bazel build on mainline 2021-09-03 15:54:53 +02:00
summary.py Run bazel builds in premerge 2021-07-28 16:01:44 +02:00
sync_fork.py script to sync fork llvm-premerge-tests/llvm-project 2021-08-11 16:25:29 +02:00
test_results_report.py Process results and unit-test output of libcxx 2020-11-25 15:29:50 +01:00
windows_agent_bootstrap.ps1 don't install nuget on new win agents 2021-05-20 12:18:18 +02:00
windows_agent_start_buildkite.ps1 dont pass 'testing' parameter from startup 2021-06-01 17:37:20 +02:00