mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:25:53 +01:00
[PR #1958] Reserve synthetic guest scene output before writing reports (GUEST-SCENE-OUTPUT-OWNERSHIP) #1965
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1965
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1958
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/guest-scene-output-ownership📝 Commits (1)
ab3eb20Reserve synthetic guest scene output before writing reports📊 Changes
2 files changed (+28 additions, -2 deletions)
View changed files
📝
scripts/run_guest_scene.py(+3 -2)📝
tests/test_guest_scene_reference.py(+25 -0)📄 Description
Claimed in the coordination issue as: GUEST-SCENE-OUTPUT-OWNERSHIP
What and why
Two invocations can both see an empty
--outduring argument parsing. When the second invocation sees the first run'slogs/during setup, it can write a failure report into the shared directory. The active invocation then fails when it tries to publish its ownreport.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.pypassed all 7 tests. The new regression fails before the fix because the competing run createsreport.json.python -I tests/test_dev_guest_scene.pypassed all 4 tests.execute(). On9e7720c9e, the second invocation wrote the report and the active invocation raisedFileExistsError. With the patch, the second invocation returned 1 and the active invocation recorded the synthetic loader's exit code 7.git diff --checkand 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
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.