Skip to content

Commit

Permalink
upstream pretest: fix trivial_core_sha
Browse files Browse the repository at this point in the history
  • Loading branch information
SunSerega committed Oct 12, 2024
1 parent 2cd779f commit 5738ca7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/upstream pretest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ jobs:
- name: checkout
uses: actions/checkout@main
with:
fetch-depth: 0
sparse-checkout-cone-mode: false
sparse-checkout: |
.gitmodules
Expand Down Expand Up @@ -144,6 +145,9 @@ jobs:
Write-Host "=============================="
Write-Host "Fetching extra data"
Write-Host "- Fetching core history"
# To check if trivial_core_sha was force-pushed, we need all branches and their relationships in core repo
git fetch --all
$core_pretest_pr_nums = @{}
$subm_fetch_specs = @{}
foreach ($l in Get-GitRemoteBranches origin 'refs/heads/subm-pretest/*/*/*') {
Expand All @@ -163,6 +167,7 @@ jobs:
Write-Host "--- MISSING FORK PRETEST"
}
}
Write-Host "- Fetching subm pretest branches"
# To check which pretest branches are up to date and should not be tested
# - Only need commit messages, not files
foreach ($repo in $submodule_by_repo.Keys) {
Expand All @@ -175,6 +180,11 @@ jobs:
# Write-Host "=============================="
# git --no-pager log --graph --pretty=oneline --abbrev-commit --all
Write-Host "=============================="
Write-Host "Building exec_list"
$exec_list = @()
Expand Down Expand Up @@ -226,7 +236,7 @@ jobs:
Write-Host "----- HEAD is at $head_sha"
}
$old_head_fwd_c = git rev-list --count $sha..HEAD
$old_head_fwd_c = git rev-list --count "$head_sha..$sha"
if (-not $?) { throw "git rev-list failed" }
if ($old_head_fwd_c -ne 0) {
Expand Down
2 changes: 1 addition & 1 deletion DataScraping/Reps/OpenCL-Docs
Submodule OpenCL-Docs updated from 8c790e to 90516f

0 comments on commit 5738ca7

Please sign in to comment.