[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:14 PST 2023


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

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


>From 9ce10229911710fd31788b78ce486888c44dfd15 Mon Sep 17 00:00:00 2001
From: eric <eric at efcs.ca>
Date: Sun, 3 Dec 2023 20:08:08 -0500
Subject: [PATCH] Add sanity test workflow for checking libc++ bots quickly.

This workflow provides a way to quickly schedule jobs on the libc++
builders to ensure they work as intended
---
 .../workflows/test-libcxx-runner-infa.yaml    | 35 +++++++++++++++++++
 1 file changed, 35 insertions(+)
 create mode 100644 .github/workflows/test-libcxx-runner-infa.yaml

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"
+



More information about the llvm-commits mailing list