[PR #6761] [MERGED] fix: restore production frontend startup #7316

Closed
opened 2026-10-23 04:18:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • dec9f0e docs: track production startup regression (#6760)
  • aaa5ad6 fix: 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, outside node_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-validate PR check. Document the command in CONTRIBUTING.md and record the fix in the changelog.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Completed 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).
  • The production test also fails against the user's exact image digest, sha256:bc2208a4cc49761ff7ee2be57372b1a5cc8e432d2b7164db7b901122b69af6a6, with the reported React initialization error. This proves it catches the original failure.
  • Final local CodeRabbit review: 0 findings across all 7 changed code/configuration/documentation files.

Hosted CodeRabbit completed review of aaa5ad6df with 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 new staging image index is sha256:5e226102350ecc316549ddac2861de752159c70d3574c00be38191eb55baedb5. All 3 production browser tests passed against its downloaded ARM64 image; the server reports commit 8bdcfed2f694. Pulling the combined staging tag 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 react in its directory name and Docker's /app build 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

  • No docs changes needed
  • Updated docs and changelog as needed
  • Translated documentation on docs-i18n updated to match, or a follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

Contributor validation instructions and CHANGELOG.md are 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6761 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/27/2026 **Status:** ✅ Merged **Merged:** 9/27/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/production-startup-fix` --- ### 📝 Commits (2) - [`dec9f0e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dec9f0e7743ad300a8fe4ad8b13c38a33e2bdfcb) docs: track production startup regression (#6760) - [`aaa5ad6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/aaa5ad6df6cccde1347a06afe6b05029e8406096) fix: preserve React dependency grouping in production (#6760) ### 📊 Changes **8 files changed** (+72 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.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) </details> ### 📄 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`, outside `node_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-validate` PR check. Document the command in `CONTRIBUTING.md` and record the fix in the changelog. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Completed 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). - The production test also fails against the user's exact image digest, `sha256:bc2208a4cc49761ff7ee2be57372b1a5cc8e432d2b7164db7b901122b69af6a6`, with the reported React initialization error. This proves it catches the original failure. - Final local CodeRabbit review: 0 findings across all 7 changed code/configuration/documentation files. Hosted CodeRabbit completed review of `aaa5ad6df` with 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](https://github.com/Pasta-Devs/Marinara-Engine/actions/runs/36324957722) completed for `8bdcfed2f6949071f685f8ab5e9e866588ea56f1`. The new `staging` image index is `sha256:5e226102350ecc316549ddac2861de752159c70d3574c00be38191eb55baedb5`. All 3 production browser tests passed against its downloaded ARM64 image; the server reports commit `8bdcfed2f694`. Pulling the combined `staging` tag 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 `react` in its directory name and Docker's `/app` build 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 - [ ] No docs changes needed - [ ] Updated docs and changelog as needed - [ ] Translated documentation on `docs-i18n` updated to match, or a follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) Contributor validation instructions and `CHANGELOG.md` are updated. No user-facing labels, `docs/` guides, versions, or storage formats change. ## UI evidence [Before/after mobile WebKit screenshots and runtime observations](https://gist.github.com/SpicyMarinara/7158e216d325d327ca9f0742c777af09). 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:35 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7316
No description provided.