mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #6761] [MERGED] fix: restore production frontend startup #7316
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#7316
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6761
Author: @SpicyMarinara
Created: 9/27/2026
Status: ✅ Merged
Merged: 9/27/2026
Merged by: @SpicyMarinara
Base:
staging← Head:codex/production-startup-fix📝 Commits (2)
dec9f0edocs: track production startup regression (#6760)aaa5ad6fix: preserve React dependency grouping in production (#6760)📊 Changes
8 files changed (+72 additions, -3 deletions)
View changed files
📝
.github/workflows/pull-request-checks.yml(+5 -0)📝
CHANGELOG.md(+2 -0)📝
CONTRIBUTING.md(+6 -0)➕
e2e/production-startup.ts(+17 -0)📝
package.json(+1 -0)📝
packages/client/vite.config.ts(+3 -2)➕
playwright.production.config.ts(+37 -0)📝
tsconfig.json(+1 -1)📄 Description
Linked issue
Closes #6760
Why this change
After #6756, the staging Docker frontend throws while initializing React and leaves an empty page in both browsers and installed mobile web apps. The API and HTTP asset checks remain healthy, and the development-server smoke suite does not exercise the broken production chunks.
What changed
Preserve pnpm's peer-dependency suffixes when stripping the checkout prefix in Vite's vendor matching. This keeps React and its eager consumers grouped as before while still ignoring checkout directory names such as
react. The repository stores these dependencies in.pnpm, outsidenode_modules.Add a production startup/reload smoke test using the existing Playwright projects and persisted-UI fixture. It runs the compiled server with isolated test data, or accepts the existing external-server override for Docker verification. Its desktop Chromium case now runs inside the required
pnpm-validatePR check. Document the command inCONTRIBUTING.mdand record the fix in the changelog.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCompleted automated checks:
pnpm check,pnpm version:check, and formatting/type checks for the new Playwright files passed.pnpm smoke:ui: all 7 existing Chromium cases passed.pnpm smoke:production: all 3 projects passed against the compiled local server and again against a freshly built Docker image (desktop Chromium, mobile Chromium, mobile WebKit).sha256:bc2208a4cc49761ff7ee2be57372b1a5cc8e432d2b7164db7b901122b69af6a6, with the reported React initialization error. This proves it catches the original failure.Hosted CodeRabbit completed review of
aaa5ad6dfwith no actionable comments. Its advisory docstring-coverage warning is left unchanged: the existing Vite chunk callback has an inline explanation of the corrected grouping invariant, and this change adds no public API needing API documentation.Post-merge verification: Docker publication completed for
8bdcfed2f6949071f685f8ab5e9e866588ea56f1. The newstagingimage index issha256:5e226102350ecc316549ddac2861de752159c70d3574c00be38191eb55baedb5. All 3 production browser tests passed against its downloaded ARM64 image; the server reports commit8bdcfed2f694. Pulling the combinedstagingtag resolves to the same tested image locally. The remaining PR Node and platform suites also completed successfully.Manual verification notes
Browser automation additionally opened the new Docker image in mobile WebKit and dismissed the release-notes dialog to reveal the Home screen, with no runtime errors. Both the local checkout containing
reactin its directory name and Docker's/appbuild were exercised. A same-origin upgrade check also passed: WebKit retained the old image's active service worker, caches, and local storage, then recovered on reload after the server switched to the fixed image.Manually verify the newly published staging image on the reported physical iPhone 17 Pro, in both its browser and installed web app. Physical-device verification is still outstanding; WebKit emulation is the available local proof.
Docs and release impact
docs-i18nupdated to match, or a follow-up issue openedContributor validation instructions and
CHANGELOG.mdare updated. No user-facing labels,docs/guides, versions, or storage formats change.UI evidence
Before/after mobile WebKit screenshots and runtime observations. Download the HTML file to view the embedded screenshots. The before image uses the exact reported Docker digest; the after image uses the locally rebuilt fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.