mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6353] [Issue]: e2e "Home lifecycle stays bounded" fails at random on its 3 MB heap budget (desktop-chromium) #3551
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#3551
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 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6353
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The desktop-chromium e2e test "Home lifecycle stays bounded across repeated tab and chat navigation" (
e2e/core-flows.e2e.ts:19834) fails at random on its heap budget. It has failed the first CI run of four unrelated pull requests in two days (#6327, #6330, #6343, #6348) and passed on a re-run each time. None of those PRs touch the Home page or the spec.Expected behavior
The test fails only when Home really keeps memory after the tab and chat cycles.
Actual behavior
The only assertion that fails is the heap one (
e2e/core-flows.e2e.ts:20062):That run was 0.31 MB over a 3 MB allowance on a heap of about 45 MB. The earlier ones were about 0.8 MB over. Every other counter in the same test (documents, nodes, listeners, intervals, resize observers, timeouts, animation frames) held, which is what a real leak would move first.
The sample was already hardened once in #5704 (
settledHeapUsage: threeHeapProfiler.collectGarbagepasses, keep the smallest reading). It still trips, so the noise between two settled samples on a CI runner is larger than the 3 MB allowance gives room for.Steps to reproduce
stagingthat does not touch the Home page.desktop-chromium 3/4in the e2e workflow.Environment
staging(seen ond091ad7d3and earlier)Logs, screenshots, or video
Latest occurrence: https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/35427239766/job/105855261944 (PR #6348). The test attaches
home-lifecycle-counters(baseline and after) to the Playwright report of each run.Additional context
Ideas, smallest first:
collect()rounds on both sides instead of one round each.Related: #5704 (the first hardening), #5589 (the red regression matrix that led to it).
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Sep 19, 2026):
Owner: @SpicyMarinara, assisted by Codex. Taking this report in the issue sweep tracked by draft PR #6359. I will trace the affected path, keep the fix small, and record the relevant regression proof before merging to staging.
@SpicyMarinara commented on GitHub (Sep 19, 2026):
Merged to staging in #6359. The Home lifecycle heap allowance now scales with the warmed baseline (10%), while structural leak assertions stay exact. Three consecutive local lifecycle runs passed.