[PR #3499] [MERGED] fix: warn on restart-required SPRITE_ANIMATED_FFMPEG_TIMEOUT_MS change (part of #3487) #5963

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

📋 Pull Request Information

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

Base: staging ← Head: fix/3487-env-watcher-ffmpeg-key


📝 Commits (1)

  • e04c534 fix: warn on restart-required SPRITE_ANIMATED_FFMPEG_TIMEOUT_MS change

📊 Changes

2 files changed (+2 additions, -1 deletions)

View changed files

📝 docs/CONFIGURATION.md (+1 -1)
📝 packages/server/src/config/env-watcher.ts (+1 -0)

📄 Description

Linked issue

Part of #3487 (first checklist item; the other entries need maintainer wire-up-or-remove decisions and are not touched here).

Why this change

SPRITE_ANIMATED_FFMPEG_TIMEOUT_MS is read once at module load (sprites.routes.ts:121), so editing it in a live .env silently does nothing until a restart, with no [env-watcher] warning. Its sibling SPRITE_GENERATION_TIMEOUT_MS had the identical gap and was fixed the same way in 9a22f1af3.

What changed

  • packages/server/src/config/env-watcher.ts: add the key to RESTART_REQUIRED_KEYS (one line, mirrors the sibling entry).
  • docs/CONFIGURATION.md: add the key to the documented restart-required list.

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

Static change to a string set consumed by one loop (env-watcher.ts:96); behavior is identical to the already-merged sibling key. Optional live check: edit the key in .env while running and confirm the restart-required warning appears in the server log.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

N/A - server log warning only.

Summary by CodeRabbit

  • Bug Fixes

    • Updated configuration handling so changes to the animated media processing timeout now correctly trigger a server restart warning.
  • Documentation

    • Clarified the list of configuration changes that require a full server restart.

🔄 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/3499 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/11/2026 **Status:** ✅ Merged **Merged:** 7/11/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3487-env-watcher-ffmpeg-key` --- ### 📝 Commits (1) - [`e04c534`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e04c534213a3d86a934d26f696c59691e7bf4ffd) fix: warn on restart-required SPRITE_ANIMATED_FFMPEG_TIMEOUT_MS change ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/CONFIGURATION.md` (+1 -1) 📝 `packages/server/src/config/env-watcher.ts` (+1 -0) </details> ### 📄 Description ## Linked issue Part of #3487 (first checklist item; the other entries need maintainer wire-up-or-remove decisions and are not touched here). ## Why this change `SPRITE_ANIMATED_FFMPEG_TIMEOUT_MS` is read once at module load (`sprites.routes.ts:121`), so editing it in a live `.env` silently does nothing until a restart, with no `[env-watcher]` warning. Its sibling `SPRITE_GENERATION_TIMEOUT_MS` had the identical gap and was fixed the same way in 9a22f1af3. ## What changed - `packages/server/src/config/env-watcher.ts`: add the key to `RESTART_REQUIRED_KEYS` (one line, mirrors the sibling entry). - `docs/CONFIGURATION.md`: add the key to the documented restart-required list. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] 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 Static change to a string set consumed by one loop (`env-watcher.ts:96`); behavior is identical to the already-merged sibling key. Optional live check: edit the key in `.env` while running and confirm the restart-required warning appears in the server log. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) N/A - server log warning only. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Updated configuration handling so changes to the animated media processing timeout now correctly trigger a server restart warning. * **Documentation** * Clarified the list of configuration changes that require a full server restart. <!-- 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:05:40 +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#5963
No description provided.