mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6529] [Issue]: the image-dimension-limit regression passes its assertions and then hangs, failing the lane #3659
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#3659
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 @kolacheee on GitHub (Sep 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6529
Originally assigned to: @kolacheee on GitHub.
Summary
scripts/regressions/image-dimension-limit.regression.tsfinishes its work, prints its own success line, and then never exits. The runner kills it at the 30-second budget and the whole lane fails, on a clean checkout with no changes.Expected behavior
pnpm regressionpasses. The spec takes about half a second: that is how long it takes when it is the only file the runner is given.Actual behavior
In a full lane it reaches the end, prints
Image dimension limit regression passed, and then hangs until the runner terminates it:The success line is the last statement in the file, after the
finallyblock that awaitsserver.close(). So the assertions all pass and the server does close; what is left is something else holding the event loop open, most likely a keep-alive socket from thefetchcalls the spec makes against its own loopback server.server.close()stops accepting and waits for connections to end, but it does not destroy an idle keep-alive connection.Sibling regressions that stand up a real server already call
server.closeAllConnections()(for examplecommand-only-regenerate.regression.ts,shutdown-deadline.regression.ts,assigned-chat-sweep.regression.ts). This one does not.Steps to reproduce
stagingwith no local changes.pnpm installpnpm regressionimage-dimension-limit.regression.ts. It prints its success line and is then killed at 30 seconds.Running it alone passes every time, which is why this reads as a flake rather than as a hang:
Environment
stagingat3264925f3, and again at0df28742c)Logs, screenshots, or video
Four full lanes today: three ended
345/346 passed; 1 failedwith this spec timing out, one passed. Each time the success line was printed first. Run alone, it passed in 406ms, 460ms, 527ms and 826ms, including while another lane was running, so machine load is not what decides it.Additional context
The fix is likely one line, matching what the sibling regressions already do: destroy the connections as well as closing the listener before the process is expected to exit.
Worth noting separately: because the child is killed rather than failing an assertion, the lane reports a timeout with no indication that every assertion in the file passed. Anybody reading the summary sees a failing spec and looks for a broken assertion that is not there.
Found while validating #6525, which does not touch image generation. Confirmed on a clean checkout before ruling it out as mine.
@kolacheee commented on GitHub (Sep 22, 2026):
Frequency data point from a long session on staging
eecfd4b08: hit this three times, full-suite runs only, each re-run of the full suite passing. Never reproduced in isolation, where--filter image-dimension-limitpassed 3/3 at 351 ms, 377 ms and 427 ms.One small thing that cost me time each occurrence: the runner prints
TIMEOUTrather thanFAILEDfor this, so the summary reports1 failedwith no file named anywhere in the log. Finding it needed acommof START lines against result lines. Naming the file on a timeout would make the lane greppable even before the handle leak is fixed.