fix(builder): keep all JSON mode output structured #2688
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!2688
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/builder-json-output"
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?
Summary
A launcher reading
--output jsoncan receive plain text from some builder commands, child tools, and the game. Those lines require separate parsing and can be mistaken for broken events.Use JSON Lines on stdout for output in this mode. Builder messages and tool diagnostics use the reporter. The play command wraps ordinary game output with its source stream and forwards renderer startup progress and readiness as their existing events. Human-readable command output continues to use the text mode.
Worker diagnostics now use the same tracing adapter as CLI messages while retaining their build's output writer, saved build log and observer. Compile failures include severity, unit and retry fields. Tool and game messages carry stream provenance, and the launcher can disconnect while the builder continues writing its local log. The first JSON build record is still the build plan.
Testing
Tested: Six builder CLI tests and six archive tests passed on Linux. The game-output unit test passed and covers forwarding startup events, keeping stderr provenance, and encoding ordinary output as a log event. The CLI tests cover JSON usage errors, help, developer diagnostics, and a build plan followed by a setup error.
The logging audit also passed the reporter tests, both build-log tests (including a disconnected launcher), the three shader outcome tests, the game startup relay test and the six CLI tests.
Still to test:
Measurements
This changes the output format and routing. A live run still needs to verify the effect of relaying game output under load.
Risks
The builder drains both game streams in JSON mode. Launcher consumers may see more structured log events during play. The companion launcher change keeps ordinary gameplay diagnostics out of the startup transcript.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named).main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
Assisted-by:/Co-Authored-By:trailers.Ready to merge
c73d6cd366029207d844029207d844ff7c3855c6WIP: fix(builder): keep all JSON mode output structuredto fix(builder): keep all JSON mode output structured