[libcxx-commits] [PATCH] D99862: [libc++] [DO NOT LAND] Validate status generate_feature_test_macro_components.py

Mark de Wever via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Sun Apr 4 11:50:37 PDT 2021


Mordante updated this revision to Diff 335165.
Mordante added a comment.

The build https://buildkite.com/llvm-project/libcxx-ci/builds/2293 passess as expected.
Restore all removed pipelines to get a complete CI run.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99862/new/

https://reviews.llvm.org/D99862

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


Index: libcxx/utils/ci/run-buildbot
===================================================================
--- libcxx/utils/ci/run-buildbot
+++ libcxx/utils/ci/run-buildbot
@@ -132,6 +132,17 @@
     # Check if the diff is empty, fail otherwise.
     ! grep -q '^--- a' ${BUILD_DIR}/clang-format.patch
 ;;
+check-feature-test-macros)
+    clean
+    echo "+++ Checking output of utils/generate_feature_test_macro_components.py"
+    # We need to set --extensions so that clang-format checks extensionless files.
+    mkdir -p ${BUILD_DIR}
+	python3 libcxx/utils/generate_feature_test_macro_components.py
+	git diff \
+        | tee ${BUILD_DIR}/generate_feature_test_macro_components.patch
+    # Check if the diff is empty, fail otherwise.
+    ! grep -q '^--- a' ${BUILD_DIR}/generate_feature_test_macro_components.patch
+;;
 generic-cxx03)
     export CC=clang
     export CXX=clang++
Index: libcxx/utils/ci/buildkite-pipeline.yml
===================================================================
--- libcxx/utils/ci/buildkite-pipeline.yml
+++ libcxx/utils/ci/buildkite-pipeline.yml
@@ -28,6 +28,17 @@
     soft_fail:
         - exit_status: 1
 
+  - label: "Feature-test macros"
+    command: "libcxx/utils/ci/run-buildbot check-feature-test-macros"
+    artifact_paths:
+      - "**/generate_feature_test_macro_components.patch"
+    agents:
+      queue: "libcxx-builders"
+    retry:
+      automatic:
+        - exit_status: -1  # Agent was lost
+          limit: 2
+
   - label: "C++03"
     command: "libcxx/utils/ci/run-buildbot generic-cxx03"
     artifact_paths:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99862.335165.patch
Type: text/x-patch
Size: 1574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20210404/adbbecf2/attachment.bin>


More information about the libcxx-commits mailing list