xcl run: report log write failures once #2624
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2634"
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 luckyteagirl on 2026-11-26T03:34:23Z.
Follow-up to #2286, which reports log-open and
report.jsonwrite failures. If anxcl.logwrite or flush fails after the file opens, the logger currently drops the error and later diagnostics disappear silently. This reports the first mid-run failure once on stderr and continues the run. Part of #2277.What is in it
crates/xcl/src/log.rs: report the firstwrite_allor flush failure once per process; injected failing writers cover write and flush failures and verify the logger continues trying to flush.README.md: document the once-only stderr report and continued execution.Tested
x86_64-pc-windows-msvc, Rust 1.99.0; debug builds. The workspace run selected no GPU (XCL_ADAPTER=nomatch); the title smoke selected the RX 6800M.cargo test --locked -p xcl --lib log::tests -- --test-threads=1 --show-output: 3 passed, 0 failed, 0 ignored, 1335 filtered out.cargo build --locked --workspace -j 2: passed (3 existing warnings: 2 deprecated atomicfetch_updatecalls and 1 dead-code field).XCL_ADAPTER=nomatch cargo test --locked --workspace --no-fail-fast -j 1 -- --test-threads=1 --show-output: 37 target summaries, 1437 passed, 0 failed, 47 ignored. It printed 138SKIPPEDnotices: 120no GPUnotices across 2 tests, 15no GPU with 32-lane waves, 1no wave32 GPU, 1no wave64, and 1 unsupported reserved-cube capability. These notices are not GPU coverage.cargo test --workspace --no-fail-fast -- --test-threads=4completed with 1,437 passed, 0 failed, 47 ignored, and 25 explicit GPU skips (native wave64 and refused per-lane forms). Both targeted write/flush error tests passed 30 of 30 repeated runs; the threelog::tests passed 30 of 30 runs at eight test threads. These are the independent reporter's results, not our RX 6800M workspace run.Regression run
b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7):e897ce3032fa482c0f7bd903db0f17cf71e957dd, clean):Not tested
write_allandflusherrors.AI use
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-26T04:37:29Z.
Whole suite with the GPU paths (listed under Not tested): passes on NVIDIA.
Tested:
e897ce3(its base is currentmainb49be18, so head = merged). RTX 3060 12 GB (driver 610.88), Ryzen 7 5700X, Windows 11 Pro 26300, Rust 1.100.0 MSVC, debug.cargo test --workspace --no-fail-fast -- --test-threads=4SKIPPEDlines (no wave64, refused per-lane forms)log_write_failures_are_reported_onceanda_log_flush_failure_is_reported, alone, 30 runs each;log::(3 tests) at--test-threads=8, 30 runsNot tested: a full disk or a locked log in a title run, a release build, AMD.
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this report.
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-30T00:48:37Z.
NVIDIA and AMD full-suite run, to go with the reports above by fromthemoonx, since none of them covers AMD. Tested exact head
e897ce30(on its baseb49be18).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu --skip hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap --skip gpu::dxil::fuzz_tests: 1425 passed, 0 failed, 45 ignored. SKIPPED (no wave64):a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu,a_per_lane_2d_or_3d_group_runs_on_the_gpu,coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu,cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu,dispatch_chain_native_wave64_builds_whole,gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware,the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.log_write_failures_are_reported_once,a_log_flush_failure_is_reported.XCL_ADAPTER=radeon),cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 --skip two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs: 1436 passed, 0 failed, 47 ignored. SKIPPED:f16_programs_on_the_gpu(f16 arithmetic, wave32, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 arithmetic, wave64, per-lane form: refused (unsupported V_MUL_F16 (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave32, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f16_programs_on_the_gpu(f16 packed, wave64, per-lane form: refused (unsupported V_PK_MUL_F16: VOP3 modifiers (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave32, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),f32_programs_on_the_gpu(f32 conversions, wave64, per-lane form: refused (unsupported V_CVT_F16_F32 (its #1426 semantics differ from the console's))),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipleaves out tests that fail on main53e85fb1too, not because of this PR. On NVIDIA:heap_window_out_of_memory_falls_back_to_the_switch_form(#1651), the fourgpu::recomp::lower_dxil::tests::*_programs_on_the_gputests,const_and_null_mask_operands_agree_with_hlsl_on_the_gpuandmask_ff0_and_flbit_agree_with_hlsl_on_the_gpu(follow-up on #1651) fail becauserunner::skip_testturns their skips into failures underXCL_REQUIRE_GPU=mesh,bridged_dpp_agrees_with_hlsl_on_the_gpu(no wave64 on this card) andtwo_pass_binds_set_the_shared_view_heap(heap windows are opt-in,XCL_HEAP_WINDOWS=1) fail the same way;gpu::dxil::fuzz_testsstays skipped as in earlier runs (seeds 70, 545, 1019 and 1507 failedCreateComputePipelineStatewithE_OUTOFMEMORYon this card; they passed on this main's baseline). On AMD:fuzz_validate_and_gpu_1fails on seed 540 (res[833]0x7 vs CPU 0x6).two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobsfails on main too, since #2959 (#3441). (Edited: this line first named the wrong merge.) The AMD run does not setXCL_REQUIRE_GPU.Not tested
AI use
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:31:09Z.
Triage (#1607) – head
e897ce3#2286 is for the same issue (#2277) but makes a different change. It reports a log file that cannot be opened in
log::initand areport.jsonthat cannot be written. This PR reports the writes and flushes inlog::write/log::flushthat fail mid-run, which #2286 does not touch. The two do not overlap, though both edit the same part oflog.rs, so the second one merged will need a rebase. Neither covers all of #2277 alone.Nit: the README sentence is inserted inside the
report.jsonbullet, between its first line and thed3d12.presentslines that still describe the report.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-03T09:32:57Z.
merge-check
base:
16c2fd082ahead:
e897ce3032merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3014 passed, 0 failed, 56 ignored (base: 3012 passed, 0 failed, 56 ignored, counted on
395405e4; only docs and scripts changed since); SKIPPED: 25, the same as base (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps); failing: nonereview: read the whole diff (2 files, +108 -6). No finding. This is the merge-check for the same head as our test report of 2026-11-26 above, on today's main.
xcl: cannot write to the log: Access is denied. (os error 5)exactly once, all threads finished, and the file was unchanged.log::init. A second log opened in the same process would not report again, which fits the README text ("the first failure once").performance: none expected: one result check per line written.
verdict: safe to merge
hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
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.