Repository navigation
Conversation
…cl-dev#2277) log::init dropped the errors of create_dir_all and File::create, and report::write_final the error of fs::write. With an unwritable diagnostics folder (a read-only or roamed profile, a folder of another account, a full disk) a run looked normal, the console showed a `Log:` path that did not exist, and there was nothing to attach to a bug report. xlog_* cannot carry the message: the log is what failed, and its stderr echo is off unless the title sets log_to_stderr. Each failure is now one `xcl: cannot ... <path>: <OS error>` line on stderr (the report's once per process, as it is written on several exit paths); the run goes on as before. The two writes move into small helpers (log::open, report::save) that the new unit tests drive with a path under an existing file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent Windows check of Tested
Not tested Full disk, a retail title, the parent revision and the full workspace suite. AI use OpenAI Codex (GPT-6.2 Sol) adapted the temporary fixture, ran the checks and wrote this report. |
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
When XCL cannot create its log or write
report.json, it now says so once on stderr, with the path and the OS error, and the run goes on. Before, both failures were dropped: the run looked normal, the console showed aLog:path that did not exist, and there was nothing to attach to a bug report. Fixes #2277.What is in it
crates/xcl/src/log.rs:initopens the log through a newopen(p)that returns the error ofcreate_dir_allorFile::createwith the path;initprintsxcl: cannot create the log folder … / cannot open the log …: <OS error>.eprintln!, notxlog_*: the log is what failed, and its stderr echo is off unless the title setslog_to_stderr.crates/xcl/src/report.rs:write_finalwrites through a newsave(path, text); a failure printsxcl: cannot write the report …: <OS error>once per process (the report is written on several exit paths).a_log_that_cannot_be_opened_names_its_pathanda_report_that_cannot_be_written_names_its_path: a path under an existing file fails with a message naming it; a normal path still writes.Tested
cargo build --workspace && cargo test --workspace -- --test-threads=4: 1252 passed, 0 failed, 46 ignored. SKIPPED: the wave64 GPU tests (no wave64), the direct-DXIL f16/f32 cases refused per gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426,heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(Developer Mode is off), andtest_title_draws_with_a_root_signature_under_the_debug_layer/uploads_start_from_each_subresources_state(no D3D12 debug layer installed).XCL_DATA_ROOTpointing at a root whose<title>\logsis a file: onmainthe run exits 0 and prints nothing about it; with this PR it exits 0 and printsRegression run
main:
this PR:
Not tested
AI use
🤖 Generated with Claude Code