[pr-fix][startup] Give simultaneous NVIDIA launcher runs separate logs #243

Open
andrewpozdnakov7-jpg wants to merge 2 commits from andrewpozdnakov7-jpg/Darner:port/5e28-distinguish-launcher-logs into main
First-time contributor

Contributor role (optional)

  • Fluxer ID:

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

  • Tested revision: d9ffe94 on f3840d7.
  • Commands and results: Two synthetic launchers with the same timestamp and distinct process IDs chose one path on main and two on the patch. Both patched files retained their contents. PowerShell parsing, xtask policy, and git diff --check passed.
  • Changes a default: no.
  • Follow-up: updated the two documented filename examples. Asset policy and git diff --check passed on the documentation update.
  • Independent validation: superhero-520 tested two real launcher processes on Windows PowerShell 5.1 and PowerShell 7.6.9. Main lost the second log while the first was held open, or overwrote the first when it closed earlier. Both patched schedules kept two separate logs.
  • Gates run on that revision: none of the three workspace-wide gates.
  • Independent check on 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 report
  • Coverage gaps: The fixtures exercised launch and logging concurrency with a stand-in runner.

Checklist

  • I ran this change in the game.
  • This PR contains one change based on main.
  • The diff follows docs/asset-policy.md.
  • I recorded this PR's dependencies below.
    • Depends on: none

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches.
  • Related PRs: None found. The Rust launcher already includes a PID.
  • Replaces or overlaps: none found
## Contributor role (optional) - Fluxer ID: <!-- 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](https://git.gtahub.st/andrewpozdnakov7-jpg) ([GitHub profile](https://github.com/andrewpozdnakov7-jpg)). ## How it was tested - Tested revision: d9ffe94 on f3840d7. - Commands and results: Two synthetic launchers with the same timestamp and distinct process IDs chose one path on main and two on the patch. Both patched files retained their contents. PowerShell parsing, xtask policy, and git diff --check passed. - Changes a default: no. - Follow-up: updated the two documented filename examples. Asset policy and git diff --check passed on the documentation update. - Independent validation: [superhero-520](https://git.gtahub.st/TrustNo1/Darner/pulls/243#issuecomment-861904) tested two real launcher processes on Windows PowerShell 5.1 and PowerShell 7.6.9. Main lost the second log while the first was held open, or overwrote the first when it closed earlier. Both patched schedules kept two separate logs. - Gates run on that revision: none of the three workspace-wide gates. - Independent check on 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 report](https://git.gtahub.st/TrustNo1/Darner/pulls/243#issuecomment-861904) - Coverage gaps: The fixtures exercised launch and logging concurrency with a stand-in runner. ## Checklist - [ ] I ran this change in the game. - [x] This PR contains one change based on main. - [x] The diff follows docs/asset-policy.md. - [x] I recorded this PR's dependencies below. - Depends on: none ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. - Related PRs: None found. The Rust launcher already includes a PID. - Replaces or overlaps: none found
Adapt the launcher part of locally saved VIctory-NVIDIA work from December 1, 2026 (5e2874e). Include the PowerShell process ID, as the Rust launcher already does.

https://git.gtahub.st/andrewpozdnakov7-jpg
https://github.com/andrewpozdnakov7-jpg
First-time contributor

I tested b7d64add7d661563c8da283374fe1d4315f1450b against f3840d73d3504c30218debfbc8795b9225447317 using pairs of real launcher processes sharing one temporary DARNER_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.

I tested `b7d64add7d661563c8da283374fe1d4315f1450b` against `f3840d73d3504c30218debfbc8795b9225447317` using pairs of real launcher processes sharing one temporary `DARNER_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.
Author
First-time contributor

Thanks for covering both completion orders in both PowerShell versions. I added the independent check on b7d64ad to the description. It confirms that both logs survive even when the two launchers select the same second.

Thanks for covering both completion orders in both PowerShell versions. I added the independent check on b7d64ad to the description. It confirms that both logs survive even when the two launchers select the same second.
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 'port/5e28-distinguish-launcher-logs:andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'
git switch 'andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'

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.

git switch 'main'
git merge --no-ff 'andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'
git switch 'andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'
git rebase 'main'
git switch 'main'
git merge --ff-only 'andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'
git switch 'andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'
git rebase 'main'
git switch 'main'
git merge --no-ff 'andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'
git switch 'main'
git merge --squash 'andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'
git switch 'main'
git merge --ff-only 'andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'
git switch 'main'
git merge 'andrewpozdnakov7-jpg-port/5e28-distinguish-launcher-logs'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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
TrustNo1/Darner!243
No description provided.