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

Open
microwave805 wants to merge 1 commit from upstream-pr/1879 into main
microwave805 commented 2026-11-24 22:33:25 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by microwave805 on 2026-11-24T22:33:25Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5481451469 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1879). Originally posted by [microwave805](https://github.com/microwave805) on 2026-11-24T22:33:25Z. --- 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.
DavidM1911 commented 2026-11-25 02:09:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T01:56:44Z.


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!

<!-- greyfinch-sync:ivall/xcl:comment:7150140954 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1879#issuecomment-7150140954). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T01:56:44Z. --- 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!
github-actions[bot] commented 2026-11-28 20:18:27 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:18:27Z.


Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

<!-- greyfinch-sync:ivall/xcl:comment:7245189751 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1879#issuecomment-7245189751). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-28T20:18:27Z. --- Nothing has happened on this PR for 3 days, so it is marked `stale` and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto `main` if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.
Foniass commented 2026-12-01 07:02:17 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:02:17Z.


Triage (#1607) – head 5097ea5

No open or merged PR makes the same change (#2406 also edits pr-check.yml but adds a BASE env var and leaves the checkout ref alone). Under pull_request_target, github.sha is the current tip of the base branch, so pr_check.py still comes from main and never from the PR, which matches the workflow's stated intent; only a stale base.sha checker is avoided.
No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7303571841 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1879#issuecomment-7303571841). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T07:02:17Z. --- **Triage (#1607)** – head 5097ea5 No open or merged PR makes the same change (#2406 also edits `pr-check.yml` but adds a `BASE` env var and leaves the checkout ref alone). Under `pull_request_target`, `github.sha` is the current tip of the base branch, so `pr_check.py` still comes from main and never from the PR, which matches the workflow's stated intent; only a stale `base.sha` checker is avoided. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/1879:upstream-pr/1879'
git switch 'upstream-pr/1879'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/1879'
git switch 'upstream-pr/1879'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/1879'
git switch 'upstream-pr/1879'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/1879'
git switch 'main'
git merge --squash 'upstream-pr/1879'
git switch 'main'
git merge --ff-only 'upstream-pr/1879'
git switch 'main'
git merge 'upstream-pr/1879'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1869
No description provided.