[libcxx] [llvm] WIP: Experiment with improving the buildkite triggering (PR #122468)

Louis Dionne via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 10 07:05:23 PST 2025


https://github.com/ldionne updated https://github.com/llvm/llvm-project/pull/122468

>From d2306251f8f196802b5f3d57a8a7bc09e753487e Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Fri, 10 Jan 2025 10:03:45 -0500
Subject: [PATCH 1/2] WIP: Experiment with improving the buildkite triggering

---
 .ci/generate-buildkite-pipeline-premerge     | 18 ------------------
 .github/workflows/libcxx-build-and-test.yaml | 17 +++++++++++++++++
 2 files changed, 17 insertions(+), 18 deletions(-)

diff --git a/.ci/generate-buildkite-pipeline-premerge b/.ci/generate-buildkite-pipeline-premerge
index 9d9ca321839449..a82a1cee8696e4 100755
--- a/.ci/generate-buildkite-pipeline-premerge
+++ b/.ci/generate-buildkite-pipeline-premerge
@@ -54,24 +54,6 @@ echo "$modified_dirs" >&2
 
 . ./.ci/compute-projects.sh
 
-# Project specific pipelines.
-
-# If libc++ or one of the runtimes directories changed.
-if echo "$modified_dirs" | grep -q -E "^(libcxx|libcxxabi|libunwind|runtimes|cmake)$"; then
-  cat <<EOF
-- trigger: "libcxx-ci"
-  build:
-    message: "${buildMessage}"
-    commit: "${BUILDKITE_COMMIT}"
-    branch: "${BUILDKITE_BRANCH}"
-EOF
-fi
-
-# Generic pipeline for projects that have not defined custom steps.
-#
-# Individual projects should instead define the pre-commit CI tests that suits their
-# needs while letting them run on the infrastructure provided by LLVM.
-
 # Figure out which projects need to be built on each platform
 all_projects="bolt clang clang-tools-extra compiler-rt cross-project-tests flang libc libclc lld lldb llvm mlir openmp polly pstl"
 modified_projects="$(keep-modified-projects ${all_projects})"
diff --git a/.github/workflows/libcxx-build-and-test.yaml b/.github/workflows/libcxx-build-and-test.yaml
index a28bf4d5daf6d5..ea87b5f0bba846 100644
--- a/.github/workflows/libcxx-build-and-test.yaml
+++ b/.github/workflows/libcxx-build-and-test.yaml
@@ -275,3 +275,20 @@ jobs:
       - name: Build and test
         run: |
           bash libcxx/utils/ci/run-buildbot ${{ matrix.config }}
+
+  # Some smaller platforms provide
+  buildkite:
+    # needs: [ stage1 ]
+    steps:
+      - uses: "buildkite/trigger-pipeline-action at v2.3.0"
+        with:
+          buildkite_api_access_token: ${{ secrets.TRIGGER_BK_BUILD_TOKEN }}
+          pipeline: "llvm-project/libcxx-ci"
+          branch: "main"
+          commit: "HEAD"
+          message:  ":github: Triggered from a GitHub Action"
+          ignore_pipeline_branch_filter: true
+          send_pull_request: true
+          wait: true
+          wait_interval: 10
+          wait_timeout: 300

>From 6abcc3442a9ce19eb5b619c243c35e042e6db589 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Fri, 10 Jan 2025 10:05:10 -0500
Subject: [PATCH 2/2] Touch libcxx file

---
 libcxx/foo | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 libcxx/foo

diff --git a/libcxx/foo b/libcxx/foo
new file mode 100644
index 00000000000000..e69de29bb2d1d6



More information about the llvm-commits mailing list