mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8799] [MERGED] test(regressions): compare glob override results separator-agnostically #8811
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#8811
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
74d8817test(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
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 runningpnpm regressionorpnpm regression:securitylocally.What changed
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm build:sharedthennode scripts/run-regressions.mjs --filter glob-minimatch-security-overridesand confirm it passes (it failed before this change with 'assets\index-AbCd.js' vs 'assets/index-AbCd.js').pnpm regression:securityand 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: passednode ./scripts/run-regressions.mjs --filter glob-minimatch-security-overrides: 1/1 passednode ./scripts/run-regressions.mjs --filter security (neighbouring security and dependency-backport regressions): 33/33 passedthrowaway check: original vs fixed assertions on real glob results rejoined with backslashes (temporary copies, since deleted): original: AssertionError, exit 1; fixed: passed, exit 0cd 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 styleIndependent 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
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.