[PR #5929] [MERGED] Issue Sweep: CLI and regression reliability #6995

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5929
Author: @SpicyMarinara
Created: 9/7/2026
Status: ✅ Merged
Merged: 9/7/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/issue-sweep-reliability-sep7


📝 Commits (5)

  • 4b3ffc5 chore: start assigned reliability issue sweep
  • 32e44ad fix: sweep CLI IDs and browser fixture reliability
  • f3d7bc7 test: tighten CLI boundaries and update persistence contract assertion
  • 025e44b test: preserve classic portrait fixture layout
  • d6b3661 Merge remote-tracking branch 'origin/staging' into fix/issue-sweep-reliability-sep7

📊 Changes

16 files changed (+561 additions, -568 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/client-runtime-diagnostics.e2e.ts (+14 -17)
📝 e2e/core-flows.e2e.ts (+85 -255)
📝 e2e/game-verb-only-turn.e2e.ts (+11 -17)
📝 e2e/generation-recovery.e2e.ts (+8 -13)
📝 e2e/illustration-arrival.e2e.ts (+10 -15)
📝 e2e/illustrator-manual-cadence.e2e.ts (+11 -14)
📝 e2e/issue-sweep-chat.e2e.ts (+11 -14)
📝 e2e/issue-sweep-settings.e2e.ts (+7 -12)
➕ e2e/ui-state-fixture.e2e.ts (+55 -0)
➕ e2e/ui-state-fixture.ts (+29 -0)
➕ packages/client/src/lib/ui-persistence.ts (+1 -0)
📝 packages/client/src/stores/ui.store.ts (+210 -205)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+14 -5)
➕ scripts/regressions/mari/db-hyphen-ids.regression.ts (+90 -0)
📝 scripts/regressions/roleplay-streaming.regression.ts (+3 -1)

📄 Description

Linked issue

Closes #5895, #5897, #5928. Investigated #5925; its two reported tests already pass on current staging without changing their assertions.

Why this change

Assigned issue sweep for @SpicyMarinara. Generated database IDs must remain addressable, and our browser regressions must exercise real current settings instead of silently seeding obsolete preferences or racing their own stream cleanup. Existing open/draft work is excluded.

What changed

  • Recognize only actual database options, so IDs beginning with -- remain positional. The standard -- separator handles exact option-name collisions; approval and cascade safeguards remain intact.
  • Stop the two mocked Roleplay streams explicitly before bounded fixture deletion.
  • Share the production persistence name/version and inferred persisted-state type with the eight reported browser specs. Keep explicit legacy migration tests intact. Replace obsolete bubble-style and game-tutorial preferences with their current counterparts.
  • Add compile-time negative guards and a browser persistence-contract regression.

Automated evidence

  • pnpm check: passed (localization, formatting, lint, e2e types, production build).
  • node scripts/run-regressions.mjs --filter scripts/regressions/mari/: 7/7 passed, including execution-security and review-durability regressions.
  • Targeted UI run: 10 passed, 5 platform-specific skips across desktop Chromium, mobile Chromium, mobile WebKit. Includes both live-stream fixtures, both swipe behaviors, and the persistence contract.
  • Before implementation, the two #5925 tests passed three times each on current staging fb71b00ce514: 6/6 mobile WebKit. No swipe behavior or assertion weakening in this PR.

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

Manually verify database read/patch/replace/delete with hyphen-prefixed IDs and dry-run approval. Manually verify swipe navigation on a physical iPhone. Automated WebKit is not physical-device proof. No visual changes. Container validation is provided by CI; no new local container claim. Checkboxes remain the human contributor's TO-DO list.

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
  • Version/release files updated (only if this PR includes a version bump)

Unreleased changelog and CLI help updated. No release-version, dependency, or mainline change.

UI evidence (if applicable)

No visual redesign. Targeted browser assertions cover the affected behavior and persistence contract.

Summary by CodeRabbit

  • Bug Fixes

    • Fixed database CLI handling for IDs beginning with hyphens, including IDs that match option names.
    • Added support for the standard -- separator when passing ambiguous IDs.
    • Preserved approval and cascade safeguards during affected database operations.
    • Improved reliability of persisted UI settings across browser sessions and reloads.
  • Tests

    • Expanded coverage for UI persistence, reload behavior, and live streaming cleanup.
    • Added coverage for database operations involving hyphen-prefixed IDs and safety requirements.

🔄 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/5929 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/7/2026 **Status:** ✅ Merged **Merged:** 9/7/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/issue-sweep-reliability-sep7` --- ### 📝 Commits (5) - [`4b3ffc5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4b3ffc57a1f479560c0f02658c42a95ef37e8e27) chore: start assigned reliability issue sweep - [`32e44ad`](https://github.com/Pasta-Devs/Marinara-Engine/commit/32e44ad0d8a43074528ac55430e0edc70db78263) fix: sweep CLI IDs and browser fixture reliability - [`f3d7bc7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f3d7bc7e115ebb41c93655620ff0ebdc01abfcaf) test: tighten CLI boundaries and update persistence contract assertion - [`025e44b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/025e44b8317bd416de5b4047b844667110a178ca) test: preserve classic portrait fixture layout - [`d6b3661`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d6b36612b44536047eb1c99697d6a72dac0f511b) Merge remote-tracking branch 'origin/staging' into fix/issue-sweep-reliability-sep7 ### 📊 Changes **16 files changed** (+561 additions, -568 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/client-runtime-diagnostics.e2e.ts` (+14 -17) 📝 `e2e/core-flows.e2e.ts` (+85 -255) 📝 `e2e/game-verb-only-turn.e2e.ts` (+11 -17) 📝 `e2e/generation-recovery.e2e.ts` (+8 -13) 📝 `e2e/illustration-arrival.e2e.ts` (+10 -15) 📝 `e2e/illustrator-manual-cadence.e2e.ts` (+11 -14) 📝 `e2e/issue-sweep-chat.e2e.ts` (+11 -14) 📝 `e2e/issue-sweep-settings.e2e.ts` (+7 -12) ➕ `e2e/ui-state-fixture.e2e.ts` (+55 -0) ➕ `e2e/ui-state-fixture.ts` (+29 -0) ➕ `packages/client/src/lib/ui-persistence.ts` (+1 -0) 📝 `packages/client/src/stores/ui.store.ts` (+210 -205) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+14 -5) ➕ `scripts/regressions/mari/db-hyphen-ids.regression.ts` (+90 -0) 📝 `scripts/regressions/roleplay-streaming.regression.ts` (+3 -1) </details> ### 📄 Description ## Linked issue Closes #5895, #5897, #5928. Investigated #5925; its two reported tests already pass on current staging without changing their assertions. ## Why this change Assigned issue sweep for @SpicyMarinara. Generated database IDs must remain addressable, and our browser regressions must exercise real current settings instead of silently seeding obsolete preferences or racing their own stream cleanup. Existing open/draft work is excluded. ## What changed - Recognize only actual database options, so IDs beginning with `--` remain positional. The standard `--` separator handles exact option-name collisions; approval and cascade safeguards remain intact. - Stop the two mocked Roleplay streams explicitly before bounded fixture deletion. - Share the production persistence name/version and inferred persisted-state type with the eight reported browser specs. Keep explicit legacy migration tests intact. Replace obsolete bubble-style and game-tutorial preferences with their current counterparts. - Add compile-time negative guards and a browser persistence-contract regression. ## Automated evidence - `pnpm check`: passed (localization, formatting, lint, e2e types, production build). - `node scripts/run-regressions.mjs --filter scripts/regressions/mari/`: 7/7 passed, including execution-security and review-durability regressions. - Targeted UI run: 10 passed, 5 platform-specific skips across desktop Chromium, mobile Chromium, mobile WebKit. Includes both live-stream fixtures, both swipe behaviors, and the persistence contract. - Before implementation, the two #5925 tests passed three times each on current staging `fb71b00ce514`: 6/6 mobile WebKit. No swipe behavior or assertion weakening in this PR. ## 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 Manually verify database read/patch/replace/delete with hyphen-prefixed IDs and dry-run approval. Manually verify swipe navigation on a physical iPhone. Automated WebKit is not physical-device proof. No visual changes. Container validation is provided by CI; no new local container claim. Checkboxes remain the human contributor's TO-DO list. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) Unreleased changelog and CLI help updated. No release-version, dependency, or mainline change. ## UI evidence (if applicable) No visual redesign. Targeted browser assertions cover the affected behavior and persistence contract. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Fixed database CLI handling for IDs beginning with hyphens, including IDs that match option names. - Added support for the standard `--` separator when passing ambiguous IDs. - Preserved approval and cascade safeguards during affected database operations. - Improved reliability of persisted UI settings across browser sessions and reloads. - **Tests** - Expanded coverage for UI persistence, reload behavior, and live streaming cleanup. - Added coverage for database operations involving hyphen-prefixed IDs and safety requirements. <!-- 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:15:34 +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#6995
No description provided.