CI: recognize mandatory PowerShell parameters in D3D12 launcher docs #2536
Closed
github-bot
wants to merge 2 commits from
github-bot/gh-2536 into main
AGit
pull from: github-bot/gh-2536
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
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
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
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.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2536
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2536"
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?
@kirigayakazima on GitHub · 2026-11-28 01:17 UTC · original
kirigayakazima:codex/ci-d3d12-doc-cli-flags→main· +11 −3 · 1 files · 2 commits · closed without mergingCI-D3D12-DOC-CLI-FLAGS. Main already incorporates Rust/clap support and the replay guide correction via
e890d0a10. Onc8bf0e7b6the remaining docs CLI check fails on the real -Game argument in the README: splitting a PowerShell declaration at its first equals sign truncates [Parameter(Mandatory = $true)] before the name.Only a top-level assignment now starts the default value. The checker still tracks quotes, brackets and nested commas while skipping that value. A focused fixture asserts that both declared parameters are recognized and the variable in the default is excluded.
Windows verification: python -I tests/test_docs_cli_flags.py failed on main and passed all five tests on this head. Diff whitespace and no-game-data checks passed. GPUs tested: n/a. Independent change, AI-assisted with OpenAI Codex (GPT-6).
@timbot103 on GitHub · 2026-11-28 02:02 UTC · original
Reviewed at head
f58e343f5on Windows 11 (Python 3).Verification
python -B -m unittest tests/test_docs_cli_flags.py -v: 5/5 tests OK (1.975 s).Notes (non-blocking)
--skip-shader(tests/test_docs_cli_flags.py:22-30,138-154,260-279) and removing the stale--looksswitch fromd3d12/docs/replay.md:94-96accurately matchd3d12/apps/leonida/src/replay.rs:27-218.tests/test_docs_cli_flags.py:269-286): Because flag validation unions tokens globally across all repo scripts, a removedReplayoption whose name collides with another script (e.g.,--onlyintools/lds_fuzz.py:1121/tools/ps_sweep.py:544) would still pass. Scopingd3d12/docs/replay.mdspecifically againstReplay's clap definitions would catch that too.Approve.
AI-assisted review + local Python verification.
@zmasi on GitHub · 2026-11-28 03:02 UTC · original
#2536 | head
f58e343f57(merged cleanly with main02f71ccfe) |python -I tests/test_docs_cli_flags.py| red on main: FAILED (failures=1) in 4 tests (56 unknown documented flags; failures=1 in 5 tests ond3d12/docs/replay.md:96 --lookswith PR test file copied onto main) | green on PR+main: Ran 5 tests, OK | Windows 11, Python 3.12.10 | AI-assisted: yesDiff reviewed (
d3d12/docs/replay.mddrops stale--looks, andtests/test_docs_cli_flags.pyparses Rust#[arg(long...)]fields, excludes its own test file fromsource_flags, and scopes external flags per page inPAGE_FLAGS). Also verified on mergedPR+main:python -I tests/test_docs_links.py(17/17 OK),python -I tests/test_text_write_line_endings.py(3/3 OK),git diff --check, andscripts/check_no_game_data.py(clean).@lixonik on GitHub · 2026-11-28 09:20 UTC · original · approved these changes
Reviewed the diff and tested merged onto
main(493867366).Extending
tests/test_docs_cli_flags.pyto index.rsclap#[arg(long ...)]declarations, scoping external tool options viaPAGE_FLAGS, and removing the stale--looksreference ind3d12/docs/replay.mdcleanly fixes the flag checker.Tests run
python -I tests/test_docs_cli_flags.py: 5/5 passed (44.08 s).AI-assisted (Antigravity, Gemini).
github-bot referenced this pull request2026-11-28 12:57:20 +00:00
@Mby159 on GitHub · 2026-11-28 13:20 UTC · original
Independent confirmation of the
--looksfinding, from a separate analysis of the same failure:--looksis not an option that was renamed. A code search for"--looks"in this repository returnsd3d12/docs/replay.mdand nothing else, and the wholed3d12/tree landed in a single commit, so the option never existed in any revision here. The look at what the dispatches have bound is--flow(play::look::flow; the table below that line already lists--flow <lists>), so dropping the name, as this pull request does, is the honest correction.I reached the same 56 entries and the same cause by a different route: mapping each of the 44 Rust flags to its clap field name, and all 44 have an identifier in the Rust sources. I am not opening a pull request for it - this one covers it, and better (the external flags scoped per page, and the checker out of its own evidence).
@aegish-zagi on GitHub · 2026-11-28 22:52 UTC · original · reviewed
Independent review (Linux, Python 3.12.3, AI-assisted) against current main
adfb3821a:git merge-tree --write-tree main HEADreports content conflicts ind3d12/docs/replay.mdandtests/test_docs_cli_flags.py, and GitHub shows it CONFLICTING. It needs a rebase before it can land (expect theneeds rebaselabel).f58e343f5) the change itself is sound:python -I tests/test_docs_cli_flags.pyruns 5 tests OK, versus 4 OK on bare main — the added coverage is the replay-docs-vs-clap check, and the one-linereplay.mdfix matches it.Ask: rebase on current main and re-run
tests/test_docs_cli_flags.pyon the result; nothing else in the change looks wrong from this side.CI: validate D3D12 replay documentation against Rust clap optionsto CI: recognize mandatory PowerShell parameters in D3D12 launcher docs@OreoFR on GitHub · 2026-11-29 03:13 UTC · original
Verified by OreoFR on macOS 27.2.1 (26B131), Apple M5, APFS (case-insensitive), Python 3.12.16, main
c8bf0e7b6, PR head0f91e0bca: red 2 failures / green 5 OKpython3.12 -I tests/test_docs_cli_flags.py(5 tests):extract_ps1_params) lives in the test file, so red = main's test file + only the new test method.test_parameter_attribute_assignment_and_default(new) andtest_fenced_commands_use_the_flags_of_their_tool(already failing on main:README.md:94passes-Gametoscripts/play-d3d12.ps1).git merge --no-ff): 5/5 OK, skipped 0. This PR fixes the main failure:$Gameis declared with[Parameter(Mandatory = $true)], and the old split on=cut the declaration inside the attribute, before$Game(READ IN CODE).tests/test_docs_*): all OK on main and merge, excepttest_docs_links::test_every_relative_link_resolves, failing identically on both (3/3), unrelated.=outside brackets/parentheses up to the next comma, covering defaults and attribute assignments. Correct and minimal. No game data.Verdict: READY
AI-assisted: Claude Code
@timbot103 on GitHub · 2026-11-29 04:29 UTC · original · reviewed
Reviewed head
0f91e0bcaagainstb6bf3aa0b. The top-level assignment check intests/test_docs_cli_flags.py:126keeps[Parameter(Mandatory = $true)]intact inscripts/play-d3d12.ps1:40, so the checker accepts-Gamein the fenced command atREADME.md:94. The fixture attests/test_docs_cli_flags.py:231checks that both declared parameters are extracted and$defaultCountis excluded.I traced the scanner through the declaration split over two lines at
scripts/windows-boot/boot.ps1:135and the stacked validation and type attributes, switches, and defaults in both launcher parameter blocks. The wrapper passesExein its splatted arguments tod3d12/scripts/play-nvidia.ps1, where[Parameter(Mandatory)]declares it. The fenced-command check indexes root-levelscripts/andtools/paths, so I inspected the NVIDIA launcher declaration directly.No findings. Static audit only. No builds, tests, or GPU runs.
AI-assisted.
@OreoFR on GitHub · 2026-11-29 08:34 UTC · original
Thanks for this PR. It has a red/green verification by OreoFR on macOS (READY): #2536
The only thing missing for a merge is your claim in the coordination issue #2570 (see CONTRIBUTING.md). Once it is there, a maintainer can pick it up.
AI-assisted: Claude Code
@KelboLive on GitHub · 2026-11-30 16:38 UTC · original
Independent check on Windows (not the author), at
0f91e0bca.python -I tests/test_docs_cli_flags.py: 5 tests OK in 14.6 s.Environment: Windows 11 Pro 10.0.26200.9711, Python 3.12.10.
AI-assisted: yes (opencode).
@kirigayakazima on GitHub · 2026-12-01 11:12 UTC · original
Thank you @OreoFR, @timbot103, @lixonik, @zmasi, @imShangLi, @aegish-zagi, and @KelboLive for reviewing and testing this PR!
mainhas already landed theextract_ps1_paramsfix for[Parameter(Mandatory = $true)]and top-level=handling intests/test_docs_cli_flags.py, so closing this PR cleanly as superseded bymain. (AI-assisted.)Pull request closed