[PR #5127] [MERGED] Fix Windows Playwright web-server startup #6640

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5127
Author: @Xelvanis
Created: 8/16/2026
Status: ✅ Merged
Merged: 8/16/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/windows-playwright-webserver-startup


📝 Commits (3)

  • 1b2e3d8 fix(playwright): repair Windows web server startup
  • 85f860f test(playwright): align launcher fixtures with staging
  • 5c58c06 docs(changelog): link Windows launcher issue

📊 Changes

7 files changed (+244 additions, -27 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 e2e/start-servers.mjs (+20 -18)
📝 package.json (+2 -1)
📝 scripts/dev.mjs (+3 -8)
➕ scripts/pnpm-runner.mjs (+33 -0)
📝 scripts/regressions/dev-launcher-process.regression.mjs (+1 -0)
➕ scripts/regressions/pnpm-runner.regression.mjs (+184 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #5126

Why this change

Windows source contributors and regression runs can fail before Playwright reaches the test body because Node cannot execute pnpm's Windows command shim when launcher metadata is absent. Even with an explicit pnpm CLI, Playwright's piped stdin can stall the nested mobile client before Vite becomes ready.

What changed

  • Added one shared pnpm runner decision used by both launcher layers: current pnpm CLI fast path, explicit Windows ComSpec fallback, and unchanged POSIX fallback.
  • Scoped Windows ignored stdin to Playwright-owned mobile/desktop project children; direct pnpm dev, finite builds, and stdout/stderr inheritance remain intact.
  • Added a focused resolver/stdin regression and collected it through regression:launcher-update.
  • Updated the existing dev-launcher fixture for the shared runner import and current structured health-response contract.
  • Added the [Unreleased] changelog entry for #5126.

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

Additional automated evidence on rebased head 85f860ff4190de95e4bc2ba810f9c42ed76b34ed before the issue-reference-only follow-up commit:

  • pnpm regression:launcher-update passed, including pnpm runner, launcher environment/update/process/format, and Windows installer compatibility checks.
  • The exact focused Playwright command passed one desktop test in 34.5 seconds without manual npm_execpath.
  • Cleanup left a clean worktree with no Playwright listeners or retained test output.
  • Fresh independent post-rebase review approved the production and proof adaptations with no findings.

Manual verification notes

  • Automated real-browser evidence covers the exact focused desktop scenario.
  • No separate manual direct-TTY keystroke demonstration was performed; the live marker regression proves stdin inheritance through the real development launcher.
  • No UI screenshots apply to this launcher-only change.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

Only CHANGELOG.md required an update. No translated documentation or version metadata changed.

UI evidence (if applicable)

Not applicable; this changes repository launch/process behavior rather than UI rendering.

Summary by CodeRabbit

  • Bug Fixes

    • Fixed Windows development and Playwright web-server startup when pnpm launcher metadata or inherited standard input is unavailable.
    • Improved pnpm command handling across Windows and POSIX environments.
  • Tests

    • Added regression coverage for pnpm runner resolution, development-server readiness, process input handling, and cleanup.
  • Documentation

    • Added a changelog entry describing the Windows startup 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/5127 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 8/16/2026 **Status:** ✅ Merged **Merged:** 8/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/windows-playwright-webserver-startup` --- ### 📝 Commits (3) - [`1b2e3d8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1b2e3d89685bf5559c0f98324f47a77d7c370a65) fix(playwright): repair Windows web server startup - [`85f860f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/85f860ff4190de95e4bc2ba810f9c42ed76b34ed) test(playwright): align launcher fixtures with staging - [`5c58c06`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5c58c068a379703a9cf84cdad2eae6cf9d24a88f) docs(changelog): link Windows launcher issue ### 📊 Changes **7 files changed** (+244 additions, -27 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `e2e/start-servers.mjs` (+20 -18) 📝 `package.json` (+2 -1) 📝 `scripts/dev.mjs` (+3 -8) ➕ `scripts/pnpm-runner.mjs` (+33 -0) 📝 `scripts/regressions/dev-launcher-process.regression.mjs` (+1 -0) ➕ `scripts/regressions/pnpm-runner.regression.mjs` (+184 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #5126 ## Why this change Windows source contributors and regression runs can fail before Playwright reaches the test body because Node cannot execute pnpm's Windows command shim when launcher metadata is absent. Even with an explicit pnpm CLI, Playwright's piped stdin can stall the nested mobile client before Vite becomes ready. ## What changed - Added one shared pnpm runner decision used by both launcher layers: current pnpm CLI fast path, explicit Windows `ComSpec` fallback, and unchanged POSIX fallback. - Scoped Windows ignored stdin to Playwright-owned mobile/desktop project children; direct `pnpm dev`, finite builds, and stdout/stderr inheritance remain intact. - Added a focused resolver/stdin regression and collected it through `regression:launcher-update`. - Updated the existing dev-launcher fixture for the shared runner import and current structured health-response contract. - Added the `[Unreleased]` changelog entry for #5126. ## Validation - [x] `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) - [x] Read and followed `CONTRIBUTING.md` Additional automated evidence on rebased head `85f860ff4190de95e4bc2ba810f9c42ed76b34ed` before the issue-reference-only follow-up commit: - `pnpm regression:launcher-update` passed, including pnpm runner, launcher environment/update/process/format, and Windows installer compatibility checks. - The exact focused Playwright command passed one desktop test in 34.5 seconds without manual `npm_execpath`. - Cleanup left a clean worktree with no Playwright listeners or retained test output. - Fresh independent post-rebase review approved the production and proof adaptations with no findings. ### Manual verification notes - Automated real-browser evidence covers the exact focused desktop scenario. - No separate manual direct-TTY keystroke demonstration was performed; the live marker regression proves stdin inheritance through the real development launcher. - No UI screenshots apply to this launcher-only change. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) Only `CHANGELOG.md` required an update. No translated documentation or version metadata changed. ## UI evidence (if applicable) Not applicable; this changes repository launch/process behavior rather than UI rendering. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Fixed Windows development and Playwright web-server startup when pnpm launcher metadata or inherited standard input is unavailable. * Improved pnpm command handling across Windows and POSIX environments. * **Tests** * Added regression coverage for pnpm runner resolution, development-server readiness, process input handling, and cleanup. * **Documentation** * Added a changelog entry describing the Windows startup fix. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:12:19 +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#6640
No description provided.