[llvm-branch-commits] [llvm] [mlir] [polly] [CI] Add rich build information for github workflows (PR #133197)

Aiden Grossman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Mar 28 23:47:31 PDT 2025


https://github.com/boomanaiden154 updated https://github.com/llvm/llvm-project/pull/133197

>From 121d1e0f2bbc88e68c92d4859a4dce3686bd4467 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Thu, 27 Mar 2025 20:01:57 +0000
Subject: [PATCH 1/5] testing

Created using spr 1.3.4
---
 mlir/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mlir/CMakeLists.txt b/mlir/CMakeLists.txt
index 9e786154a2b40..1903757b18f35 100644
--- a/mlir/CMakeLists.txt
+++ b/mlir/CMakeLists.txt
@@ -1,4 +1,5 @@
 # MLIR project.
+# Test comment.
 cmake_minimum_required(VERSION 3.20.0)
 set(LLVM_SUBPROJECT_TITLE "MLIR")
 

>From 56fb9262c91f8ea334ada6796f0d2f66ca43631a Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sat, 29 Mar 2025 06:00:39 +0000
Subject: [PATCH 2/5] more testing

Created using spr 1.3.4
---
 .ci/monolithic-linux.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh
index 4b6e56b4a4eda..a979e4896c368 100755
--- a/.ci/monolithic-linux.sh
+++ b/.ci/monolithic-linux.sh
@@ -35,12 +35,14 @@ function at-exit {
   ccache --print-stats > artifacts/ccache_stats.txt
 
   # If building fails there will be no results files.
+  echo "running in exit" >> $GITHUB_STEP_SUMMARY
   shopt -s nullglob
   if command -v buildkite-agent 2>&1 >/dev/null
   then
     python3 "${MONOREPO_ROOT}"/.ci/generate_test_report_buildkite.py ":linux: Linux x64 Test Results" \
       "linux-x64-test-results" $retcode "${BUILD_DIR}"/test-results.*.xml
   else
+    echo "got to else" >> $GITHUB_STEP_SUMMARY
     python3 "${MONOREPO_ROOT}"/.ci/generate_test_report_github.py ":linux: Linux x64 Test Results" \
       $retcode "${BUILD_DIR}"/test-results.*.xml >> $GITHUB_STEP_SUMMARY
   fi

>From 5d42e93860de1d82353c192bfaa2dd90965042d7 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sat, 29 Mar 2025 06:18:59 +0000
Subject: [PATCH 3/5] fix issues

Created using spr 1.3.4
---
 .ci/generate_test_report_github.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.ci/generate_test_report_github.py b/.ci/generate_test_report_github.py
index d4b2677c1ba93..d8b035f03737c 100644
--- a/.ci/generate_test_report_github.py
+++ b/.ci/generate_test_report_github.py
@@ -7,7 +7,7 @@
 
 import generate_test_report_lib
 
-if __name__ == "__main___":
+if __name__ == "__main__":
     parser = argparse.ArgumentParser()
     parser.add_argument(
         "title", help="Title of the test report, without Markdown formatting."

>From 9a1d7c587ac702c34c1e4ba9379ddbfd2af51182 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sat, 29 Mar 2025 06:26:08 +0000
Subject: [PATCH 4/5] remove some testing stuff

Created using spr 1.3.4
---
 .ci/generate_test_report_github.py | 2 +-
 .ci/monolithic-linux.sh            | 2 --
 .github/workflows/premerge.yaml    | 2 --
 3 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/.ci/generate_test_report_github.py b/.ci/generate_test_report_github.py
index d8b035f03737c..5f88513e92a69 100644
--- a/.ci/generate_test_report_github.py
+++ b/.ci/generate_test_report_github.py
@@ -16,7 +16,7 @@
     parser.add_argument("junit_files", help="Paths to JUnit report files.", nargs="*")
     args = parser.parse_args()
 
-    report, style = generate_test_report_lib.generate_report_from_files(
+    report, _ = generate_test_report_lib.generate_report_from_files(
         args.title, args.return_code, args.junit_files, None
     )
 
diff --git a/.ci/monolithic-linux.sh b/.ci/monolithic-linux.sh
index a979e4896c368..4b6e56b4a4eda 100755
--- a/.ci/monolithic-linux.sh
+++ b/.ci/monolithic-linux.sh
@@ -35,14 +35,12 @@ function at-exit {
   ccache --print-stats > artifacts/ccache_stats.txt
 
   # If building fails there will be no results files.
-  echo "running in exit" >> $GITHUB_STEP_SUMMARY
   shopt -s nullglob
   if command -v buildkite-agent 2>&1 >/dev/null
   then
     python3 "${MONOREPO_ROOT}"/.ci/generate_test_report_buildkite.py ":linux: Linux x64 Test Results" \
       "linux-x64-test-results" $retcode "${BUILD_DIR}"/test-results.*.xml
   else
-    echo "got to else" >> $GITHUB_STEP_SUMMARY
     python3 "${MONOREPO_ROOT}"/.ci/generate_test_report_github.py ":linux: Linux x64 Test Results" \
       $retcode "${BUILD_DIR}"/test-results.*.xml >> $GITHUB_STEP_SUMMARY
   fi
diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index 8431f6abeed04..e4f0ccf35067b 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -61,8 +61,6 @@ jobs:
           echo "Building runtimes: ${runtimes_to_build}"
           echo "Running runtimes checks targets: ${runtimes_check_targets}"
 
-          echo "testing" >> $GITHUB_STEP_SUMMARY
-
           export CC=/opt/llvm/bin/clang
           export CXX=/opt/llvm/bin/clang++
 

>From 0805ec9b5eed53188b324996572068623efb1b94 Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Sat, 29 Mar 2025 06:47:18 +0000
Subject: [PATCH 5/5] remove all testing

Created using spr 1.3.4
---
 .github/workflows/premerge.yaml | 1 -
 polly/CMakeLists.txt            | 1 -
 2 files changed, 2 deletions(-)

diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index e4f0ccf35067b..b7d2c7154762e 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -99,7 +99,6 @@ jobs:
 
           echo "windows-projects=${projects_to_build}" >> $GITHUB_OUTPUT
           echo "windows-check-targets=${project_check_targets}" >> $GITHUB_OUTPUT
-          echo "testing" >> $GITHUB_STEP_SUMMARY
       - name: Build and Test
         # Mark the job as a success even if the step fails so that people do
         # not get notified while the new premerge pipeline is in an
diff --git a/polly/CMakeLists.txt b/polly/CMakeLists.txt
index 9daa3d09d4455..c3232752d307c 100644
--- a/polly/CMakeLists.txt
+++ b/polly/CMakeLists.txt
@@ -1,5 +1,4 @@
 # Check if this is a in tree build.
-# Test comment.
 if (NOT DEFINED LLVM_MAIN_SRC_DIR)
   project(Polly)
   cmake_minimum_required(VERSION 3.20.0)



More information about the llvm-branch-commits mailing list