6 Commits

Author SHA1 Message Date
Bloxive b74867be73 CI: allow reviewed test-only diffs without retail smoke (#452)
Use the maintainer label event for the checked PR snapshot and verify it against live metadata. Keep the regular smoke requirement for later revisions and preserve the description and asset checks.
2026-11-23 21:54:28 -04:00
ivall 0e946cfc68 PR checks: only the PR's own run must be clean, main's run must be from main; game data refused
From a review of the check: it looked for crashes and device removals anywhere in the
description, so a PR fixing a crash on main failed on main's run, and nothing made the two
runs come from different commits. The checker is now scripts/pr_check.py: the PR's xcl-smoke
block must be its head commit with no uncommitted changes, the other a commit on main (the
compare API), both of the same title for the same time; crashes and device removals count in
the PR's run only, which must keep 80 % of main's frames and stay under 125 % of its peak
commit.

The workflow runs as pull_request_target with main's checker: a PR can no longer change what
checks it, and nothing of the PR is checked out or run (only its description and file list are
read through the API).

Game data: .gitignore keeps game packages, archives, executables, video, audio banks,
textures and dumps out, and the check refuses a PR adding one, a MicrosoftGame.config other
than the test title's, or any binary outside tests/data/ or over 1 MB.
2026-11-23 23:39:22 +01:00
ivall 9ab7d76319 Docs: no PRs written with small or open-weight models; PR checks refuses them in AI use
XCL is low-level code (a recompiler, a console runtime, D3D12 memory and synchronisation):
small and local models get it subtly wrong, and every wrong PR costs a review. CONTRIBUTING.md
and AGENTS.md: code comes from frontier models; PRs written with Qwen, DeepSeek, Llama,
Mistral, Gemma, Phi or their distills are closed without a review. The PR checks workflow
refuses a description whose AI use names one of them (and now reads CRLF descriptions).
2026-11-23 23:00:23 +01:00
ivall 63b9930636 Docs: what a PR needs to be merged - tests run, a regression run on a title, checked by PR checks
CONTRIBUTING.md gets the merge requirements: both required checks green (CI, PR checks), the
whole suite run on a GPU with its counts, and for a runtime change (crates/xcl/src outside
tests) two xcl-smoke blocks from scripts/smoke.ps1 - built from main and from the PR's head
commit with no uncommitted changes - with no device removal or crash. The maintainer runs the
suite and a retail title again on every merged batch.

- scripts/smoke.ps1: runs a title for a fixed time (network off, XCL_ACTIVITY) and prints the
  xcl-smoke block: commit, GPU, exit, frames shown, presents, device removals, crashes, peak
  commit.
- .github/pull_request_template.md: Tested / Regression run / Not tested / AI use.
- .github/workflows/pr-check.yml: refuses a description without those sections, and a runtime
  change without a smoke block made on the PR's head commit.
- AGENTS.md / CLAUDE.md (from #212): the same rules for agents; AI use is disclosed in the PR's
  AI use section, a commit trailer is not required.
2026-11-23 22:56:29 +01:00
Tiago Leal 20a35f0fd7 CI: the test title's run left out (no Gaming Services, no GPU on the runner); test.ps1 passes its arguments to the tests 2026-11-23 15:01:10 +00:00
Tiago Leal 0b89bdf0c0 CI: build and test on a Windows runner (no GPU) 2026-11-23 14:56:10 +00:00