Keep separate logs for PowerShell launches in the same second #4832

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

@⁠andrewpozdnakov7-jpg on GitHub · 2026-12-01 10:32 UTC · original
andrewpozdnakov7-jpg:codex2/fix/distinct-script-logs → main · +4 −4 · 4 files · 1 commits · open

What it changes

The PowerShell launcher named its log by the second. Two starts in the same second using the same VICTORY_HOME select the same file. The later writer can overwrite the first log.

Add the launcher process ID to the filename, as victory play already does for its own logs. Update the existing help text so reports can identify logs from both formats.

How it was tested

  • Windows PowerShell 5.1 with the exact launcher log creation statements. Two separate processes wrote different synthetic records using the same fixed timestamp.
  • Before: main at 5fabb46e and release v2026.11.30.03 each kept one file containing only the second record.
  • After: 5e2874e074badbd00d367ff8d4aa5a7ddfd7564e kept two files, one with each record. PowerShell parsing and cargo xtask policy --staged passed. The workflow's change is limited to its existing help text.
  • Main's CI check has five existing Clippy errors tracked in #4708.

Checked for overlap

  • I searched issues and PRs for same-second log naming and reviewed related files. #3091 records native startup errors in the selected log. #4154 edits the reporting guide. #4817 fixes the script's repository path lookup.

Please retain the Git author on cherry-pick or rebase, or add Co-authored-by: andrewpozdnakov7-jpg <[email protected]> if folding the change into another commit.

AI-assisted with OpenAI Codex.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-12-01 10:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4831) `andrewpozdnakov7-jpg:codex2/fix/distinct-script-logs` → `main` · +4 −4 · 4 files · 1 commits · open ## What it changes The PowerShell launcher named its log by the second. Two starts in the same second using the same `VICTORY_HOME` select the same file. The later writer can overwrite the first log. Add the launcher process ID to the filename, as `victory play` already does for its own logs. Update the existing help text so reports can identify logs from both formats. ## How it was tested - Windows PowerShell 5.1 with the exact launcher log creation statements. Two separate processes wrote different synthetic records using the same fixed timestamp. - Before: `main` at `5fabb46e` and release `v2026.11.30.03` each kept one file containing only the second record. - After: `5e2874e074badbd00d367ff8d4aa5a7ddfd7564e` kept two files, one with each record. PowerShell parsing and `cargo xtask policy --staged` passed. The workflow's change is limited to its existing help text. - Main's [CI check](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46563306780/job/142355972539) has five existing Clippy errors tracked in #4708. ## Checked for overlap - [x] I searched issues and PRs for same-second log naming and reviewed related files. #3091 records native startup errors in the selected log. #4154 edits the reporting guide. #4817 fixes the script's repository path lookup. Please retain the Git author on cherry-pick or rebase, or add `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>` if folding the change into another commit. AI-assisted with OpenAI Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-01 10:36:08 +00:00
Author
Owner

@⁠Yoshi-233 on GitHub · 2026-12-01 10:51 UTC · original

Tested 5e2874e on Windows PowerShell 5.1 with two concurrent -WarmUsed launchers sharing one temporary VICTORY_HOME. Both reached log creation in the same millisecond. On main (5fabb46), only one child completed and one log survived. With this patch, both launchers exited 0, and each PID-specific log contained only its own child's marker. The warm-up child was a stub.

**@⁠Yoshi-233** on GitHub · 2026-12-01 10:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/4831#issuecomment-7308817455) Tested 5e2874e on Windows PowerShell 5.1 with two concurrent `-WarmUsed` launchers sharing one temporary `VICTORY_HOME`. Both reached log creation in the same millisecond. On main (5fabb46), only one child completed and one log survived. With this patch, both launchers exited 0, and each PID-specific log contained only its own child's marker. The warm-up child was a stub.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-4831'
git switch 'github-bot/gh-4831'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-4831'
git switch 'github-bot/gh-4831'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-4831'
git switch 'main'
git merge --squash 'github-bot/gh-4831'
git switch 'main'
git merge --ff-only 'github-bot/gh-4831'
git switch 'main'
git merge 'github-bot/gh-4831'
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!4832
No description provided.