[llvm] Add sanity test workflow for checking libc++ bots quickly. (PR #74267)

via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 3 17:09:43 PST 2023


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-github-workflow

Author: Eric (EricWF)

<details>
<summary>Changes</summary>

This workflow provides a way to quickly schedule jobs on the libc++
builders to ensure they work as intended


---
Full diff: https://github.com/llvm/llvm-project/pull/74267.diff


1 Files Affected:

- (added) .github/workflows/test-libcxx-runner-infa.yaml (+35) 


``````````diff
diff --git a/.github/workflows/test-libcxx-runner-infa.yaml b/.github/workflows/test-libcxx-runner-infa.yaml
new file mode 100644
index 0000000000000..1b7442e8b0884
--- /dev/null
+++ b/.github/workflows/test-libcxx-runner-infa.yaml
@@ -0,0 +1,35 @@
+# A sanity check for the libc++ github actions runners. It simply attempts to schedule a job on each runner and
+# then prints some info about each runner.
+#
+# The runner sets are currently:
+#   - libcxx-runners-8-set
+#   - libcxx-runners-32-set
+
+# FIXME: Write this workflow
+name: Actions Infrastructure Sanity Check for Libc++
+
+permissions:
+  contents: read
+
+on:
+  workflow_dispatch:
+    inputs:
+        runner_set:
+            description: 'Runner set to test'
+            type: choice
+            options:
+            - 'libcxx-runners-8-set'
+            - 'libcxx-runners-32-set'
+            default: 'libcxx-runners-8-set'
+jobs:
+  build:
+    if: github.actor == 'EricWF' && github.repository == 'llvm/llvm-project'
+    runs-on: ${{ github.event.inputs.runner_set }}
+    steps:
+    - name: Display the environment
+      run: echo "This job is running on ${{ runner.os }} with ${{ runner.cpu }} CPUs"
+    - name: Dump runner context
+      env:
+          RUNNER_CONTEXT: ${{ toJson(runner) }}
+      run: echo "$RUNNER_CONTEXT"
+

``````````

</details>


https://github.com/llvm/llvm-project/pull/74267


More information about the llvm-commits mailing list