PR checks: a rename out of runtime still needs smoke runs #952

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

@⁠vedantdadhich21 on GitHub · 2026-11-24 09:25 UTC · original
vedantdadhich21:scripts/check-renamed-runtime → main · +60 −5 · 3 files · 1 commits · open

The PR checker decided whether smoke runs were required from only the destination path of each changed file. The Files API row discarded previous_filename, so renaming a runtime file into tests/ or docs/ made the change look non-runtime and bypassed the regression-run gate without maintainer approval.

What is in it

  • .github/workflows/pr-check.yml: retain GitHub's previous_filename as an optional fifth TSV column.
  • scripts/pr_check.py: represent the old side of a rename as a removed entry. Removed files remain part of the runtime scan but are still skipped by the game-data/binary checks. Four-column local TSV input remains supported.
  • scripts/test_pr_check.py: cover runtime-to-tests renames, the --test-only waiver, docs renames, legacy four-column input, and renaming game data out of the repository.

Tested

  • macOS arm64 (Darwin 27), Python 3.13.5, commit 47c120d649490c4acce3ad528e2d9ad242e3c45d, rebased onto current main.
  • python3 -B -m unittest discover -s scripts -p 'test_pr_check.py' -v: 13 passed, 0 failed, including the existing smoke-block, template-placeholder, and runtime-build-input tests.
  • Before the fix, test_rename_out_of_runtime_still_requires_smoke failed because the CLI printed description ok.
  • After the fix, the same synthetic rename exits 1 with both missing-regression-run errors; --test-only exits 0.
  • python3 -B -m py_compile scripts/pr_check.py scripts/test_pr_check.py: passed.
  • git diff --check origin/main...HEAD: passed.

Regression run

  • Not a runtime change; crates/xcl/src is untouched.

Not tested

  • The Rust workspace and GPU suite: this change is Python/workflow-only and the machine is macOS.
  • The GitHub PR checks workflow itself.

AI use

  • HungerG, an AI coding assistant (underlying model not disclosed): found the gap, wrote the fix and tests, ran the commands above, and drafted this description.
**@⁠vedantdadhich21** on GitHub · 2026-11-24 09:25 UTC · [original](https://github.com/xcl-dev/xcl/pull/952) `vedantdadhich21:scripts/check-renamed-runtime` → `main` · +60 −5 · 3 files · 1 commits · open The PR checker decided whether smoke runs were required from only the destination path of each changed file. The Files API row discarded `previous_filename`, so renaming a runtime file into `tests/` or `docs/` made the change look non-runtime and bypassed the regression-run gate without maintainer approval. **What is in it** - `.github/workflows/pr-check.yml`: retain GitHub's `previous_filename` as an optional fifth TSV column. - `scripts/pr_check.py`: represent the old side of a rename as a removed entry. Removed files remain part of the runtime scan but are still skipped by the game-data/binary checks. Four-column local TSV input remains supported. - `scripts/test_pr_check.py`: cover runtime-to-tests renames, the `--test-only` waiver, docs renames, legacy four-column input, and renaming game data out of the repository. **Tested** - macOS arm64 (Darwin 27), Python 3.13.5, commit `47c120d649490c4acce3ad528e2d9ad242e3c45d`, rebased onto current `main`. - `python3 -B -m unittest discover -s scripts -p 'test_pr_check.py' -v`: 13 passed, 0 failed, including the existing smoke-block, template-placeholder, and runtime-build-input tests. - Before the fix, `test_rename_out_of_runtime_still_requires_smoke` failed because the CLI printed `description ok`. - After the fix, the same synthetic rename exits 1 with both missing-regression-run errors; `--test-only` exits 0. - `python3 -B -m py_compile scripts/pr_check.py scripts/test_pr_check.py`: passed. - `git diff --check origin/main...HEAD`: passed. **Regression run** - Not a runtime change; `crates/xcl/src` is untouched. **Not tested** - The Rust workspace and GPU suite: this change is Python/workflow-only and the machine is macOS. - The GitHub `PR checks` workflow itself. **AI use** - HungerG, an AI coding assistant (underlying model not disclosed): found the gap, wrote the fix and tests, ran the commands above, and drafted this description.
The Files API row discarded previous_filename, so moving a runtime file into tests/ or docs/ made the destination look non-runtime and bypassed the regression-run gate. Carry the old path as a removed entry: asset checks still skip removals, while the runtime scan keeps them. Four-column local TSV input remains supported.

Assisted-by: HungerG
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:38:13 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 12:40 UTC · original

Independent verification on current main 384f7f7 (branch already contains it — clean).

Machine: Windows 11, Ryzen 9 7900X; Python 3.

  • python scripts/test_pr_check.py: 13 tests OK — including the new rename-out-of-runtime cases.
  • Logic check: for status == "renamed" with a previous path, a synthetic (previous, "removed", …) entry is appended, so runtime(previous) still triggers the smoke-run requirement when runtime code moves out of crates/xcl/src. The len(parts) >= 5 guard keeps old 4-column files.tsv working.

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

**@⁠DavidM1911** on GitHub · 2026-11-24 12:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/952#issuecomment-7131775526) Independent verification on current `main` `384f7f7` (branch already contains it — clean). **Machine:** Windows 11, Ryzen 9 7900X; Python 3. - `python scripts/test_pr_check.py`: **13 tests OK** — including the new rename-out-of-runtime cases. - Logic check: for `status == "renamed"` with a previous path, a synthetic `(previous, "removed", …)` entry is appended, so `runtime(previous)` still triggers the smoke-run requirement when runtime code moves out of `crates/xcl/src`. The `len(parts) >= 5` guard keeps old 4-column files.tsv working. AI use: test runs by Devin (Cognition, SWE-2); no code changes.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 13:51 UTC · original

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

  • scripts/test_pr_check.py: 13 tests OK, 0 failed.

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-24 13:51 UTC · [original](https://github.com/xcl-dev/xcl/pull/952#issuecomment-7133439774) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - scripts/test_pr_check.py: 13 tests OK, 0 failed. Thanks!
Author
Owner

@⁠futurepro62 on GitHub · 2026-11-24 14:15 UTC · original

Tested exact head 47c120d, script tests only, since this PR has no test report yet.

Tested

  • Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here).
  • python -m pytest scripts/test_pr_check.py at the head: 13 passed.
  • The PR's test file(s) against current main's script (930e8b4): 1 failed: test_rename_out_of_runtime_still_requires_smoke. So the new test catches the problem the PR fixes.

Not tested

  • PowerShell 7, the CI workflow itself, a game (no runtime code changed).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
**@⁠futurepro62** on GitHub · 2026-11-24 14:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/952#issuecomment-7134076646) Tested exact head `47c120d`, script tests only, since this PR has no test report yet. **Tested** - Windows 11 Home 26300, Python 3.14.3 with pytest 9.0.3, Windows PowerShell 5.1.26100.9818 (no PowerShell 7 here). - `python -m pytest scripts/test_pr_check.py` at the head: 13 passed. - The PR's test file(s) against current main's script (`930e8b4`): 1 failed: `test_rename_out_of_runtime_still_requires_smoke`. So the new test catches the problem the PR fixes. **Not tested** - PowerShell 7, the CI workflow itself, a game (no runtime code changed). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-26 03:11 UTC · original

Re-verification on RTX 3060 Ti (Windows 11), new head merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.

Thanks!

— Devin

**@⁠DavidM1911** on GitHub · 2026-11-26 03:11 UTC · [original](https://github.com/xcl-dev/xcl/pull/952#issuecomment-7181477349) Re-verification on RTX 3060 Ti (Windows 11), new head merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved. Thanks! — Devin
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/952/head:github-bot/gh-952'
git switch 'github-bot/gh-952'

Merge

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