Config: warn about xcl.toml keys and tables XCL does not know #1162
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1171"
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 emirduran707 on 2026-11-24T12:49:54Z.
xcl.tomlis read with serde's defaults, which skip keysConfigdoes not have. A typo (pls_md = 512), or a setting put under a table of its own, had no effect, and nothing said so.config::unknown_keysreturns a file's top-level keys and tables thatConfigdoes not know. The known keys come from serializingConfig::default(), so the struct stays the only list of them.xcl runreads the file's keys with it and prints one warning per unknown key, after thedata:line.Config::load_or_createkeeps its signature, which other code calls (e.g. #759). Unknown keys are still not an error, so existing files keep working. The tablesmounts,aliasesandstub_returnstake any key and are not checked inside.What is in it
crates/xcl/src/config.rs:unknown_keys; testunknown_keys_and_tables_are_reported. It checks a typo and an unknown table, and that the file XCL writes itself and the keys the README and the file header name report nothing.crates/xcl/src/launcher.rs: the warning.README.md: one sentence in the "Title data" item.Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4ona74e351(rebased ontomainde36462): 1003 passed, 2 failed, 45 ignored; 8 SKIPPED (6 inlower_dxil::tests::{f16,f32}_programs_on_the_gpu;heap_window_out_of_memory_falls_back_to_the_switch_form;pso_measurement_compiles_an_exact_synthetic_record)gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1,gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3) fail identically on unmodifiedmainde36462on this GPU (seeds 722 and 1599).unknown_keysreturning nothing (what serde did before:left: [],right: ["d3d12", "pls_md"]); with the changecargo test -p xcl --lib configpasses, 16 passedRegression run
main:
this PR:
Not tested
xcl.tomlwith a typo: the smoke run's file has none.[mounts],[aliases]or[stub_returns]is still accepted without a warning.AI use
mainde36462(a conflict inconfig.rsandlauncher.rs; both additions kept) and reran the suite and smoke runs above.🤖 Generated with Claude Code
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-24T13:05:18Z.
Independent Windows launcher check on
47efa2eandb393f32. Windows 11 build 26300, RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, release.I built with
cargo build --offline --locked --release --workspaceand ran the bundled synthetic title withxcl run <test-title> -- --hello, using a separate data root per build. The config setkeyboard_mouse = false, included the typopls_md = 512, and putdebugin an unknown[d3d12]table. Main emitted no unknown-setting warnings. The PR emitted one each ford3d12andpls_md. Both kept the known keyboard/mouse value and the manifest's 2048 MiB PLS quota. Both completed 50 title checks with zero failures, and the title folder and both config files kept their original hashes.Synthetic title only. AI-assisted. Codex (GPT-6, exact variant unavailable) ran the comparison and drafted this report.
Imported from ivall/xcl. Originally posted by emirduran707 on 2026-11-24T13:35:18Z.
Pushed
b07f906:Config::load_or_createkeeps its signature (#759 calls it and would no longer build);xcl runnow reads the file's unknown keys withconfig::unknown_keysitself. The warnings are the same. Reran the suite and the smoke run onb07f906and updated the description. Thanks for the check, @thehollowedone.AI-assisted (Claude Code, Claude Opus 5.5).
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T14:30:16Z.
Full-suite run, since this PR has no test report yet. Tested exact head
b07f906(on its base47efa2e).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4: 742 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.unknown_keys_and_tables_are_reported.Not tested
AI use
upstream-sync referenced this pull request2026-11-24 23:06:49 +00:00
upstream-sync referenced this pull request2026-11-25 02:07:14 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T07:46:52Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T00:26:35Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:45: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-01T04:58:52Z.
Triage (#1607) – head
a74e351No open or merged PR makes the same change.
Problem against current main:
config.rs:unknown_keystakes the known keys fromtoml::Table::try_from(Config::default()), but main (#1824) addedinput_profilewith#[serde(skip_serializing_if = "InputProfile::is_default")], so the default Config does not serialize it and a title with an[input_profile]table (documented in README) would get "unknown setting 'input_profile' is ignored". The PR merges textually but needs the key list to include skipped fields (or a test with[input_profile]) after a rebase.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.