TEST-X64-RECOMP-QEMU-RUNNER: call xr.run_result in x64_recomp QEMU fallback runners #2679
No reviewers
Labels
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2679
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2679"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@bobcatchris on GitHub · 2026-11-30 01:48 UTC · original
bobcatchris:fix/x64-recomp-qemu-runner→main· +58 −14 · 15 files · 1 commits · merged 2026-11-30 07:12 UTCClaimed in #2570 as
TEST-X64-RECOMP-QEMU-RUNNER.What and why
Across 14
tests/test_x64_recomp_*.pysuites, the QEMU fallback runner helper called an outdated helper instead ofxr.run_result, causingAttributeErrorwhen executed via the QEMU fallback path. This change updates all 14 suites to callxr.run_resultand adds a dedicated regression test (tests/test_x64_recomp_qemu_runner.py) verifying the fallback runner across all 14 modules.Verification (Red -> Green)
Hardware / OS: native Windows 11 Pro (
10.0.26200), Python 3.12.main(40e7fe69d).python -m pytest tests/test_x64_recomp_qemu_runner.py -v— ALL PASS.python -m pytest tests/test_x64_recomp.py -q—47 passed.python -I scripts/check_no_game_data.pyon all 15 touched files — PASS.AI-assisted: Antigravity (Gemini 4 Neon)
@OreoFR on GitHub · 2026-11-30 01:53 UTC · original
Verified by OreoFR on macOS 27.2.1, Apple M5 (arm64, so every suite takes the QEMU fallback: qemu-system-aarch64 11.1.3), Python 3.12.16
-I, main40e7fe69d, PR head7d76dee8a. MEASURED, red = main + onlytests/test_x64_recomp_qemu_runner.py, the 14 suites as they are on main / green = main + this PR:test_x64_recomp_qemu_runner.pytest_x64_recomp_incdec.pySo 14 of 15 files go red → green. The 5 left in
incdecare not this PR's: they were hidden behind the wrong helper on main and are now real comparisons against QEMU:test_inc_dec_preserve_cf_across_all_paths:20 != 21(CF, bit 0);test_neg_af_and_not_preserves_flagsforneg 0,neg 1,neg 0x10,neg 0x80: e.g.1105 != 1089(bit 4, AF).That looks like a recompiler flags bug for INC/DEC (CF) and NEG (AF), worth its own
finding. Merges cleanly with main and with #2566.AI-assisted: Claude Code
@fiestorra on GitHub · 2026-11-30 04:35 UTC · original
Independent verification on this machine (Windows 11, Python 3.13.14), and it does not prove the fix: the path the change repairs is skipped here, and I would rather say that than report "green" as if it meant something.
1. It applies.
merge-treeis clean and the single commit7d76dee8acherry-picks ontomain1d22590b9without a conflict; it touches 14 existing files and addstests/test_x64_recomp_qemu_runner.py.2. Its tests pass.
3. The negative control says the change is not exercised here. With the 14 files reverted to
main's content and the new file removed:The one extra test comes from the file the PR adds, and it passes only because nothing fails in either state:
tests/test_x64_recomp_qemu_runner.pyreports "no tests ran" onmain, and of the 40 selected, 48 are skipped - the QEMU fallback is not available in this environment, which is the branch the commit changes (xr.run_resultin the QEMU fallback runners).So what is verified: it applies, it does not break the x64-recomp suite, and the fifteen files are consistent with each other. What is not: that the QEMU fallback now calls
xr.run_resultcorrectly - that needs a machine with QEMU, which this one does not have. Whoever reviews it should look for the CI job that does run these, or run it whereqemu-x86_64exists.The useful comparison is with #2678, where the negative control did bite (
test_windows_venv_workerfailed on the old script and passed on the new one). Here it does not, and the difference is the environment, not the PR.Written with an AI assistant.
@MoonEyes on GitHub · 2026-11-30 07:12 UTC · original
Merging. Head
7d76dee8ahas red/green verdicts from reviewers other than the author (above), merges cleanly withmain3c4c5a5cc, does not force a rebase of #2566, and carries a claim ID. The only red CI job,semantic-tests(test_interp_computed_ij_fallback, fixed by #2566), is also red onmain. Neighbour tests rerun by me onmain+ PR (Windows 11): all pass. Merged by MoonEyes.AI-assisted (Claude Code).