Keep the play log writing when the console stalls #2227

Open
github-bot wants to merge 1 commit from github-bot/gh-2227 into main AGit
Owner

@⁠ThePerfomance on GitHub · 2026-11-29 10:44 UTC · original
ThePerfomance:fix/independent-log-sinks → main · +113 −58 · 1 files · 1 commits · open

Related to #2191.

What it changes

The asynchronous logger currently puts console and file writes on one bounded queue. While the worker is blocked writing to stderr, it cannot drain file entries either.

Give each output its own bounded queue and writer thread. Each output reports its own dropped lines, and the synchronous mode keeps its existing behaviour. Each queue can hold up to 16,384 formatted lines, so a run with a file can buffer more total lines under sustained backpressure.

The regression test holds the console write open and checks that the file destination receives its entry before the console is released. The startup hang in #2191 remains under investigation.

How it was tested

  • On Windows with Rust 1.98.1 (GNU target), the regression test timed out with the shared worker and passed with independent workers.
  • All 25 victory-core tests passed with both default and all features. The staged asset policy and git diff --check passed.
  • The workspace run stopped when the GNU-built victory test executable exited with 0xc0000005. The baseline at 829188e reproduced the same exit code even with --list. The check uses synthetic writers and does not require a GPU or title data.

Checked for overlap

  • Checked current main and open PRs touching logging.rs. #1609 introduced a shared worker. #1417 changes PowerShell launcher redirection. #1577 proposes filtering console output.
**@⁠ThePerfomance** on GitHub · 2026-11-29 10:44 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2227) `ThePerfomance:fix/independent-log-sinks` → `main` · +113 −58 · 1 files · 1 commits · open Related to #2191. ## What it changes The asynchronous logger currently puts console and file writes on one bounded queue. While the worker is blocked writing to stderr, it cannot drain file entries either. Give each output its own bounded queue and writer thread. Each output reports its own dropped lines, and the synchronous mode keeps its existing behaviour. Each queue can hold up to 16,384 formatted lines, so a run with a file can buffer more total lines under sustained backpressure. The regression test holds the console write open and checks that the file destination receives its entry before the console is released. The startup hang in #2191 remains under investigation. ## How it was tested - On Windows with Rust 1.98.1 (GNU target), the regression test timed out with the shared worker and passed with independent workers. - All 25 `victory-core` tests passed with both default and all features. The staged asset policy and `git diff --check` passed. - The workspace run stopped when the GNU-built `victory` test executable exited with `0xc0000005`. The baseline at `829188e` reproduced the same exit code even with `--list`. The check uses synthetic writers and does not require a GPU or title data. ## Checked for overlap - [x] Checked current `main` and open PRs touching `logging.rs`. #1609 introduced a shared worker. #1417 changes PowerShell launcher redirection. #1577 proposes filtering console output.
Use a bounded writer queue for each destination so a stalled console cannot hold up the play log. Exercise the blocked-console case with a deterministic regression test.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 10:50:10 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-core/src/logging.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2227/head:github-bot/gh-2227'
git switch 'github-bot/gh-2227'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2227'
git switch 'github-bot/gh-2227'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2227'
git switch 'github-bot/gh-2227'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2227'
git switch 'main'
git merge --squash 'github-bot/gh-2227'
git switch 'main'
git merge --ff-only 'github-bot/gh-2227'
git switch 'main'
git merge 'github-bot/gh-2227'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2227
No description provided.