[PR #8098] [MERGED] test(dev-mcp): create the launcher named by the ownership fixture #8099

Closed
opened 2026-10-24 04:10:22 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8098
Author: @SpicyMarinara
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/8077-dev-mcp-ownership-fixture


📝 Commits (2)

  • 152e1c2 chore: reserve dev MCP ownership fixture repair
  • a5f780c test(dev-mcp): materialize the launcher ownership fixture

📊 Changes

1 file changed (+3 additions, -0 deletions)

View changed files

📝 tools/dev-mcp/test/isolation.mjs (+3 -0)

📄 Description

Linked issue

Closes #8077

Why this change

The macOS ownership fixture names an absolute launcher file that it never creates. The real temporary checkout resolves from /var/... to /private/var/..., but its missing launcher retains the lexical /var/... path. The conservative ownership check therefore correctly refuses the expected-positive fixture.

What changed

Create the inert launcher file named by the fake process chain, as a real checkout would contain it. The test still starts and stops no processes in this case. Production process ownership code and every unrelated-process negative control are unchanged.

Validation

Local Node 24.22.1 / macOS arm64 results:

  • pnpm install --frozen-lockfile and npm ci --prefix tools/dev-mcp: passed.
  • Expected-positive ownership case reproduced red on the original fixture; the same case passes after creating the file.
  • npm run test:isolation --prefix tools/dev-mcp: 7/7 passed, including refusal of unrelated listeners and outside scripts, plus actual owned-supervisor shutdown in a disposable fixture.
  • npm run smoke --prefix tools/dev-mcp: passed offline; live Engine tools were explicitly skipped.
  • pnpm check: passed.
  • Local CodeRabbit completed with zero findings.

Human verification tasks:

  • Manually verify native Windows ownership/isolation behavior if needed.
  • Manually exercise dev-MCP against a live development Engine when desired.

Docs and release impact

No production behavior, user documentation or release metadata changes.


🔄 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/8098 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/22/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/8077-dev-mcp-ownership-fixture` --- ### 📝 Commits (2) - [`152e1c2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/152e1c2efe92db74173a97c941f2a200b2b5d02f) chore: reserve dev MCP ownership fixture repair - [`a5f780c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a5f780cbcd7fd9e36ded00413ef4938b7aeebc89) test(dev-mcp): materialize the launcher ownership fixture ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/dev-mcp/test/isolation.mjs` (+3 -0) </details> ### 📄 Description ## Linked issue Closes #8077 ## Why this change The macOS ownership fixture names an absolute launcher file that it never creates. The real temporary checkout resolves from `/var/...` to `/private/var/...`, but its missing launcher retains the lexical `/var/...` path. The conservative ownership check therefore correctly refuses the expected-positive fixture. ## What changed Create the inert launcher file named by the fake process chain, as a real checkout would contain it. The test still starts and stops no processes in this case. Production process ownership code and every unrelated-process negative control are unchanged. ## Validation Local Node 24.22.1 / macOS arm64 results: - `pnpm install --frozen-lockfile` and `npm ci --prefix tools/dev-mcp`: passed. - Expected-positive ownership case reproduced red on the original fixture; the same case passes after creating the file. - `npm run test:isolation --prefix tools/dev-mcp`: 7/7 passed, including refusal of unrelated listeners and outside scripts, plus actual owned-supervisor shutdown in a disposable fixture. - `npm run smoke --prefix tools/dev-mcp`: passed offline; live Engine tools were explicitly skipped. - `pnpm check`: passed. - Local CodeRabbit completed with zero findings. Human verification tasks: - [ ] Manually verify native Windows ownership/isolation behavior if needed. - [ ] Manually exercise dev-MCP against a live development Engine when desired. ## Docs and release impact No production behavior, user documentation or release metadata changes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:22 +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#8099
No description provided.