tests: run repeated CLI checks in-process in dxil_retarget_check #1633
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1640"
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?
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-24T15:34:06Z.
Summary
tools/dxil_retarget.pyto acceptargv: list[str] | None = Noneinmain(), delegating execution to_run_cli(args, parser)and catching(OSError, ValueError)insidemain()with exit code1and formattedstderroutput matching CLI behavior.tests/dxil_retarget_check.py(--extract-module, 5 invalid-argument checks, 3 damaged-input checks, missing-input check, and--pso-probewithout--probe) to an in-process_run_cli()helper with CPythonSystemExit(None | int | str)semantics.subprocess.check_outputsmoke test for the main DXBC retargeting CLI path unchanged.Benchmark (Linux, 3-run median)
1.998s([1.926s, 1.999s, 1.998s])0.415s([0.415s, 0.428s, 0.396s]) —-79.2%(-1.582s)Test Plan
python3 -B tests/dxil_retarget_check.pypython3 -B tests/docs_links_check.pypython3 -B tests/bidi_controls_check.pyctest --test-dir out/build/dev -R "dxil_retarget" --output-on-failure(Win2025)AI-assisted; commands listed were executed locally.
Imported from R0Y00/Xbox2Windows. Originally posted by chatgpt-codex-connector[bot] on 2026-11-24T15:42:57Z.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
845eddbℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.