[pr-fix][startup] Give simultaneous NVIDIA launcher runs separate logs #243
Loading…
Reference in a new issue
No description provided.
Delete branch "andrewpozdnakov7-jpg/Darner:port/5e28-distinguish-launcher-logs"
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
The PowerShell launcher names its log with a timestamp that is only precise to the second. Two launches can choose the same file. Add the PowerShell process ID so the script can retain both logs.
Restores locally saved VIctory-NVIDIA work from December 1, 2026. Recovered revision: 5e2874e. Adapted by andrewpozdnakov7-jpg (GitHub profile).
How it was tested
d9ffe94onf3840d7.b7d64ad: concurrent launcher processes in Windows PowerShell 5.1 and PowerShell 7 preserved both PID-named logs when their filename timestamps matched. On main, the second launcher either hit a sharing error or overwrote the first log, depending on completion order. Test reportChecklist
Checked for overlap
I tested
b7d64add7d661563c8da283374fe1d4315f1450bagainstf3840d73d3504c30218debfbc8795b9225447317using pairs of real launcher processes sharing one temporaryDARNER_HOME. I fixed the clock only at log selection so both processes chose the same second. Each process kept its own OS PID and started a local observer that printed distinct begin/end markers.Windows PowerShell 5.1 and PowerShell 7.6.9 agreed. On main, when A held the log open, B reported a sharing error and exited 0, but only A’s markers survived. When A closed first, B overwrote A’s markers. On the PR, both schedules retained two PID-named logs, each with only its own observer’s markers. B’s requested exit code 23 also reached the shell in the close-first case. This exercised the launcher and its log writer without running a game.
I repeated all eight revision/shell/schedule combinations with the real system clock and confirmed the same-second timestamps in the filenames. The logs showed the same results. In a separate overlap control, B’s observer returned 23 while A still held its log open. Main returned 0 to the caller on both shells. The PR returned 23 on both.
Thanks for covering both completion orders in both PowerShell versions. I added the independent check on
b7d64adto the description. It confirms that both logs survive even when the two launchers select the same second.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.