Config: warn about xcl.toml keys and tables XCL does not know #1171
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1171
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@emirduran707 on GitHub · 2026-11-24 12:49 UTC · original
emirduran707:config-unknown-keys→main· +34 −2 · 3 files · 1 commits · openxcl.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
@thehollowedone on GitHub · 2026-11-24 13:05 UTC · original
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.
@emirduran707 on GitHub · 2026-11-24 13:35 UTC · original
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 on b07f906 and updated the description. Thanks for the check, @thehollowedone.AI-assisted (Claude Code, Claude Opus 5.5).
@futurepro62 on GitHub · 2026-11-24 14:30 UTC · original
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
@DavidM1911 on GitHub · 2026-11-25 07:46 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.@DavidM1911 on GitHub · 2026-11-26 00:26 UTC · original
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
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.