[libc++] [test] Run the clang-format and generated-output checks on the "service...
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Thu, 29 Apr 2021 21:32:17 +0000 (17:32 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Fri, 30 Apr 2021 12:57:03 +0000 (08:57 -0400)
As these jobs only run in a couple seconds, and block starting of
other jobs, they can run on the "service" queue which doesn't get
blocked by other long-running jobs.

Differential Revision: https://reviews.llvm.org/D101437

libcxx/utils/ci/buildkite-pipeline.yml
libcxx/utils/ci/run-buildbot

index 1023d74..ecfbac8 100644 (file)
@@ -27,7 +27,7 @@ steps:
     artifact_paths:
       - "**/clang-format.patch"
     agents:
-      queue: "libcxx-builders"
+      queue: "service"
     retry:
       automatic:
         - exit_status: -1  # Agent was lost
@@ -40,7 +40,7 @@ steps:
     artifact_paths:
       - "**/generated_output.patch"
     agents:
-      queue: "libcxx-builders"
+      queue: "service"
     retry:
       automatic:
         - exit_status: -1  # Agent was lost
index 1042b11..17cb85b 100755 (executable)
@@ -9,6 +9,9 @@
 
 set -ex
 set -o pipefail
+unset LANG
+unset LC_ALL
+unset LC_COLLATE
 
 PROGNAME="$(basename "${0}")"
 
@@ -146,6 +149,7 @@ check-generated-output)
     # Check if the diffs are empty, fail otherwise.
     ! grep -q '^--- a' ${BUILD_DIR}/generated_output.patch || false
     # Reject patches that introduce non-ASCII characters or hard tabs.
+    # Depends on LC_COLLATE set at the top of this script.
     ! grep -rn '[^ -~]' libcxx/include/ || false
     # Check that no dependency cycles have been introduced.
     python3 libcxx/utils/graph_header_deps.py >/dev/null