[llvm] [GitHub] Use base repository to fetch test merge commit in test-suite workflow (PR #213871)

Luke Lau via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 4 01:31:05 PDT 2026


https://github.com/lukel97 created https://github.com/llvm/llvm-project/pull/213871

>From time to time we'll fail to fetch the test merge commit during the checkout step, e.g. see https://github.com/llvm/llvm-project/actions/runs/30626469894/job/91931527829

After a bit of research apparently the test merge commit is actually stored on the base repository, not the fork. I think this just happened to work previously because the fork repository synced objects in the background, but it's not always guaranteed to be available.

So switch the checkout step to use llvm/llvm-project as the remote.

>From e878b6962e16e2197cebc2ee93447b777ae56370 Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Tue, 4 Aug 2026 16:23:29 +0800
Subject: [PATCH] [GitHub] Use base repository to fetch test merge commit in
 test-suite workflow

>From time to time we'll fail to fetch the test merge commit during the checkout step, e.g. see https://github.com/llvm/llvm-project/actions/runs/30626469894/job/91931527829

After a bit of research apparently the test merge commit is actually stored on the base repository, not the fork. I think this just happened to work previously because the fork repository synced objects in the background, but it's not always guaranteed to be available.

So switch the checkout step to use llvm/llvm-project as the remote.
---
 .github/workflows/test-suite.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml
index 1b5805f268fdd..d6eab91fc6823 100644
--- a/.github/workflows/test-suite.yml
+++ b/.github/workflows/test-suite.yml
@@ -85,7 +85,8 @@ jobs:
         uses: actions/checkout at df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
         with:
           ref: ${{ fromJSON(steps.get-pr.outputs.result).merge_commit_sha }}
-          repository: ${{ fromJSON(steps.get-pr.outputs.result).head.repo.full_name }}
+          # test merge commits are stored in the base repository, not the head
+          repository: ${{ github.repository }}
           fetch-depth: 2
           path: llvm-project
           persist-credentials: false



More information about the llvm-commits mailing list