From a6b735edf16f682d4c9e6402b4dd6b6357d1d389 Mon Sep 17 00:00:00 2001 From: Sun Serega Date: Sun, 1 Sep 2024 00:40:24 +0200 Subject: [PATCH] Refactor pretest, save sha only on pretest branch of fork --- .github/workflows/on commit.yaml | 2 + .github/workflows/update gh-pages.yaml | 2 + .github/workflows/upstream pretest.yaml | 403 ++++++++++++++++-------- DataScraping/Reps/OpenCL-Docs | 2 +- Delete subm pretest branches.ps1 | 4 +- LastPack.log | 9 - 6 files changed, 279 insertions(+), 143 deletions(-) diff --git a/.github/workflows/on commit.yaml b/.github/workflows/on commit.yaml index 038ca870..03678d44 100644 --- a/.github/workflows/on commit.yaml +++ b/.github/workflows/on commit.yaml @@ -2,6 +2,8 @@ on: push: + branches-ignore: + - 'subm-pretest/**' schedule: - cron: '0 0 * * *' pull_request: diff --git a/.github/workflows/update gh-pages.yaml b/.github/workflows/update gh-pages.yaml index 4df2103e..654028dc 100644 --- a/.github/workflows/update gh-pages.yaml +++ b/.github/workflows/update gh-pages.yaml @@ -2,6 +2,8 @@ on: push: + branches-ignore: + - 'subm-pretest/**' workflow_dispatch: permissions: diff --git a/.github/workflows/upstream pretest.yaml b/.github/workflows/upstream pretest.yaml index d73dd901..24b7b131 100644 --- a/.github/workflows/upstream pretest.yaml +++ b/.github/workflows/upstream pretest.yaml @@ -14,18 +14,18 @@ concurrency: cancel-in-progress: false # There are 2 steps of adding new upstream commits: -# 1. Add new commits from the PR merge ref (and possibly custom branch): to "pretest/$pr_num" in fork -# 2. Add commit with submodule ref move + test changes, with this ref move: to "subm-pretest/$org_repo/$pr_num" in POCGL repo +# 1. Add new commits from the PR head ref (and, if needed, main/custom branches): to "pretest/$pr_num" in fork +# 2. Add commit with test changes: to "subm-pretest/$org_repo/$pr_num" in POCGL repo # To only update when source has been updated: -# - "pretest" references sha of latest merge commit for PR as: meta.pr_merge_sha -# - "subm-pretest" references sha of latest pretest commit in fork as: meta.fork_pretest_sha +# - "pretest" references sha of latest PR commit as: meta.pr_head_sha +# - "pretest" references sha of latest "subm-pretest" commit as: meta.core_pretest_sha # "pretest" is not updated when only main or custom branch of subm updates # - Otherwise all pretest branches would update at the same time, even on unrelated changes -# "pretest" and "subm-pretest" need to be first checked by a separate "git ls-remote" before "git fetch" -# - Otherwise git fetch would fail fetching them +# "pretest" needs to be first checked by a separate "git ls-remote" before "git fetch" +# - Otherwise git fetch would fail fetching the missing branches # "pretest" and "subm-pretest" can be update manually by push, in case anything new needs to be implemented for the new XML spec # - In that case, there would be no commit sha reference, so it will be re-tested on the next run of this workflow @@ -41,6 +41,7 @@ jobs: - name: git config run: | + git config --global gc.auto 0 git config --global core.autocrlf false git config --global user.name "sun pack bot" git config --global user.email "sunserega2@gmail.com" @@ -97,20 +98,27 @@ jobs: $name = $matches[2] $fork_url = "git@github.com:SunSerega/${name}.git" - $merge_sha_by_pr = @{} + $mergeable_prs = @() foreach ($l in Get-GitRemoteBranches $url 'refs/pull/*/merge') { + $pr_num = $l.matches[1] + $mergeable_prs += $pr_num + } + + $head_sha_by_pr = @{} + foreach ($l in Get-GitRemoteBranches $url 'refs/pull/*/head') { $sha = $l.sha $pr_num = $l.matches[1] + if ($pr_num -notin $mergeable_prs) { continue } Write-Host "- Found open PR $pr_num with latest sha $sha" - $merge_sha_by_pr.Add($pr_num, $sha) + $head_sha_by_pr.Add($pr_num, $sha) } - $pretest_sha_by_pr = @{} + $pretest_prs = @() foreach ($l in Get-GitRemoteBranches $fork_url 'refs/heads/pretest/*') { $sha = $l.sha $pr_num = $l.matches[1] Write-Host "- Found pretest branch for PR $pr_num with latest sha $sha" - $pretest_sha_by_pr.Add($pr_num, $sha) + $pretest_prs += $pr_num } $subm = [PSCustomObject]@{ @@ -119,8 +127,8 @@ jobs: 'owner' = $owner; 'name' = $name; 'repo' = "$owner/$name" - 'merge_sha_by_pr' = $merge_sha_by_pr; - 'pretest_sha_by_pr' = $pretest_sha_by_pr; + 'head_sha_by_pr' = $head_sha_by_pr; + 'pretest_prs' = $pretest_prs; } $submodules += $subm $submodule_by_repo.Add($subm.repo, $subm) @@ -131,19 +139,16 @@ jobs: Write-Host "==============================" Write-Host "Fetching extra data" $core_pretest_pr_nums = @{} - $core_fetch_specs = @() $subm_fetch_specs = @{} foreach ($l in Get-GitRemoteBranches origin 'refs/heads/subm-pretest/*/*/*') { + $sha = $l.sha $subm_owner = $l.matches[1] $subm_name = $l.matches[2] $pr_num = $l.matches[3] $repo = "$subm_owner/$subm_name" Write-Host "- Found core pretest branch for repo $repo PR $pr_num" - $core_pretest_pr_nums[$repo] += @($pr_num) - if ($pr_num -in $submodule_by_repo[$repo].pretest_sha_by_pr.Keys) { - - $core_pretest_branch = "subm-pretest/$repo/$pr_num" - $core_fetch_specs += "refs/heads/${core_pretest_branch}:${core_pretest_branch}" + $core_pretest_pr_nums[$repo] += @{ "$pr_num" = $sha } + if ($pr_num -in $submodule_by_repo[$repo].pretest_prs) { $fork_pretest_branch = "pretest/$pr_num" $subm_fetch_specs[$repo] += @("refs/heads/${fork_pretest_branch}:${fork_pretest_branch}") @@ -154,12 +159,6 @@ jobs: } # To check which pretest branches are up to date and should not be tested # - Only need commit messages, not files - if ($core_fetch_specs) { - Write-Host "- Fetching core branches" - # Write-Host git fetch --depth=1 --no-tags --filter=tree:0 origin $core_fetch_specs - git fetch --depth=1 --no-tags --filter=tree:0 origin $core_fetch_specs - if (-not $?) { throw "git fetch failed" } - } foreach ($repo in $submodule_by_repo.Keys) { if (-not $subm_fetch_specs[$repo]) { continue } Write-Host "- Fetching branches for $repo" @@ -176,35 +175,50 @@ jobs: foreach ($subm in $submodules) { Write-Host "subm: $($subm.name)" - foreach ($pr_num in $subm.merge_sha_by_pr.Keys) { + foreach ($pr_num in $subm.head_sha_by_pr.Keys) { Write-Host "- PR $pr_num" function Is-SkipNeeded() { - if ($pr_num -notin $subm.pretest_sha_by_pr.Keys) { return $false } - if ($pr_num -notin $core_pretest_pr_nums[$subm.repo]) { return $false } + if ($pr_num -notin $subm.pretest_prs) { return $false } + if ($pr_num -notin $core_pretest_pr_nums[$subm.repo].Keys) { return $false } + $extra_debug = $true - function Find-MetaSHA() { - param ($ref, $key) - $pattern = "^meta\.$key=([0-9a-f]{40})$" + $pr_head_sha_found = $false + $core_pretest_sha_found = $false + foreach ($l in git log -1 --pretty=format:"%B" "pretest/$pr_num") { + if ($extra_debug) { + Write-Host "--- $l" + } + if ($l -notmatch '^meta\.(\w+)=([0-9a-f]{40})$') { continue } + $key = $matches[1] + $sha = $matches[2] + if ($extra_debug) { + Write-Host "----- FOUND [$key]: $sha" + } - # Write-Host "--- Looking for commit message lines matching [$pattern]" - $res = @() - foreach ($l in git log -1 --pretty=format:"%B" $ref) { - # Write-Host "----- $l" - if ($l -notmatch $pattern) { continue } - $sha = $matches[1] - # Write-Host "------- FOUND: $sha" - $res += $sha + if ($key -eq 'pr_head_sha') { + + if ($sha -eq $subm.head_sha_by_pr[$pr_num]) { + $pr_head_sha_found = $true + } elseif ($extra_debug) { + Write-Host "----- SHA unexpected" + } + + } elseif ($key -eq 'core_pretest_sha') { + + if ($sha -eq $core_pretest_pr_nums[$subm.repo][$pr_num]) { + $core_pretest_sha_found = $true + } elseif ($extra_debug) { + Write-Host "----- SHA unexpected" + } + + } elseif ($extra_debug) { + Write-Host "----- Key unexpected" } - if (-not $?) { throw "git log failed" } - return $res } - if ($subm.merge_sha_by_pr[$pr_num] -notin (Find-MetaSHA "pretest/$pr_num" 'pr_merge_sha')) { return $false } - if ($subm.pretest_sha_by_pr[$pr_num] -notin (Find-MetaSHA "subm-pretest/$($subm.repo)/$pr_num" 'fork_pretest_sha')) { return $false } - - return $true + return $pr_head_sha_found -and $core_pretest_sha_found } if (Is-SkipNeeded) { continue } @@ -232,17 +246,17 @@ jobs: Write-Host "subm: $($subm.name)" $subm_rem_pretest_pr_nums = @() - foreach ($pr_num in $subm.pretest_sha_by_pr.Keys) { + foreach ($pr_num in $subm.pretest_prs) { Write-Host "- Fork pretest for PR $pr_num" - if ($pr_num -in $subm.merge_sha_by_pr.Keys) { continue } + if ($pr_num -in $subm.head_sha_by_pr.Keys) { continue } $subm_rem_pretest_pr_nums += $pr_num Write-Host "--- REMOVE" } $core_rem_pretest_pr_nums = @() - foreach ($pr_num in $core_pretest_pr_nums[$subm.repo]) { + foreach ($pr_num in $core_pretest_pr_nums[$subm.repo].Keys) { Write-Host "- Core pretest for PR $pr_num" - if ($pr_num -in $subm.merge_sha_by_pr.Keys) { continue } + if ($pr_num -in $subm.head_sha_by_pr.Keys) { continue } $core_rem_pretest_pr_nums += $pr_num } @@ -274,6 +288,7 @@ jobs: - name: git config run: | + git config --global gc.auto 0 git config --global core.autocrlf false git config --global advice.detachedHead false git config --global user.name "sun pack bot" @@ -284,7 +299,7 @@ jobs: uses: actions/checkout@main with: ref: ${{ github.event.repository.default_branch }} - path: './POCGL' + path: './POCGL' # needs to have exactly this name for consistent traces in err tests fetch-depth: 0 - name: checkout subm fork @@ -296,22 +311,6 @@ jobs: repository: ${{ matrix.exec-data.fork_repo }} token: ${{ secrets.POCGL_pretest_upstream_PAT }} - - name: Install OpenCL driver for Intel CPU - run: | - - # https://www.intel.com/content/www/us/en/developer/articles/technical/intel-cpu-runtime-for-opencl-applications-with-sycl-support.html - Invoke-WebRequest -Uri 'https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0e6849e6-2c56-480b-afcf-be8331d5c4f6-opencl/w_opencl_runtime_p_2024.1.0.968.exe' -OutFile 'D:\igfx.exe' - - 7z x "D:\igfx.exe" -o"D:\igfx" -y - - D:\igfx\w_opencl_runtime_p_2024.1.0.968.msi /quiet - - - name: Download and unpack Pascal compiler - run: | - - Invoke-WebRequest -Uri 'https://github.com/SunSerega/pascalabcnet/releases/download/custom-build-tag/PABCNETC.zip' -OutFile 'D:\PABCNETC.zip' - Expand-Archive -Path 'D:\PABCNETC.zip' -DestinationPath 'D:\PABCNETC' -Force - - name: (!) pretest run: | @@ -322,58 +321,116 @@ jobs: + $remote_official = '0_official' + + $b_fork_upstream_main = "$remote_official/main" + $b_fork_main = 'custom' + $b_fork_pretest = "pretest/$pr_num" + + $b_fork_merged_pr_head = "$pr_num/merged_pr_head" # $pr_num/head + main + $b_fork_virgin_merge_test = "$pr_num/virgin_merge_test" # $b_merged_pr_head + custom + + $b_core_main = '${{ github.event.repository.default_branch }}' + $b_core_subm_pretest = "subm-pretest/$org_repo/$pr_num" + + + Write-Host "Updating subm fork..." Push-Location './fork' - git remote add 0_official "git@github.com:${org_repo}.git" - git config --add remote.0_official.fetch '+refs/pull/*:refs/remotes/0_official/pull/*' + git remote add $remote_official "git@github.com:${org_repo}.git" + git config --add "remote.$remote_official.fetch" "+refs/pull/*:refs/remotes/$remote_official/pull/*" git fetch --all 2>&1 | Out-Null - $fork_main_branch_name = 'custom' - $fork_branch_name = "pretest/$pr_num" - if (&{ git show-ref --verify -q "refs/remotes/origin/$fork_branch_name"; $? }) { - Write-Host "Branch for PR $pr_num exists" - git checkout $fork_branch_name + Write-Host "- Creating $b_fork_merged_pr_head" + git checkout "remotes/$remote_official/pull/$pr_num/head" + if (-not $?) { throw "git checkout failed" } + git checkout -b $b_fork_merged_pr_head + if (-not $?) { throw "git checkout -b failed" } + + Write-Host "--- Merging with ${b_fork_upstream_main}:" + git merge $b_fork_upstream_main + if (-not $?) { + Write-Host "git merge failed" + Write-Host "This PR is outdated and cannot be properly tested" + exit 0 + } + + Write-Host "- Creating $b_fork_virgin_merge_test" + git checkout -b $b_fork_virgin_merge_test + if (-not $?) { throw "git checkout -b failed" } + $virgin_merge_test_exists = $true + + Write-Host "--- Merging with ${b_fork_main}:" + git merge $b_fork_main + if (-not $?) { + Write-Host "git merge $b_fork_main failed" + Write-Host "Cannot create $b_fork_virgin_merge_test" + $virgin_merge_test_exists = $false + git reset --hard + if (-not $?) { throw "git reset failed" } + } + + if (&{ git show-ref --verify -q "refs/remotes/origin/$b_fork_pretest"; $? }) { + Write-Host "- Branch for PR $pr_num exists" + git checkout $b_fork_pretest - Write-Host "Merging latest commits from PR $pr_num" - git merge "remotes/0_official/pull/$pr_num/merge" + Write-Host "--- Merging with PR head:" + git merge "remotes/$remote_official/pull/$pr_num/head" if (-not $?) { throw "git merge failed" } - git push - if (-not $?) { throw "git push failed" } + + Write-Host "--- Merging with ${b_fork_upstream_main}:" + git merge $b_fork_upstream_main + if (-not $?) { throw "git merge failed" } + + Write-Host "--- Merging with ${b_fork_main}:" + git merge $b_fork_main + if (-not $?) { throw "git merge failed" } + + $need_push = $true + if ($virgin_merge_test_exists) { + Write-Host "--- Diff with ${b_fork_virgin_merge_test}:" + git diff HEAD $b_fork_virgin_merge_test --exit-code + if (-not $?) { + Write-Host "----- Diff found, building on top" + } else { + Write-Host "----- Diff not found, resetting branch" + git reset --hard $b_fork_virgin_merge_test + if (-not $?) { throw "git reset failed" } + git push -f + if (-not $?) { throw "git push -f failed" } + $need_push = $false + } + } + + if ($need_push) { + git push + if (-not $?) { throw "git push failed" } + } } else { - Write-Host "Branch for PR $pr_num doesn't exist" - git checkout "remotes/0_official/pull/$pr_num/merge" - if (-not $?) { throw "git checkout failed" } + Write-Host "- Branch for PR $pr_num doesn't exist" + + if (-not $virgin_merge_test_exists) { + git checkout $b_fork_merged_pr_head + if (-not $?) { throw "git checkout failed" } + git checkout -b $b_fork_pretest + if (-not $?) { throw "git checkout -b failed" } + git push --set-upstream origin $b_fork_pretest + if (-not $?) { throw "git push failed" } + throw "Branch $b_fork_virgin_merge_test was not created, so merge with $b_fork_main is not possible" + } - Write-Host "Creating:" - git checkout -b $fork_branch_name + Write-Host "--- Creating:" + git checkout $b_fork_virgin_merge_test + if (-not $?) { throw "git checkout failed" } + git checkout -b $b_fork_pretest if (-not $?) { throw "git checkout -b failed" } - git push --set-upstream origin $fork_branch_name + + git push --set-upstream origin $b_fork_pretest if (-not $?) { throw "git push failed" } } - Write-Host "Merging with 0_official/main:" - git merge 0_official/main - if (-not $?) { - Write-Host "git merge failed" - Write-Host "This PR is outdated and cannot be properly tested" - exit 0 - } - git push - if (-not $?) { throw "git push failed" } - - Write-Host "Merging with ${fork_main_branch_name}:" - $pr_merge_sha = git rev-parse remotes/0_official/pull/$pr_num/merge - git merge $fork_main_branch_name --no-ff --commit -m @" - Merge $fork_main_branch_name into $fork_branch_name - meta.pr_merge_sha=$pr_merge_sha - "@ - if (-not $?) { throw "git merge failed" } - git push - if (-not $?) { throw "git push failed" } - - $fork_pretest_sha = git rev-parse HEAD Pop-Location @@ -382,41 +439,114 @@ jobs: Push-Location './POCGL' git fetch --all 2>&1 | Out-Null - $core_main_branch_name = '${{ github.event.repository.default_branch }}' - $core_branch_name = "subm-pretest/$org_repo/$pr_num" - if (&{ git show-ref --verify -q "refs/remotes/origin/$core_branch_name"; $? }) { - Write-Host "Branch for PR $pr_num exists. Merging with ${core_main_branch_name}:" - git checkout $core_branch_name + if (&{ git show-ref --verify -q "refs/remotes/origin/$b_core_subm_pretest"; $? }) { + Write-Host "- Branch for PR $pr_num exists" + git checkout $b_core_subm_pretest if (-not $?) { throw "git checkout failed" } - git merge $core_main_branch_name -m "[trivial] Merge $core_branch_name into subm-pretest/... branch" + + $need_force_push = $false + Write-Host "--- Deleting the latest [trivial] commits:" + while ($true) { + ($commit_name = (git log -1 --pretty=format:"%B" HEAD) -join "`n") + if (-not $?) { throw "git log failed" } + if (-not $commit_name.Contains("[trivial]")) { break } + Write-Host "=====" + git reset --hard HEAD~1 + if (-not $?) { throw "git reset failed" } + $need_force_push = $true + } + if ($need_force_push) { + git push -f + if (-not $?) { throw "git push -f failed" } + } + + # expecting fast-forward when possible + Write-Host "--- Merging with ${b_core_main}:" + git merge $b_core_main -m "[trivial] Merge $b_core_main into subm-pretest/..." if (-not $?) { throw "git merge failed" } git push if (-not $?) { throw "git push failed" } + } else { - Write-Host "Branch for PR $pr_num doesn't exist. Creating:" - git checkout -b $core_branch_name + Write-Host "- Branch for PR $pr_num doesn't exist" + + Write-Host "--- Creating:" + git checkout -b $b_core_subm_pretest if (-not $?) { throw "git checkout -b failed" } - git push --set-upstream origin $core_branch_name + git push --set-upstream origin $b_core_subm_pretest if (-not $?) { throw "git push failed" } + } - & .\DeleteAllTemp.bat NoPause | Out-Null + $core_pretest_sha = git rev-parse HEAD + if (-not $?) { throw "git rev-parse failed" } + Pop-Location - Write-Host "Compile: " -NoNewline - Start-Process -FilePath 'D:\PABCNETC\pabcnetcclear.exe' -ArgumentList '"PackAll.pas"' -Wait -NoNewWindow - & .\PackAll.exe "Stages= PullUpstream + Reference + Dummy + OpenCL+OpenCLABC + OpenGL+OpenGLABC + Compile + Test + Release" "PullUpstreamBranch=${subm_name}:${fork_branch_name}" "PasCompPath=D:\PABCNETC\pabcnetcclear.exe" SkipFinishedPause - if (-not $?) { throw "PackAll failed" } - git commit -a --allow-empty -m @" - [trivial] test changes - meta.fork_pretest_sha=$fork_pretest_sha + Write-Host "Adding meta to fork repo..." + Push-Location './fork' + + $pr_head_sha = git rev-parse "remotes/0_official/pull/$pr_num/head" + if (-not $?) { throw "git rev-parse failed" } + + git commit --allow-empty -m @" + Add pretest meta + meta.pr_head_sha=$pr_head_sha + meta.core_pretest_sha=$core_pretest_sha "@ if (-not $?) { throw "git commit failed" } git push if (-not $?) { throw "git push failed" } Pop-Location + + + + & { + Write-Host "Installing OpenCL driver for Intel CPU" + + # https://www.intel.com/content/www/us/en/developer/articles/technical/intel-cpu-runtime-for-opencl-applications-with-sycl-support.html + Invoke-WebRequest -Uri 'https://registrationcenter-download.intel.com/akdlm/IRC_NAS/0e6849e6-2c56-480b-afcf-be8331d5c4f6-opencl/w_opencl_runtime_p_2024.1.0.968.exe' -OutFile 'D:\igfx.exe' + + 7z x "D:\igfx.exe" -o"D:\igfx" -y + + D:\igfx\w_opencl_runtime_p_2024.1.0.968.msi /quiet + } + + & { + Write-Host "Downloading and unpacking Pascal compiler" + + Invoke-WebRequest -Uri 'https://github.com/SunSerega/pascalabcnet/releases/download/custom-build-tag/PABCNETC.zip' -OutFile 'D:\PABCNETC.zip' + + Expand-Archive -Path 'D:\PABCNETC.zip' -DestinationPath 'D:\PABCNETC' -Force + } + + + + Write-Host "Testing main repo..." + Push-Location './POCGL' + + & .\DeleteAllTemp.bat NoPause | Out-Null + + Write-Host "- Compile: " -NoNewline + Start-Process -FilePath 'D:\PABCNETC\pabcnetcclear.exe' -ArgumentList '"PackAll.pas"' -Wait -NoNewWindow + + & .\PackAll.exe "Stages= PullUpstream + Reference + Dummy + OpenCL+OpenCLABC + OpenGL+OpenGLABC + Compile + Test + Release" "PullUpstreamBranch=${subm_name}:${b_fork_pretest}" "PasCompPath=D:\PABCNETC\pabcnetcclear.exe" SkipFinishedPause + if (-not $?) { throw "PackAll failed" } + + $need_commit = (git diff --name-only ":!LastPack.log" ":!Log/PullUpstream.log" ":!DataScraping/Reps") -or (git ls-files --others --exclude-standard) + if ($need_commit) { + Write-Host "- Found significant changes" + + git commit -a -m '[trivial] test changes' + if (-not $?) { throw "git commit failed" } + git push + if (-not $?) { throw "git push failed" } + + } + + Pop-Location remove-old-pretest: runs-on: windows-latest @@ -431,18 +561,28 @@ jobs: - name: git config run: | + git config --global gc.auto 0 git config --global core.autocrlf false git config --global user.name "sun pack bot" git config --global user.email "sunserega2@gmail.com" git config --global --add url.https://github.com/.insteadOf "git@github.com:" + - name: checkout main repo + uses: actions/checkout@main + with: + path: './POCGL' + fetch-depth: 0 + sparse-checkout-cone-mode: false + sparse-checkout: '.gitmodules' + - name: checkout subm fork uses: actions/checkout@main with: - repository: ${{ matrix.remove-data.fork_repo }} - token: ${{ secrets.POCGL_pretest_upstream_PAT }} + path: './fork' sparse-checkout-cone-mode: false sparse-checkout: '' + repository: ${{ matrix.remove-data.fork_repo }} + token: ${{ secrets.POCGL_pretest_upstream_PAT }} - name: (!) remove old pretest branches run: | @@ -460,16 +600,7 @@ jobs: - $main_repo_dir = './core' - New-Item -ItemType Directory -Path $main_repo_dir | Out-Null - Push-Location $main_repo_dir - $main_repo_url = '${{ github.server_url }}/${{ github.repository }}' - $main_repo_branch = '${{ github.event.repository.default_branch }}' - Write-Host "Cloning main repo [$main_repo_url]: branch [$main_repo_branch]" - git clone -b $main_repo_branch --filter=tree:0 --no-progress --no-checkout $main_repo_url . - if (-not $?) { throw "git clone failed" } - - # git branch -r + Push-Location './POCGL' $core_removed_pr_nums = @() foreach ($pr_num in $core_pretest_pr_nums) { @@ -496,11 +627,15 @@ jobs: Pop-Location + + $core_pretest_pr_nums = $core_pretest_pr_nums | Where-Object { $_ -notin $core_removed_pr_nums } + Push-Location './fork' + foreach ($pr_num in $subm_pretest_pr_nums) { Write-Host "PR $pr_num was closed" if ($core_pretest_pr_nums -contains $pr_num) { @@ -513,6 +648,10 @@ jobs: Write-Host '~~~~~' } + Pop-Location + + + if ($core_pretest_pr_nums) { Write-Host "pretest branches for these PRs are dangling:" foreach ($pr_num in $core_pretest_pr_nums) { diff --git a/DataScraping/Reps/OpenCL-Docs b/DataScraping/Reps/OpenCL-Docs index 9b0faab5..bfd9a606 160000 --- a/DataScraping/Reps/OpenCL-Docs +++ b/DataScraping/Reps/OpenCL-Docs @@ -1 +1 @@ -Subproject commit 9b0faab5f3dda08812ae7a72b7fc93d30b4f8d02 +Subproject commit bfd9a60641f1ae1df597ab429dfac527c209108d diff --git a/Delete subm pretest branches.ps1 b/Delete subm pretest branches.ps1 index 3c8327e9..25278787 100644 --- a/Delete subm pretest branches.ps1 +++ b/Delete subm pretest branches.ps1 @@ -1,4 +1,4 @@ -try { +try { function Delete-Branches { param ( @@ -15,6 +15,8 @@ try { foreach ($branch in git branch -r --list "$remote/$pattern") { $branch = $branch.Trim().SubString($remote.Length+1) Write-Host "Deleting branch: $branch" + if ($branch.EndsWith('1159')) { continue } + if ($branch.EndsWith('1215')) { continue } $branch_del += $branch } git push $remote --delete $branch_del diff --git a/LastPack.log b/LastPack.log index 2f33e132..c1bce31d 100644 --- a/LastPack.log +++ b/LastPack.log @@ -199,19 +199,10 @@ Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: F Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: Func [cl::GetAcceleratorInfo + INTEL] could not generate overload: no output type info for Group [cl::AcceleratorInfo] Enum [cl::ACCELERATOR_DESCRIPTOR] Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: Dumping Feature items Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::CompileProgram] -Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueFillBuffer] -Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueMapImage] Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueMigrateMemObjects] -Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueNativeKernel] -Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 30>12 overloads of non-fixed Func [cl::EnqueueNDRangeKernel] -Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueReadBuffer] Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMFree] -Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMMemFill] -Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMMigrateMem] -Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueWriteBuffer] Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: Dumping Extension items Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMFree + ARM] -Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueSVMMemFill + ARM] Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueMigrateMemObject + EXT] Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 30>12 overloads of non-fixed Func [cl::EnqueueGenerateMipmap + IMG] Template[OpenCL]: TemplateCommand[LowLvl/OpenCL/Pack Essentials.exe]: WARNING: 18>12 overloads of non-fixed Func [cl::EnqueueAcquireGrallocObjects + IMG]