[PR #1459] [MERGED] Fix Graphify Windows excludes #5099

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1459
Author: @Xelvanis
Created: 5/28/2026
Status: ✅ Merged
Merged: 5/28/2026
Merged by: @Xelvanis

Base: refactor ← Head: chore/graphify-windows-excludes


📝 Commits (1)

  • 796ef3e Fix Graphify Windows excludes

📊 Changes

2 files changed (+189 additions, -21 deletions)

View changed files

➕ .graphifyignore (+44 -0)
📝 scripts/patch-graphify-portable-paths.mjs (+145 -21)

📄 Description

This PR tightens Graphify's local input scope and hardens the portability patch so Windows runs do not accidentally produce massive generated-output churn.

The main issue was that Graphify could still see local workflow/generated state, including the root scratch junction into .git/codex-shared-scratch, unless the ignore rules were explicit. Since Graphify uses .graphifyignore when present, this PR adds one that repeats the important generated/dependency/cache/editor exclusions and also keeps graphify-out out of the source corpus. That does not stop Graphify from writing or tracking graphify-out; it only prevents Graphify from treating its own generated output as input on later runs.

The patch script also needed Windows-safe cleanup. Its self-test used Unix mkdir -p and a shell/ripgrep path scan, which made the patch fragile on Windows even when the underlying installed Graphify patch was mostly doing the right thing. The script now uses Node filesystem APIs for the self-test, strips old injected helper blocks before reinserting them, makes project IDs stable from package.json where possible, and preserves existing graph item order when Graphify rewrites graph.json so review diffs stay smaller.

Validation run locally:

  • pnpm graphify:patch
  • Graphify detect check confirmed zero files from scratch, .git/codex-shared-scratch, node_modules, or graphify-out
  • controlled graphify update . proof reduced churn from the prior huge output to a much smaller generated diff, and a repeat update left outputs unchanged
  • pnpm check:docs
  • git diff --check

graphify-out was restored after proof; this PR intentionally changes only the ignore file and patch script.

MARI PLZ HALP


🔄 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/1459 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/28/2026 **Status:** ✅ Merged **Merged:** 5/28/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `chore/graphify-windows-excludes` --- ### 📝 Commits (1) - [`796ef3e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/796ef3e8dad00da3e69baf431a4a2dfaa6f82908) Fix Graphify Windows excludes ### 📊 Changes **2 files changed** (+189 additions, -21 deletions) <details> <summary>View changed files</summary> ➕ `.graphifyignore` (+44 -0) 📝 `scripts/patch-graphify-portable-paths.mjs` (+145 -21) </details> ### 📄 Description This PR tightens Graphify's local input scope and hardens the portability patch so Windows runs do not accidentally produce massive generated-output churn. The main issue was that Graphify could still see local workflow/generated state, including the root `scratch` junction into `.git/codex-shared-scratch`, unless the ignore rules were explicit. Since Graphify uses `.graphifyignore` when present, this PR adds one that repeats the important generated/dependency/cache/editor exclusions and also keeps `graphify-out` out of the source corpus. That does not stop Graphify from writing or tracking `graphify-out`; it only prevents Graphify from treating its own generated output as input on later runs. The patch script also needed Windows-safe cleanup. Its self-test used Unix `mkdir -p` and a shell/ripgrep path scan, which made the patch fragile on Windows even when the underlying installed Graphify patch was mostly doing the right thing. The script now uses Node filesystem APIs for the self-test, strips old injected helper blocks before reinserting them, makes project IDs stable from `package.json` where possible, and preserves existing graph item order when Graphify rewrites `graph.json` so review diffs stay smaller. Validation run locally: - `pnpm graphify:patch` - Graphify detect check confirmed zero files from `scratch`, `.git/codex-shared-scratch`, `node_modules`, or `graphify-out` - controlled `graphify update .` proof reduced churn from the prior huge output to a much smaller generated diff, and a repeat update left outputs unchanged - `pnpm check:docs` - `git diff --check` `graphify-out` was restored after proof; this PR intentionally changes only the ignore file and patch script. MARI PLZ HALP --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:13:13 +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#5099
No description provided.