[llvm-branch-commits] [llvm] release/21.x: [Github] Only look at previous commit for MacOS Premerge (#164483) (PR #164497)

Cullen Rhodes via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 27 03:12:06 PDT 2025


https://github.com/c-rhodes updated https://github.com/llvm/llvm-project/pull/164497

>From 1600cf0405844880def09cef3290f77d76a8e64b Mon Sep 17 00:00:00 2001
From: Aiden Grossman <aidengrossman at google.com>
Date: Tue, 21 Oct 2025 14:04:03 -0700
Subject: [PATCH] [Github] Only look at previous commit for MacOS Premerge
 (#164483)

Otherwise we're looking for a commit that does not exist given the fetch
depth.

Fixes #164430.

(cherry picked from commit 288ef04d2f19c5b0e4ce3cae450c63a365ab11e9)
---
 .github/workflows/premerge.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/premerge.yaml b/.github/workflows/premerge.yaml
index d0518fa6879e2..8594e1e91ee99 100644
--- a/.github/workflows/premerge.yaml
+++ b/.github/workflows/premerge.yaml
@@ -149,7 +149,7 @@ jobs:
         uses: llvm/actions/install-ninja at main
       - name: Build and Test
         run: |
-          source <(git diff --name-only HEAD~2..HEAD | python3 .ci/compute_projects.py)
+          source <(git diff --name-only HEAD~1...HEAD | python3 .ci/compute_projects.py)
 
           if [[ "${projects_to_build}" == "" ]]; then
             echo "No projects to build"



More information about the llvm-branch-commits mailing list