PR checks: check out scripts/pr_check.py from github.sha #1879

Open
github-bot wants to merge 1 commit from github-bot/gh-1879 into main AGit
Owner

@⁠microwave805 on GitHub · 2026-11-24 22:33 UTC · original
microwave805:ci-pr-check-checkout-sha → main · +1 −1 · 1 files · 1 commits · open

Under pull_request_target, GitHub runs .github/workflows/pr-check.yml from the current tip of the base branch (github.sha), while github.event.pull_request.base.sha stays pinned to the PR's older base commit until the PR is updated. Checking out scripts/pr_check.py from base.sha ran an older version of the checker against newer workflow YAML, bypassing pr_check.py rules merged onto main after the PR opened and risking CLI flag skew (such as --test-only).

What is in it

  • .github/workflows/pr-check.yml: check out ref: ${{ github.sha }} instead of ref: ${{ github.event.pull_request.base.sha }} so the workflow YAML and scripts/pr_check.py always come from the same base-branch commit.

Tested

  • Hardware / toolchain: NVIDIA GeForce RTX 3070 (driver 32.0.16.1742), AMD Ryzen 5 5600X, Windows 11 Pro build 22631, Rust 1.100.0 (stable-x86_64-pc-windows-msvc), DXC 1.9.2602.17, debug build.
  • .\scripts\test.ps1 on exact head 5097ea5: 975 passed, 0 failed, 45 ignored (23 GPU tests SKIPPED on this adapter: 18 wave64 skips — 7 standalone no wave64 + 11 wave64 subcases — 3 pre-existing per-lane #1426 diffs, 1 no heap windows, 1 driver-cache disable requiring Windows Developer Mode; XCL_SAMPLE_* env vars unset).

Regression run
Not needed: this PR changes only .github/workflows/pr-check.yml (no runtime code under crates/xcl/src).

Not tested

  • A live GitHub Actions pull_request_target workflow trigger on xcl-dev/xcl after merge.
  • AMD / Intel / native wave64 GPUs, Linux / Wine, and XCL_SAMPLE_* game-data tests.

AI use

  • Antigravity (Gemini 4 Neon): spotted the pull_request_target ref mismatch, wrote the 1-line workflow fix, ran .\scripts\test.ps1 on 5097ea5, and drafted this description.
**@⁠microwave805** on GitHub · 2026-11-24 22:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/1879) `microwave805:ci-pr-check-checkout-sha` → `main` · +1 −1 · 1 files · 1 commits · open Under `pull_request_target`, GitHub runs `.github/workflows/pr-check.yml` from the current tip of the base branch (`github.sha`), while `github.event.pull_request.base.sha` stays pinned to the PR's older base commit until the PR is updated. Checking out `scripts/pr_check.py` from `base.sha` ran an older version of the checker against newer workflow YAML, bypassing `pr_check.py` rules merged onto `main` after the PR opened and risking CLI flag skew (such as `--test-only`). **What is in it** - `.github/workflows/pr-check.yml`: check out `ref: ${{ github.sha }}` instead of `ref: ${{ github.event.pull_request.base.sha }}` so the workflow YAML and `scripts/pr_check.py` always come from the same base-branch commit. **Tested** - Hardware / toolchain: NVIDIA GeForce RTX 3070 (driver `32.0.16.1742`), AMD Ryzen 5 5600X, Windows 11 Pro build 22631, Rust `1.100.0` (`stable-x86_64-pc-windows-msvc`), DXC `1.9.2602.17`, debug build. - `.\scripts\test.ps1` on exact head `5097ea5`: **975 passed, 0 failed, 45 ignored** (`23` GPU tests `SKIPPED` on this adapter: 18 wave64 skips — 7 standalone `no wave64` + 11 wave64 subcases — 3 pre-existing per-lane `#1426` diffs, 1 `no heap windows`, 1 driver-cache disable requiring Windows Developer Mode; `XCL_SAMPLE_*` env vars unset). **Regression run** Not needed: this PR changes only `.github/workflows/pr-check.yml` (no runtime code under `crates/xcl/src`). **Not tested** - A live GitHub Actions `pull_request_target` workflow trigger on `xcl-dev/xcl` after merge. - AMD / Intel / native wave64 GPUs, Linux / Wine, and `XCL_SAMPLE_*` game-data tests. **AI use** - Antigravity (Gemini 4 Neon): spotted the `pull_request_target` ref mismatch, wrote the 1-line workflow fix, ran `.\scripts\test.ps1` on `5097ea5`, and drafted this description.
Under pull_request_target, GitHub executes .github/workflows/pr-check.yml from the current tip of the base branch (github.sha), while github.event.pull_request.base.sha remains pinned to the PR's older base commit until the PR is updated.

Checking out scripts/pr_check.py from base.sha ran an outdated copy of the checker against newer workflow YAML, silently bypassing any pr_check.py rules merged onto main after the PR was opened (and risking CLI flag skew such as --test-only). Use github.sha so the workflow and scripts/pr_check.py always come from the same base-branch commit.

Assisted-by: Antigravity (Gemini 4 Neon)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:08:22 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 01:56 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 01:56 UTC · [original](https://github.com/xcl-dev/xcl/pull/1879#issuecomment-7150140954) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1879/head:github-bot/gh-1879'
git switch 'github-bot/gh-1879'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1879'
git switch 'github-bot/gh-1879'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1879'
git switch 'github-bot/gh-1879'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1879'
git switch 'main'
git merge --squash 'github-bot/gh-1879'
git switch 'main'
git merge --ff-only 'github-bot/gh-1879'
git switch 'main'
git merge 'github-bot/gh-1879'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.