Keep renamed play logs out of automatic rotation #3627
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3627
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3627"
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?
@ThePerfomance on GitHub · 2026-11-30 02:09 UTC · original
ThePerfomance:fix/play-log-rotation-scope→main· +56 −2 · 1 files · 2 commits · openWhat it changes
The built-in launcher rotates every file in the log directory whose name starts with
victory-nvidia-play-orplay-. Once the directory fills, that can delete a renamed copy such asvictory-nvidia-play-20261127-042000-1-backup.log.Rotation now considers regular files with generated play log names. It recognises the current timestamp-and-PID format and the older
play-spelling. It still keeps the nine latest preceding runs before creating the next log.How it was tested
cargo test --locked -p victorypassed. The changed file passed the asset policy check.Checked for overlap
AI-assisted contribution using OpenAI Codex.
@Trillazill on GitHub · 2026-11-30 05:12 UTC · original
Reviewed against
41adb551, and it looks right to me.Checked (Windows 11,
cargo test --locked -p victory):6955c3b3): 84 passed (81 + 1 + 2).victory-nvidia-play-20261127-042000-1-backup.log, as the description says.cargo clippy --locked -p victory --all-targets -- -D warningsreports nothing inplay.rs.%LOCALAPPDATA%\victory\logs, and the scripts that read it (play-rig.ps1,watch-rig.ps1,play-rig.Tests.ps1) only look forvictory-nvidia-play-*.log, so the narrower match changes nothing for them.One suggestion: the
None => legacyarm acceptsplay-<date>-<time>.logwith no process id, but no launcher wrote that name. The firstlog_file(48ad7859, 2026-11-26) already wroteplay-{stamp}-{pid}.log, and29d8dbf7(2026-11-27) only changed the prefix. So thelegacyflag could go (a process id is always required), and the test's legacy file could use the name the old launcher really wrote:As it stands, the test checks that rotation removes a name rotation never had to deal with, and the real
play-…-<pid>.logcase is covered only because it takes the same path as the new names.@ThePerfomance on GitHub · 2026-11-30 10:52 UTC · original
Thanks for checking the launcher history, @Trillazill. I addressed your suggestion in
be5ebb5. Rotation now requires a PID for both naming formats, and the regression test verifies that an oldplay-<date>-<time>-<pid>.logis rotated while files without a PID are preserved. The updated test reproduced the issue before the fix, and all 84 tests incargo test --locked -p victorypassed after it.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.