[PR #8799] [MERGED] test(regressions): compare glob override results separator-agnostically #8811

Closed
opened 2026-11-07 17:39:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8799
Author: @SpicyMarinara
Created: 11/3/2026
Status: ✅ Merged
Merged: 11/3/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/deps-audit-regression-windows


📝 Commits (1)

  • 74d8817 test(regressions): compare glob override results separator-agnostically

📊 Changes

1 file changed (+6 additions, -2 deletions)

View changed files

📝 scripts/regressions/glob-minimatch-security-overrides.regression.mjs (+6 -2)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.

Linked issue

Closes #8797

Why this change

CodeRabbit flagged the merged #8776 (major). The glob/minimatch override regression compared glob's raw output to "assets/index-AbCd.js". glob 14 returns paths with the platform's separator, so on Windows the result is "assets\index-AbCd.js" and the regression fails even though @fastify/static and workbox-build both work. Each of them converts the results to "/" before using them. CI runs this file only on ubuntu-latest: pnpm-validate and the dependency security audit through pnpm regression:security, plus the Node regression shards. No Windows job runs it, so the failure showed up only for Windows contributors running pnpm regression or pnpm regression:security locally.

What changed

  • The glob/minimatch override regression now converts glob results to "/" inside its two assertions, the same way @fastify/static and workbox-build convert them. The guarded glob calls are exactly as the consumers make them, so a broken glob major still fails the regression on every platform.
  • No product code, lockfile or override changes.

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

Manual verification notes

  • On a Windows machine, run pnpm build:shared then node scripts/run-regressions.mjs --filter glob-minimatch-security-overrides and confirm it passes (it failed before this change with 'assets\index-AbCd.js' vs 'assets/index-AbCd.js').
  • On Windows, run pnpm regression:security and confirm the whole security lane passes.

Agent-run checks (for reference; the regression was shown to fail without the fix):

  • node ./scripts/pnpm-runner.mjs build:shared: passed
  • node ./scripts/run-regressions.mjs --filter glob-minimatch-security-overrides: 1/1 passed
  • node ./scripts/run-regressions.mjs --filter security (neighbouring security and dependency-backport regressions): 33/33 passed
  • throwaway check: original vs fixed assertions on real glob results rejoined with backslashes (temporary copies, since deleted): original: AssertionError, exit 1; fixed: passed, exit 0
  • cd packages/server && node ../../scripts/pnpm-runner.mjs run lint: passed (exit 0)
  • node ./scripts/pnpm-runner.mjs exec prettier --write / --check scripts/regressions/glob-minimatch-security-overrides.regression.mjs: unchanged; all matched files use Prettier code style

Independent adversarial review, then a fix-up pass for its findings.

Known limits and risks:

Low. Only test code changed. Converting backslashes could in theory hide a POSIX file name that really contains a backslash, but the fixture creates no such file and both consumers apply the same conversion. The Windows behavior was proven with a simulated check on macOS (real glob results rejoined with backslashes), not on a Windows host, because no CI job runs this file on Windows.

Docs and release impact

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

🤖 Generated with Claude Code


🔄 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/8799 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 11/3/2026 **Status:** ✅ Merged **Merged:** 11/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/deps-audit-regression-windows` --- ### 📝 Commits (1) - [`74d8817`](https://github.com/Pasta-Devs/Marinara-Engine/commit/74d881796db48cb0279295e3b53ec2b0b86570ea) test(regressions): compare glob override results separator-agnostically ### 📊 Changes **1 file changed** (+6 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `scripts/regressions/glob-minimatch-security-overrides.regression.mjs` (+6 -2) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. ## Linked issue Closes #8797 ## Why this change CodeRabbit flagged the merged #8776 (major). The glob/minimatch override regression compared glob's raw output to "assets/index-AbCd.js". glob 14 returns paths with the platform's separator, so on Windows the result is "assets\\index-AbCd.js" and the regression fails even though @fastify/static and workbox-build both work. Each of them converts the results to "/" before using them. CI runs this file only on ubuntu-latest: pnpm-validate and the dependency security audit through `pnpm regression:security`, plus the Node regression shards. No Windows job runs it, so the failure showed up only for Windows contributors running `pnpm regression` or `pnpm regression:security` locally. ## What changed - The glob/minimatch override regression now converts glob results to "/" inside its two assertions, the same way @fastify/static and workbox-build convert them. The guarded glob calls are exactly as the consumers make them, so a broken glob major still fails the regression on every platform. - No product code, lockfile or override changes. ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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` ### Manual verification notes - On a Windows machine, run `pnpm build:shared` then `node scripts/run-regressions.mjs --filter glob-minimatch-security-overrides` and confirm it passes (it failed before this change with 'assets\\index-AbCd.js' vs 'assets/index-AbCd.js'). - On Windows, run `pnpm regression:security` and confirm the whole security lane passes. Agent-run checks (for reference; the regression was shown to fail without the fix): - `node ./scripts/pnpm-runner.mjs build:shared`: passed - `node ./scripts/run-regressions.mjs --filter glob-minimatch-security-overrides`: 1/1 passed - `node ./scripts/run-regressions.mjs --filter security (neighbouring security and dependency-backport regressions)`: 33/33 passed - `throwaway check: original vs fixed assertions on real glob results rejoined with backslashes (temporary copies, since deleted)`: original: AssertionError, exit 1; fixed: passed, exit 0 - `cd packages/server && node ../../scripts/pnpm-runner.mjs run lint`: passed (exit 0) - `node ./scripts/pnpm-runner.mjs exec prettier --write / --check scripts/regressions/glob-minimatch-security-overrides.regression.mjs`: unchanged; all matched files use Prettier code style Independent adversarial review, then a fix-up pass for its findings. Known limits and risks: Low. Only test code changed. Converting backslashes could in theory hide a POSIX file name that really contains a backslash, but the fixture creates no such file and both consumers apply the same conversion. The Windows behavior was proven with a simulated check on macOS (real glob results rejoined with backslashes), not on a Windows host, because no CI job runs this file on Windows. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:39:53 +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#8811
No description provided.