[PR #4939] [MERGED] perf(client): cache repeated checks #6548

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

📋 Pull Request Information

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

Base: staging ← Head: perf/pnpm-check-caches


📝 Commits (2)

  • f9dfd40 perf(client): cache repeated checks
  • 85ff196 docs(changelog): link check cache issue

📊 Changes

3 files changed (+4 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/package.json (+2 -2)
📝 packages/client/tsconfig.json (+1 -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 #4938

Why this change

Repeated local checks reprocess the complete client TypeScript and ESLint inputs even when those files are unchanged. Reusing the tools' native caches shortens iterative validation while keeping every existing diagnostic and production-build lane.

What changed

  • Enabled TypeScript incremental state for the no-emit client project.
  • Enabled ESLint content caching at packages/client/node_modules/.cache/eslint/.eslintcache without changing eslint . file selection or rules.
  • Made explicit client clean remove the ESLint cache alongside dist and TypeScript build state; ordinary pnpm check continues to retain caches.
  • Added an [Unreleased] changelog entry without promising a universal timing result.

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

  • Cache-cold pnpm check passed in 2m22s on one Windows machine.
  • Immediate unchanged pnpm check passed in 28s; a final warm implementation run also passed in 28s.
  • Post-commit PR-readiness pnpm check passed in 82s after the explicit-clean proof had removed TypeScript's warm state. These timings are machine-specific.
  • A disposable client TypeScript error failed with TS2322 before Vite, and a disposable ESLint syntax error failed with a parsing diagnostic; both files were restored exactly and their normal commands passed afterward.
  • With dist, TypeScript build state, and the ESLint cache present, explicit client clean removed all three; the next client lint passed and recreated its cache.
  • No browser or container check was performed because this changes validation tooling only, not runtime or UI behavior.

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 (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

The required changelog entry is included. No user documentation, translation, or version change is needed.

UI evidence (if applicable)

Not applicable; this changes local validation tooling and clean behavior only.

Risks and limitations

  • Cold checks still perform all work; the benefit applies to repeated runs with unchanged or narrowly changed client inputs.
  • Vite/PWA production builds remain uncached and continue to set a runtime floor.
  • Cache invalidation remains owned by TypeScript and ESLint; explicit clean provides a deliberate cold reset.

Summary by CodeRabbit

  • Performance

    • Repeated local checks now run faster by reusing caches for unchanged client files.
  • Maintenance

    • Cleaning the client project now also removes cached lint data.
    • Added a changelog entry documenting the improved local check performance.

🔄 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/4939 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 8/12/2026 **Status:** ✅ Merged **Merged:** 8/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `perf/pnpm-check-caches` --- ### 📝 Commits (2) - [`f9dfd40`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f9dfd4060e8bc5f2c7f0644eedc941d96d7acf0c) perf(client): cache repeated checks - [`85ff196`](https://github.com/Pasta-Devs/Marinara-Engine/commit/85ff196e406ce6f0fa181c79967aa07b2b2fafe5) docs(changelog): link check cache issue ### 📊 Changes **3 files changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/package.json` (+2 -2) 📝 `packages/client/tsconfig.json` (+1 -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`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #4938 ## Why this change Repeated local checks reprocess the complete client TypeScript and ESLint inputs even when those files are unchanged. Reusing the tools' native caches shortens iterative validation while keeping every existing diagnostic and production-build lane. ## What changed - Enabled TypeScript incremental state for the no-emit client project. - Enabled ESLint content caching at `packages/client/node_modules/.cache/eslint/.eslintcache` without changing `eslint .` file selection or rules. - Made explicit client clean remove the ESLint cache alongside `dist` and TypeScript build state; ordinary `pnpm check` continues to retain caches. - Added an `[Unreleased]` changelog entry without promising a universal timing result. ## 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) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Cache-cold `pnpm check` passed in 2m22s on one Windows machine. - Immediate unchanged `pnpm check` passed in 28s; a final warm implementation run also passed in 28s. - Post-commit PR-readiness `pnpm check` passed in 82s after the explicit-clean proof had removed TypeScript's warm state. These timings are machine-specific. - A disposable client TypeScript error failed with `TS2322` before Vite, and a disposable ESLint syntax error failed with a parsing diagnostic; both files were restored exactly and their normal commands passed afterward. - With `dist`, TypeScript build state, and the ESLint cache present, explicit client clean removed all three; the next client lint passed and recreated its cache. - No browser or container check was performed because this changes validation tooling only, not runtime or UI behavior. ## 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 (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) The required changelog entry is included. No user documentation, translation, or version change is needed. ## UI evidence (if applicable) Not applicable; this changes local validation tooling and clean behavior only. ## Risks and limitations - Cold checks still perform all work; the benefit applies to repeated runs with unchanged or narrowly changed client inputs. - Vite/PWA production builds remain uncached and continue to set a runtime floor. - Cache invalidation remains owned by TypeScript and ESLint; explicit clean provides a deliberate cold reset. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Performance** * Repeated local checks now run faster by reusing caches for unchanged client files. * **Maintenance** * Cleaning the client project now also removes cached lint data. * Added a changelog entry documenting the improved local check performance. <!-- 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:11:28 +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#6548
No description provided.