[pr-diagnostics][startup][shaders] Capture bounded stderr from failed warm workers #125
Loading…
Reference in a new issue
No description provided.
Delete branch "ALeCs1080/Darner:codex/dar-006-3"
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?
Contributor role (optional)
What it changes
Refs #70. During preload, a failed
warm --thesechild can leave the parent with an exit code and no useful stderr. A normal memory-admission deferral leaves the process running. The child's exit code alone cannot identify the failure stage. See the issue #70 investigation.Set
DARNER_WARM_CAPTURE_STDERR=1beforedarner preload, or pass--set DARNER_WARM_CAPTURE_STDERR=1todarner play --preload. An opted-in warm worker uses one reader thread, an 8 KiB rolling tail, and a 4 KiB scratch buffer. The Windows pipe reader drains concurrently with stdout and stops without waiting for EOF. The parent emits one escaped diagnostic after a failed child has been reaped. Review the diagnostic locally and redact personal paths, credentials, and sensitive content before sharing it.The default keeps stderr suppressed and creates no capture resources. Stdout parsing, watchdog timing, retries, quarantine, and compile-memory safeguards are unchanged. PR #110 is the separate memory-floor change.
How it was tested
02306be26af03e1f96db1ccd3e16e0e2f9e96f2aon Main57dea7f2367c4e902b8ef507f90536564b670b04, Windows 10 x64.cargo test -p darner --bin darner --locked warm:: -- --test-threads=1— 21 passed. Synthetic cases cover stderr larger than pipe capacity, stdout progress, watchdog termination, and cleanup with a writer still open.cargo run --quiet --package xtask --locked -- policy --staged— 3 files passed before commit.cargo clippy --workspace --all-targets --locked -- -D warnings— passed.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings— passed.cargo test --workspace --locked— stopped indarner-gpuwith exit 3. The exactambient::tests::the_passes_buildtest exited 3 on both the candidate and clean Main. This host's inbox runtime reported Shader Model 6.5 and refused a directly indexed root signature.Checklist
main.docs/asset-policy.md.Checked for overlap
warm.rsfound no competing capture. The full open-PR file inventory was not verified.Built and ran the warm tests on Windows (RTX 5080):
cargo build --release --locked -p darnersucceeded andcargo test --release --locked -p darner warmpassed 21/21 warm tests plus the cache_paths test.drains_large_stderr_without_changing_stdout_protocolconfirms the 8 KiB bound: a 96 KiB stderr flood retains exactly 8192 bytes (total 98318, tail is the last bytes, ESC/newline escaped). A 10-minutedarner warm --jobs 4 --limit 2000withDARNER_WARM_CAPTURE_STDERR=1made 2000 pipelines with 0 workers ending, so no failure diagnostic was produced; 18 untranslatable-shader warnings were handled in-process. Not tested: a real crashed/hung worker (none occurred) andpreload's shader scan of the dump.Drafted with AI assistance (OpenCode).