[llvm] [Github][RFC] Add workflow to diff codegen on llvm-test-suite (PR #190010)

Tom Stellard via llvm-commits llvm-commits at lists.llvm.org
Mon May 11 11:00:45 PDT 2026


================
@@ -0,0 +1,140 @@
+# When /test-suite is commented on a PR, checks out the PR, builds clang and
+# then the test-suite in several configurations. It then checks out the base of
+# the PR, builds clang and the test-suite again, and then uploads the diff of
+# the codegen.
+
+name: Diff test-suite codegen
+
+on:
+  issue_comment:
+    types:
+      - created
+
+permissions:
+  contents: read
+
+jobs:
+  test-suite:
+    name: Build test-suite and diff
+    runs-on: ubuntu-24.04
+    container:
+      image: ghcr.io/llvm/ci-ubuntu-24.04:35e958d7f0b7
+    if: github.event.issue.pull_request && startswith(github.event.comment.body, '/test-suite')
+    steps:
+      - name: Get pull request
+        id: get-pr
+        uses: actions/github-script at ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
+        with:
+          script: |
+            const { data: pr } = await github.rest.pulls.get({
+              owner: context.repo.owner,
+              repo: context.repo.repo,
+              pull_number: context.payload.issue.number
+            })
+            return pr
----------------
tstellar wrote:

Why do you need this step, isn't all the PR information available via the context?

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


More information about the llvm-commits mailing list