xcl run: report log write failures once #2634
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!2634
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@luckyteagirl on GitHub · 2026-11-26 03:34 UTC · original
luckyteagirl:codex/log-write-failure→main· +108 −6 · 2 files · 1 commits · openFollow-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
@fromthemoonx on GitHub · 2026-11-26 04:37 UTC · original
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.
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.