[PR #8227] [MERGED] fix: preserve music test previews and clarify connection errors #8193

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8227
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/music-test-cleanup-8222


📝 Commits (3)

  • 11c7ed0 fix: preserve music previews when cleanup is unavailable
  • 246a75e test: cover unavailable preview cleanup and safe auth guidance
  • 3bb76cc test: show complete mobile connection error evidence

📊 Changes

5 files changed (+84 additions, -6 deletions)

View changed files

📝 e2e/compatible-game-audio.e2e.ts (+46 -2)
📝 packages/client/src/components/connections/ConnectionEditor.tsx (+3 -1)
📝 packages/client/src/localization/locales/en.json (+2 -1)
📝 packages/server/src/services/audio/generative-audio.service.ts (+5 -1)
📝 scripts/regressions/generative-audio-connections.regression.ts (+28 -1)

📄 Description

Linked issue

Closes #8222. Focused follow-up to merged #8223.

Why this change

A music test can publish its track successfully and then report a failure when listing older previews is denied. An authentication response with only a recognized error code also currently shows bare HTTP 401, while local endpoint errors are incorrectly attributed to the music service.

What changed

  • Keep the generated preview playable when listing older test tracks fails, with a non-fatal warning. Cleanup stays within the selected connection’s generated test files.
  • Show localized API-key and permission guidance for code-only invalid_api_key and unauthorized responses, preserving a specific sanitized provider explanation when one exists.
  • Explain invalid test input or connection configuration without blaming the provider for local endpoint settings.
  • Extend the existing route and panel controls for these paths.

Validation

On frozen final runtime bytes, pnpm check and the production build passed. The existing Professor Mari hook-dependency warning remains. The focused route/provider suites passed, six existing panel cases passed in dark/light desktop Chromium, mobile Chromium and mobile WebKit, and seven unchanged shell smoke cases passed. The later assertion/capture-only test delta also passed E2E type checking and the final six-case run.

Actual b9 source counterfactuals fail the new controls: the service returns 502 after a successful MP3 publication, and the editor shows bare HTTP 401. Fixed source bytes were restored in finally.

Local CodeRabbit completed a substantive five-file review with one MINOR declined: the approved scope adds a fallback for code-only errors; it retains an existing bounded provider explanation that can describe missing permissions more precisely. A tiny assertion added after the captured review proves that precedence. No runtime changes followed the review. This is not a zero-findings claim.

Logs, review attribution, source hashes, negative controls and screenshots.

Fresh installation did not pass: the private cache was incomplete and the online attempt hit ENOSPC. The approved recovery used a private APFS clone of the exact-lock verified dependency tree; six manifest identities and relative links were checked, and all tests/builds ran in this isolated checkout. The earlier frozen b9 host and its dependencies/outputs were untouched. The local Docker daemon is unavailable, so a local container build and physical-device behavior are not claimed. Hosted checks and final-head Dottore remain merge gates.

Manual verification plan

  • Manually generate a preview and play it.
  • Manually verify authentication and input messages in dark/light themes on desktop/mobile.
  • Manually verify successful playback when old-preview cleanup is unavailable.
  • Manually build and run the container.

Docs and release impact

No dependencies, release metadata, storage format, or user documentation changes. Canonical English UI copy is localized; community catalogs retain their existing fallback. No CHANGELOG changes.

UI evidence

The linked packet includes a b9-source before screenshot and final after screenshots, with full mobile error paragraphs visible. They use local intercepted responses and the bundled MP3, not a real provider call or physical phone. Original #8223 review/owner-merge evidence remains historical and separate.


🔄 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/8227 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/music-test-cleanup-8222` --- ### 📝 Commits (3) - [`11c7ed0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/11c7ed02e7ce7c3ccca28889c6af258070ab3c75) fix: preserve music previews when cleanup is unavailable - [`246a75e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/246a75e9389e219241533c00a78d29abad07fe68) test: cover unavailable preview cleanup and safe auth guidance - [`3bb76cc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3bb76cc3b44ec0df3c7377c4bf696791e055e628) test: show complete mobile connection error evidence ### 📊 Changes **5 files changed** (+84 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `e2e/compatible-game-audio.e2e.ts` (+46 -2) 📝 `packages/client/src/components/connections/ConnectionEditor.tsx` (+3 -1) 📝 `packages/client/src/localization/locales/en.json` (+2 -1) 📝 `packages/server/src/services/audio/generative-audio.service.ts` (+5 -1) 📝 `scripts/regressions/generative-audio-connections.regression.ts` (+28 -1) </details> ### 📄 Description ## Linked issue Closes #8222. Focused follow-up to merged #8223. ## Why this change A music test can publish its track successfully and then report a failure when listing older previews is denied. An authentication response with only a recognized error code also currently shows bare HTTP 401, while local endpoint errors are incorrectly attributed to the music service. ## What changed - Keep the generated preview playable when listing older test tracks fails, with a non-fatal warning. Cleanup stays within the selected connection’s generated test files. - Show localized API-key and permission guidance for code-only `invalid_api_key` and `unauthorized` responses, preserving a specific sanitized provider explanation when one exists. - Explain invalid test input or connection configuration without blaming the provider for local endpoint settings. - Extend the existing route and panel controls for these paths. ## Validation On frozen final runtime bytes, `pnpm check` and the production build passed. The existing Professor Mari hook-dependency warning remains. The focused route/provider suites passed, six existing panel cases passed in dark/light desktop Chromium, mobile Chromium and mobile WebKit, and seven unchanged shell smoke cases passed. The later assertion/capture-only test delta also passed E2E type checking and the final six-case run. Actual b9 source counterfactuals fail the new controls: the service returns 502 after a successful MP3 publication, and the editor shows bare HTTP 401. Fixed source bytes were restored in `finally`. Local CodeRabbit completed a substantive five-file review with one MINOR declined: the approved scope adds a fallback for code-only errors; it retains an existing bounded provider explanation that can describe missing permissions more precisely. A tiny assertion added after the captured review proves that precedence. No runtime changes followed the review. This is not a zero-findings claim. [Logs, review attribution, source hashes, negative controls and screenshots](https://gist.github.com/SpicyMarinara/bb97ea70684dd4eca2d51bfcc0d71622#file-8227-readme-md). Fresh installation did not pass: the private cache was incomplete and the online attempt hit ENOSPC. The approved recovery used a private APFS clone of the exact-lock verified dependency tree; six manifest identities and relative links were checked, and all tests/builds ran in this isolated checkout. The earlier frozen b9 host and its dependencies/outputs were untouched. The local Docker daemon is unavailable, so a local container build and physical-device behavior are not claimed. Hosted checks and final-head Dottore remain merge gates. ### Manual verification plan - [ ] Manually generate a preview and play it. - [ ] Manually verify authentication and input messages in dark/light themes on desktop/mobile. - [ ] Manually verify successful playback when old-preview cleanup is unavailable. - [ ] Manually build and run the container. ## Docs and release impact No dependencies, release metadata, storage format, or user documentation changes. Canonical English UI copy is localized; community catalogs retain their existing fallback. No CHANGELOG changes. ## UI evidence The linked packet includes a b9-source before screenshot and final after screenshots, with full mobile error paragraphs visible. They use local intercepted responses and the bundled MP3, not a real provider call or physical phone. Original #8223 review/owner-merge evidence remains historical and separate. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-25 04:04:37 +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#8193
No description provided.