From 4ca00a568658fef8af4c8691117cc3ca4b62f2f3 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Mon, 25 Sep 2023 17:24:01 -0400 Subject: [PATCH] [libc++] Remove the libc++ specific clang-format job (#67344) Now that we have a LLVM-wide GitHub action, it doesn't make sense to have a custom job for libc++ in our BuildKite CI pipeline. This only creates confusion as to which CI job should be acted upon. --- libcxx/utils/ci/buildkite-pipeline.yml | 20 +------------------- libcxx/utils/ci/run-buildbot | 21 --------------------- 2 files changed, 1 insertion(+), 40 deletions(-) diff --git a/libcxx/utils/ci/buildkite-pipeline.yml b/libcxx/utils/ci/buildkite-pipeline.yml index f2329457c7bd..ae7aec7f64a4 100644 --- a/libcxx/utils/ci/buildkite-pipeline.yml +++ b/libcxx/utils/ci/buildkite-pipeline.yml @@ -31,26 +31,8 @@ env: GCC_STABLE_VERSION: "13" steps: # - # Light pre-commit tests for things like formatting or when people forget - # to update generated files. + # Light pre-commit tests for things like forgetting to update generated files. # - - label: "Format" - command: "libcxx/utils/ci/run-buildbot check-format" - artifact_paths: - - "**/clang-format.patch" - env: - GIT_CLANG_FORMAT: "/usr/bin/git-clang-format-${LLVM_STABLE_VERSION} --binary clang-format-${LLVM_STABLE_VERSION}" - CC: "clang-${LLVM_HEAD_VERSION}" - CXX: "clang++-${LLVM_HEAD_VERSION}" - agents: - queue: "libcxx-builders" - os: "linux" - retry: - automatic: - - exit_status: -1 # Agent was lost - limit: 2 - timeout_in_minutes: 120 - - label: "Generated output" command: "libcxx/utils/ci/run-buildbot check-generated-output" artifact_paths: diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot index a88716bc9922..a71318123db3 100755 --- a/libcxx/utils/ci/run-buildbot +++ b/libcxx/utils/ci/run-buildbot @@ -44,11 +44,6 @@ CMAKE The CMake binary to use. This variable is optional. CLANG_FORMAT The clang-format binary to use when generating the format ignore list. -GIT_CLANG_FORMAT The git-clang-format binary to use in the 'format' builder. - When the value is omitted, it defaults to - 'git-clang-format'. This variable or its fallback must work - when running the 'format' builder. - ENABLE_CLANG_TIDY Whether to compile and run clang-tidy checks. This variable is optional. @@ -208,22 +203,6 @@ ${NINJA} --version if [ ! -z "${CXX}" ]; then ${CXX} --version; fi case "${BUILDER}" in -check-format) - clean - echo "+++ Checking formatting" - # We need to set --extensions so that clang-format checks extensionless files. - mkdir -p ${BUILD_DIR} - if [ -z "${GIT_CLANG_FORMAT}" ]; then - GIT_CLANG_FORMAT=git-clang-format - fi - ${GIT_CLANG_FORMAT} \ - --diff \ - --extensions ',h,hpp,c,cpp,cppm,inc,ipp' HEAD~1 \ - -- $(find libcxx/{benchmarks,include,modules,src} -type f | grep -vf libcxx/utils/data/ignore_format.txt) \ - | tee ${BUILD_DIR}/clang-format.patch - # Check if the diff is empty, fail otherwise. - ! grep -q '^--- a' ${BUILD_DIR}/clang-format.patch -;; check-generated-output) # `! foo` doesn't work properly with `set -e`, use `! foo || false` instead. # https://stackoverflow.com/questions/57681955/set-e-does-not-respect-logical-not