Crash files: keep only the newest ones when asked (VICTORY_KEEP_CRASHES) #2802
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2802"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by Demos974 on 2026-11-29T17:30:40Z.
What it changes
Every crash leaves a minidump (.dmp, about 34 MB) and a ictory--
With
VICTORY_KEEP_CRASHES=<n>(at least 1, since the newest crash log is what a report is asked to attach), before the title runs thennewest minidumps and thennewest crash logs stay, by modified time, and acrashes.logpast 1 MiB keeps its last 256 KiB, cut at the start of a record. Unset, nothing changes. Nothing else in the folder is touched (the title keeps itstelemetrycache.datthere).apps/victory/src/crashes.rs(new), one call inapps/victory/src/run.rs.How it was tested
cargo testpassed for the crates it touches: yes (cargo test -p victory --bin victory: 80 passed, two new tests for the choice of files and the cut ofcrashes.log)Checked for overlap
crashes.log. Related: #2074 (writes refused allocations tocrashes.log; this only trims it, from the start of a record)🤖 Generated with Claude Code
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.