mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6245] [Issue]: Shutdown regression can miss the terminal tail after clean exit #3484
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3484
Loading…
Add table
Add a link
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?
Originally created by @SpicyMarinara on GitHub (Sep 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6245
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The POSIX shutdown regression can stop collecting terminal output as soon as the launcher is reaped, losing its final shutdown log and failing an otherwise clean shutdown.
Expected behavior
Validate the persisted shutdown and process outcomes even if the closed terminal discards unread final log text. Keep all deadline, pending-save, clean-exit, process and writer-lease checks.
Actual behavior
On the v2.4.6 staging matrix, signal/production returned exit code 0 in 0.05 seconds, saved the pending write, released the writer lease, and recorded a clean heartbeat, but the fixture did not capture
Shutdown complete. The loop checks waitpid before its next PTY read and has no final drain.Steps to reproduce
scripts/regressions/server-signal-shutdown.regression.tson Linux.Environment
cb2a443225Logs, screenshots, or video
Failing job: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/34999844692/job/104485232551
Reported outcomes before the log assertion: exitCode=0, leaseReleased=true, saved=true, exitKind=clean. The same source passed previously. A controlled one-second parent scheduling pause reproduces the false failure locally; the PTY returns EOF with the messages unavailable. The final fixture passes the identical case while retaining the shutdown outcome assertions. Proof: https://gist.github.com/SpicyMarinara/cbade75da97f256cdbb409cd0a32f247
Additional context
Release tracking: #6242. Owner: @SpicyMarinara, with Codex implementing the small fixture correction. No server behavior change. Only unreliable final terminal-log delivery assertions are removed; storage and process assertions remain unchanged.
Template check
@SpicyMarinara commented on GitHub (Sep 15, 2026):
Fixed on staging by #6246 (
e0313a33ca). The complete Node regression suite passes 282/282; CodeRabbit reviewed the final patch with no actionable findings. Controlled before/after shutdown evidence is linked in the PR.