Reserve synthetic guest scene output before writing reports (GUEST-SCENE-OUTPUT-OWNERSHIP) #1958

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

@⁠alexandersato0830 on GitHub · 2026-11-25 16:46 UTC · original
alexandersato0830:codex/guest-scene-output-ownership → main · +28 −2 · 2 files · 1 commits · open

Claimed in the coordination issue as: GUEST-SCENE-OUTPUT-OWNERSHIP

What and why

Two invocations can both see an empty --out during argument parsing. When the second invocation sees the first run's logs/ during setup, it can write a failure report into the shared directory. The active invocation then fails when it tries to publish its own report.json.

Create logs/ exclusively before input hashing or report handling. If another run owns the directory, the later invocation exits through the existing setup-error handling and leaves the first run's logs and report alone.

Tested

  • python -I tests/test_guest_scene_reference.py passed all 7 tests. The new regression fails before the fix because the competing run creates report.json.
  • python -I tests/test_dev_guest_scene.py passed all 4 tests.
  • A separate two-process repro let both invocations pass the real argument check before either entered execute(). On 9e7720c9e, the second invocation wrote the report and the active invocation raised FileExistsError. With the patch, the second invocation returned 1 and the active invocation recorded the synthetic loader's exit code 7.
  • git diff --check and the source-only check passed. Tested on Windows 11 with Python 3.11.17.

GPUs tested: n/a (CPU-only synthetic fixtures)

AI-assisted: yes (Codex)

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys or decryption.
**@⁠alexandersato0830** on GitHub · 2026-11-25 16:46 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/1958) `alexandersato0830:codex/guest-scene-output-ownership` → `main` · +28 −2 · 2 files · 1 commits · open Claimed in the coordination issue as: [GUEST-SCENE-OUTPUT-OWNERSHIP](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) ### What and why Two invocations can both see an empty `--out` during argument parsing. When the second invocation sees the first run's `logs/` during setup, it can write a failure report into the shared directory. The active invocation then fails when it tries to publish its own `report.json`. Create `logs/` exclusively before input hashing or report handling. If another run owns the directory, the later invocation exits through the existing setup-error handling and leaves the first run's logs and report alone. ### Tested - `python -I tests/test_guest_scene_reference.py` passed all 7 tests. The new regression fails before the fix because the competing run creates `report.json`. - `python -I tests/test_dev_guest_scene.py` passed all 4 tests. - A separate two-process repro let both invocations pass the real argument check before either entered `execute()`. On `9e7720c9e`, the second invocation wrote the report and the active invocation raised `FileExistsError`. With the patch, the second invocation returned 1 and the active invocation recorded the synthetic loader's exit code 7. - `git diff --check` and the source-only check passed. Tested on Windows 11 with Python 3.11.17. GPUs tested: n/a (CPU-only synthetic fixtures) AI-assisted: yes (Codex) ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys or decryption.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 10:12:50 +00:00
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/1958/head:github-bot/gh-1958'
git switch 'github-bot/gh-1958'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1958'
git switch 'github-bot/gh-1958'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1958'
git switch 'github-bot/gh-1958'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1958'
git switch 'main'
git merge --squash 'github-bot/gh-1958'
git switch 'main'
git merge --ff-only 'github-bot/gh-1958'
git switch 'main'
git merge 'github-bot/gh-1958'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.