From 1b34bf76eb70bf51b547ce6ee4448f3ce366cd88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E7=99=BB=E5=B1=B1?= Date: Tue, 1 Sep 2026 13:54:46 +0800 Subject: [PATCH] test(tier): pin issue 2128 black-box scripts --- .github/workflows/rustfs-tier-test.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rustfs-tier-test.yml b/.github/workflows/rustfs-tier-test.yml index c0a84fc47..7971909d5 100644 --- a/.github/workflows/rustfs-tier-test.yml +++ b/.github/workflows/rustfs-tier-test.yml @@ -71,13 +71,20 @@ jobs: - name: Checkout auto-testing scripts (with retry) env: GH_TOKEN: ${{ secrets.PF_TESTING_GH_TOKEN }} + AUTO_TESTING_REF: cxymds/fix-2132-tier-log-isolation + AUTO_TESTING_COMMIT: 02da54dd62110649dc2860fc5fcd9e08d2e9a1ca run: | set -euo pipefail rm -rf auto-testing for attempt in 1 2 3 4 5; do - if gh repo clone rustfs/auto-testing auto-testing -- --depth 1 --quiet; then - echo "auto-testing cloned (attempt ${attempt})" - exit 0 + if gh repo clone rustfs/auto-testing auto-testing -- \ + --branch "${AUTO_TESTING_REF}" --single-branch --depth 1 --quiet; then + actual_commit="$(git -C auto-testing rev-parse HEAD)" + if [[ "${actual_commit}" == "${AUTO_TESTING_COMMIT}" ]]; then + echo "auto-testing ${actual_commit} cloned (attempt ${attempt})" + exit 0 + fi + echo "auto-testing commit mismatch: expected ${AUTO_TESTING_COMMIT}, got ${actual_commit}" >&2 fi rm -rf auto-testing echo "clone attempt ${attempt} failed; retrying in $((attempt * 15))s" >&2