diff options
| author | Aiden Grossman <aidengrossman@google.com> | 2025-08-07 14:02:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-07 14:02:19 -0700 |
| commit | 536e414b14edb2cfea59b0482a5b968ad34953a7 (patch) | |
| tree | 3c38b3f218ff4330468056422883b7a286702493 | |
| parent | 41b5880c957320b1be68cdb642ba735fdd27bb7c (diff) | |
| download | llvm-536e414b14edb2cfea59b0482a5b968ad34953a7.zip llvm-536e414b14edb2cfea59b0482a5b968ad34953a7.tar.gz llvm-536e414b14edb2cfea59b0482a5b968ad34953a7.tar.bz2 | |
[CI] Tee Ninja Output to Log Files
This patch makes all of the ninja commands in the monolithic-* scripts
write to log files in the current working directory. The plan is to use
this to feed the ninja log into generate_test_report_github.py so we can
surface compilation errors.
Related to #152246.
Reviewers: Keenuts, lnihlen, cmtice, dschuff, gburgessiv
Reviewed By: Keenuts, cmtice
Pull Request: https://github.com/llvm/llvm-project/pull/152331
| -rwxr-xr-x | .ci/monolithic-linux.sh | 10 | ||||
| -rwxr-xr-x | .ci/monolithic-windows.sh | 2 |
2 files changed, 7 insertions, 5 deletions
diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh index 84da045..75729b3 100755 --- a/.ci/monolithic-linux.sh +++ b/.ci/monolithic-linux.sh @@ -65,12 +65,12 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \ start-group "ninja" # Targets are not escaped as they are passed as separate arguments. -ninja -C "${BUILD_DIR}" -k 0 ${targets} +ninja -C "${BUILD_DIR}" -k 0 ${targets} |& tee ninja.log if [[ "${runtime_targets}" != "" ]]; then start-group "ninja Runtimes" - ninja -C "${BUILD_DIR}" ${runtime_targets} + ninja -C "${BUILD_DIR}" ${runtime_targets} |& tee ninja_runtimes.log fi # Compiling runtimes with just-built Clang and running their tests @@ -85,7 +85,8 @@ if [[ "${runtime_targets_needs_reconfig}" != "" ]]; then start-group "ninja Runtimes C++26" - ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig} + ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig} \ + |& tee ninja_runtimes_needs_reconfig1.log start-group "CMake Runtimes Clang Modules" @@ -96,5 +97,6 @@ if [[ "${runtime_targets_needs_reconfig}" != "" ]]; then start-group "ninja Runtimes Clang Modules" - ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig} + ninja -C "${BUILD_DIR}" ${runtime_targets_needs_reconfig} \ + |& tee ninja_runtimes_needs_reconfig2.log fi diff --git a/.ci/monolithic-windows.sh b/.ci/monolithic-windows.sh index b30faa4..0f3a199 100755 --- a/.ci/monolithic-windows.sh +++ b/.ci/monolithic-windows.sh @@ -51,4 +51,4 @@ cmake -S "${MONOREPO_ROOT}"/llvm -B "${BUILD_DIR}" \ start-group "ninja" # Targets are not escaped as they are passed as separate arguments. -ninja -C "${BUILD_DIR}" -k 0 ${targets} +ninja -C "${BUILD_DIR}" -k 0 ${targets} |& tee ninja.log |
