[libcxx-commits] [libcxx] Attempt entire rewrite of buildkite pipeline using anchors. (PR #71624)
via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Nov 8 13:31:37 PST 2023
================
@@ -28,916 +28,509 @@ env:
# LLVM RELEASE bump remove compiler ToT - 3, e.g. "Clang 15"
LLVM_HEAD_VERSION: "18" # Used compiler, update POST-BRANCH.
GCC_STABLE_VERSION: "13"
-steps:
- #
- # General testing with the default configuration, under all the supported
- # Standard modes, with Clang and GCC. This catches most issues upfront.
- # The goal of this step is to catch most issues while being very fast.
- #
- - label: "GCC ${GCC_STABLE_VERSION} / C++latest"
- command: "libcxx/utils/ci/run-buildbot generic-gcc"
- artifact_paths:
- - "**/test-results.xml"
- - "**/*.abilist"
- env:
- CC: "gcc-${GCC_STABLE_VERSION}"
- CXX: "g++-${GCC_STABLE_VERSION}"
- ENABLE_CLANG_TIDY: "On"
- agents:
- queue: "libcxx-builders"
- os: "linux"
- retry:
- automatic:
- - exit_status: -1 # Agent was lost
- limit: 2
- timeout_in_minutes: 120
- - label: "C++26"
- command: "libcxx/utils/ci/run-buildbot generic-cxx26"
- artifact_paths:
- - "**/test-results.xml"
- - "**/*.abilist"
- env:
- # Note modules require and absolute path for clang-scan-deps
- # https://github.com/llvm/llvm-project/issues/61006
- CC: "/usr/lib/llvm-${LLVM_HEAD_VERSION}/bin/clang"
- CXX: "/usr/lib/llvm-${LLVM_HEAD_VERSION}/bin/clang++"
- CMAKE: "/opt/bin/cmake"
- ENABLE_CLANG_TIDY: "On"
- agents:
- queue: "libcxx-builders"
- os: "linux"
- retry:
- automatic:
- - exit_status: -1 # Agent was lost
- limit: 2
- timeout_in_minutes: 120
+# Define common YAML anchors to reduce duplication
+definitions:
+ _linux_agent: &linux_agent
+ agents:
+ queue: "libcxx-builders"
+ os: "linux"
- - label: "Modular build"
- command: "libcxx/utils/ci/run-buildbot generic-modules"
- artifact_paths:
- - "**/test-results.xml"
- - "**/*.abilist"
- env:
- CC: "clang-${LLVM_HEAD_VERSION}"
- CXX: "clang++-${LLVM_HEAD_VERSION}"
- ENABLE_CLANG_TIDY: "On"
- agents:
- queue: "libcxx-builders"
- os: "linux"
- retry:
- automatic:
- - exit_status: -1 # Agent was lost
- limit: 2
- timeout_in_minutes: 120
+ _windows_agent: &windows_agent
+ agents:
+ queue: "windows"
- - label: "C++11"
- command: "libcxx/utils/ci/run-buildbot generic-cxx11"
- artifact_paths:
- - "**/test-results.xml"
- - "**/*.abilist"
- env:
- CC: "clang-${LLVM_HEAD_VERSION}"
- CXX: "clang++-${LLVM_HEAD_VERSION}"
- ENABLE_CLANG_TIDY: "On"
- agents:
- queue: "libcxx-builders"
- os: "linux"
+ _mac_agent: &mac_agent
+ agents:
+ queue: "libcxx-builders"
+ os: "macos"
+ arch: "x86_64" # TODO: Remove this once we are able to run back-deployment on arm64 again, since this isn't x86_64 specific
+
+ _common: &common
+ timeout_in_minutes: 120
retry:
automatic:
- exit_status: -1 # Agent was lost
limit: 2
- timeout_in_minutes: 120
-
- - label: "C++03"
- command: "libcxx/utils/ci/run-buildbot generic-cxx03"
artifact_paths:
- "**/test-results.xml"
- "**/*.abilist"
- env:
- CC: "clang-${LLVM_HEAD_VERSION}"
- CXX: "clang++-${LLVM_HEAD_VERSION}"
- ENABLE_CLANG_TIDY: "On"
- agents:
- queue: "libcxx-builders"
- os: "linux"
- retry:
- automatic:
- - exit_status: -1 # Agent was lost
- limit: 2
- timeout_in_minutes: 120
+ - "**/crash_diagnostics/*"
+
+ _common_env: &common_env
+ ENABLE_CLANG_TIDY: "On"
+ LLVM_SYMBOLIZER_PATH: "/usr/bin/llvm-symbolizer-${LLVM_HEAD_VERSION}"
+ CLANG_CRASH_DIAGNOSTICS_DIR: "crash_diagnostics"
+ CC: clang-${LLVM_HEAD_VERSION}
+ CXX: clang++-${LLVM_HEAD_VERSION}
+ CMAKE: /opt/bin/cmake
+
+ _versioned_clang: &versioned_clang
+ # Note modules require and absolute path for clang-scan-deps
+ # https://github.com/llvm/llvm-project/issues/61006
+ CC: /usr/lib/llvm-${LLVM_HEAD_VERSION}/bin/clang
+ CXX: /usr/lib/llvm-${LLVM_HEAD_VERSION}/bin/clang++
+
+
+steps:
+- label: GCC ${GCC_STABLE_VERSION} / C++latest
+ command: libcxx/utils/ci/run-buildbot generic-gcc
+ <<: *common
+ <<: *linux_agent
+ env:
+ <<: *common_env
+ CC: gcc-${GCC_STABLE_VERSION}
----------------
EricWF wrote:
Reopening because I said one thing and did another. FYI.
https://github.com/llvm/llvm-project/pull/71624
More information about the libcxx-commits
mailing list