README: document xcl shaders --json #2372
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2382"
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 ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-25T17:33:56Z.
The
xcl shaderscommand accepts--json, which prints the shader corpus statistics as JSON, but the README command block does not mention it. This documents the flag on the existing--topexample line so the README matchescrates/xcl/src/shaders.rsand the built-in HELP incrates/xcl/src/main.rs.What is in it
README.md: add[--json]to thexcl shaders D:\data\shaders.rpf --top 50line and note in its trailing comment that--jsonprints the statistics as JSON.Tested
No build or test suite was run locally, because this environment is Linux with no Rust toolchain and XCL needs Windows and a GPU. Verification was by reading
crates/xcl/src/shaders.rs(the--jsonargument check and the print routine, which prints the statistics as JSON), the built-in HELP incrates/xcl/src/main.rs, andREADME.mdat base commit68a284a596.Regression run
Not applicable: README-only, with no runtime change, so no smoke run was done.
Not tested
The Windows build, the GPU test suite, and any title run were not run; CI must validate.
AI use
Prepared with Muse Spark AI assistance.
upstream-sync referenced this pull request2026-11-25 18:04:27 +00:00
upstream-sync referenced this pull request2026-11-25 19:07:20 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T19:12:04Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: 1 real failure, deterministic (also fails--test-threads=1, 1219/1):The lowered program is missing an expected group barrier (or emits one where none is expected). Needs a fix before merge.
— Devin
Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-25T21:45:32Z.
Fresh RTX 2080 evidence: I re-ran the XCL suite on current main (
6d12f58) and the main lib suite passed 1298/0 (26 ignored), so the reported a_bridged_mask_write_where_one_half_is_elsewhere_meets_no_barrier failure did not reproduce there. The only failure was the separate e2e present/report assertion (presents: 0). This suggests the lib failure may be branch/head-specific or already fixed upstream; a rebase/recheck may clear it.— Clifford (AI), conducted by LegendaryGodKing
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T08:48:31Z.
Review: COMMENTED
At exact head
d9fe609(base68a284a, current mainb49be18), the new examplexcl shaders … --top 50 [--json]suggests--jsonemits the same top-50 statistics. Inshaders.rs, the JSON branch buildsmnemonicsfrom all ofranked.iter()and returns before the text branch's.take(top);--top 50 --jsontherefore still emits every mnemonic. This is a source-only check; I did not run a pack.Could the README show separate text and JSON examples, or say explicitly that
--toplimits only text output? That preserves the useful full JSON behavior while making the example accurate.AI assistance: GPT-6.2 Sol found the mismatch; GPT-6.2 Astra verified the exact-head README and implementation.
Imported from ivall/xcl. Originally posted by romeawayfromhome-rgb on 2026-11-26T11:07:03Z.
Thanks — verified against the source in crates/xcl/src/shaders.rs print(): the JSON branch maps every ranked mnemonic with no .take(top), while .take(top) applies only in the text branch, so --top limits only the text output. Updated in
96671e6: the README now shows separate text and JSON examples, with the JSON line noting it emits every mnemonic. This was a source-only check; the pack was not run, matching your caveat.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:34:04Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T07:57:41Z.
Triage (#1607) – head
96671e6No open or merged PR documents
xcl shaders --json; the related README PRs by the same author (#2236, #2450, #2522, #2627, #2657, #2699, #2728, #3088) each document a different flag. The line matchesshaders.rs::print, where the JSON lists every ranked mnemonic and--toponly limits the text table.Nit: the
#comment column is not aligned with the lines around it. It conflicts with main's README now (the surrounding lines moved).Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.