Skip to content

Commit 7cf899d

Browse files
Document that can checkout from forks in test scripts (#2928)
1 parent 99432fc commit 7cf899d

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

ci/cloneSuites.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if not defined TEST_SUITE_BRANCH (
3232
git init ci-gfxr-suites
3333
cd ci-gfxr-suites
3434
git remote add origin %TEST_SUITE_REPO%
35-
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
35+
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" & :: Allows git to pull from hashes in forks of the repo that are submitted as PRs
3636

3737
git config remote.origin.promisor true
3838
git config remote.origin.partialclonefilter "blob:none"

ci/cloneSuites.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fi
3333
git init ci-gfxr-suites
3434
cd ci-gfxr-suites
3535
git remote add origin $TEST_SUITE_REPO
36-
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
36+
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" # Allows git to pull from hashes in forks of the repo that are submitted as PRs
3737

3838
git config remote.origin.promisor true
3939
git config remote.origin.partialclonefilter "blob:none"

ci/cloneTests.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ waitfor forever /t 60 2>nul
4141
goto :clone_tests
4242
:clone_tests_done
4343
cd VulkanTests
44-
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
44+
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" & :: Allows git to pull from hashes in forks of the repo that are submitted as PRs
4545
git fetch origin
4646
git checkout %TEST_BRANCH% || exit /b
4747
git submodule update --init --recursive

ci/cloneTests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ fi
3030

3131
git clone --verbose $TEST_REPO VulkanTests
3232
cd VulkanTests
33-
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
33+
git config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" # Allows git to pull from hashes in forks of the repo that are submitted as PRs
3434
git fetch origin
3535
git checkout $TEST_BRANCH
3636
git submodule update --init --recursive

ci/runJob.bat

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ if %clonetestloop% gtr 3 (
4343
waitfor forever /t 60 2>nul
4444
goto :clone_suites
4545
:clone_suites_done
46-
git -C ci-gfxr-suites config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
46+
git -C ci-gfxr-suites config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" & :: Allows git to pull from hashes in forks of the repo that are submitted as PRs
4747
git -C ci-gfxr-suites fetch origin
4848
git -C ci-gfxr-suites checkout %TEST_SUITE_BRANCH% || exit /b
4949
git -C ci-gfxr-suites submodule update --init --recursive
@@ -70,7 +70,7 @@ if %clonetestloop% gtr 3 (
7070
waitfor forever /t 60 2>nul
7171
goto :clone_tests
7272
:clone_tests_done
73-
git -C VulkanTests config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
73+
git -C VulkanTests config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" & :: Allows git to pull from hashes in forks of the repo that are submitted as PRs
7474
git -C VulkanTests fetch origin
7575
git -C VulkanTests checkout %TEST_BRANCH% || exit /b
7676
git -C VulkanTests submodule update --init --recursive

ci/runJob.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [ -z "${TEST_SUITE_BRANCH:-}" ]; then
3232
fi
3333

3434
git clone --verbose $TEST_SUITE_REPO ci-gfxr-suites
35-
git -C ci-gfxr-suites config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
35+
git -C ci-gfxr-suites config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" # Allows git to pull from hashes in forks of the repo that are submitted as PRs
3636
git -C ci-gfxr-suites fetch origin
3737
git -C ci-gfxr-suites checkout $TEST_SUITE_BRANCH
3838
git -C ci-gfxr-suites submodule update --init --recursive
@@ -48,7 +48,7 @@ if [ -z "${TEST_BRANCH:-}" ]; then
4848
fi
4949

5050
git clone --verbose $TEST_REPO VulkanTests
51-
git -C VulkanTests config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
51+
git -C VulkanTests config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" # Allows git to pull from hashes in forks of the repo that are submitted as PRs
5252
git -C VulkanTests fetch origin
5353
git -C VulkanTests checkout $TEST_BRANCH
5454
git -C VulkanTests submodule update --init --recursive

ci/runJobAndroid.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if [ -z "${TEST_SUITE_BRANCH:-}" ]; then
3232
fi
3333

3434
git clone --verbose $TEST_SUITE_REPO ci-gfxr-suites
35-
git -C ci-gfxr-suites config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
35+
git -C ci-gfxr-suites config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" # Allows git to pull from hashes in forks of the repo that are submitted as PRs
3636
git -C ci-gfxr-suites fetch origin
3737
git -C ci-gfxr-suites checkout $TEST_SUITE_BRANCH
3838
git -C ci-gfxr-suites submodule update --init --recursive
@@ -48,7 +48,7 @@ if [ -z "${TEST_BRANCH:-}" ]; then
4848
fi
4949

5050
git clone --verbose $TEST_REPO VulkanTests
51-
git -C VulkanTests config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
51+
git -C VulkanTests config --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*" # Allows git to pull from hashes in forks of the repo that are submitted as PRs
5252
git -C VulkanTests fetch origin
5353
git -C VulkanTests checkout $TEST_BRANCH
5454
git -C VulkanTests submodule update --init --recursive

0 commit comments

Comments
 (0)