[GH-ISSUE #4327] [Issue]: Development can serve absent or stale shared-package output #2343

Closed
opened 2026-10-21 05:47:28 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Xelvanis on GitHub (Jul 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4327

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Development orchestration can use missing or stale @marinara-engine/shared
compiled output. This frequently affects source development involving shared
types, constants, registries, or runtime helpers.

Expected behavior

Documented development commands should establish the shared-package build they
depend on. When shared source changes after startup, the tooling should either
coordinate the required rebuild/restart or clearly state the manual boundary.

Actual behavior

  • pnpm dev builds @marinara-engine/shared once before starting the server
    and client, but it does not run the existing shared-package watcher.
  • pnpm dev:server starts the API server without first building shared output.
  • The shared package exports only dist/index.js and dist/index.d.ts, while
    dist is intentionally untracked.
  • The server watcher intentionally ignores ../shared/dist, so rebuilding
    shared after startup does not restart the server. The running process can
    therefore continue using the previously loaded implementation.

The dist exclusion was added intentionally in #3779 to keep Playwright
startup from disturbing an active development server. The issue is the
unhandled and undocumented development boundary around that safeguard, not the
production build order.

Steps to reproduce

  1. Use a source checkout where packages/shared/dist has not been built.
  2. Run pnpm dev:server.
  3. Observe that the server depends on unavailable shared-package exports.
  4. Alternatively, run pnpm dev, change runtime code under packages/shared/src,
    and rebuild shared.
  5. Observe that the running server is not restarted and continues using the
    previously loaded shared module until manually restarted.

Environment

  • Marinara Engine version: 2.3.5 (staging)
  • Install type: source
  • OS + version: OS-independent development workflow
  • Browser or app shell: not applicable

Logs, screenshots, or video

No runtime log attached. Static package-resolution and watcher tracing
establishes the failure mechanism; an implementation should verify both an
absent-dist start and a shared-runtime edit after startup.

Additional context

A small initial fix would make pnpm dev:server build shared first and document
that shared-source changes require pnpm build:shared plus a server restart.
Fully coordinated shared watching and server restarts could be considered
separately if restart storms and the #3779 Playwright safeguard are preserved.

Template check

Please uncheck (untick) the box below before submitting so we know you read
the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Xelvanis on GitHub (Jul 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4327 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Development orchestration can use missing or stale `@marinara-engine/shared` compiled output. This frequently affects source development involving shared types, constants, registries, or runtime helpers. <!-- task-id: shared-dev-stale-output --> ## Expected behavior Documented development commands should establish the shared-package build they depend on. When shared source changes after startup, the tooling should either coordinate the required rebuild/restart or clearly state the manual boundary. ## Actual behavior - `pnpm dev` builds `@marinara-engine/shared` once before starting the server and client, but it does not run the existing shared-package watcher. - `pnpm dev:server` starts the API server without first building shared output. - The shared package exports only `dist/index.js` and `dist/index.d.ts`, while `dist` is intentionally untracked. - The server watcher intentionally ignores `../shared/dist`, so rebuilding shared after startup does not restart the server. The running process can therefore continue using the previously loaded implementation. The `dist` exclusion was added intentionally in #3779 to keep Playwright startup from disturbing an active development server. The issue is the unhandled and undocumented development boundary around that safeguard, not the production build order. ## Steps to reproduce 1. Use a source checkout where `packages/shared/dist` has not been built. 2. Run `pnpm dev:server`. 3. Observe that the server depends on unavailable shared-package exports. 4. Alternatively, run `pnpm dev`, change runtime code under `packages/shared/src`, and rebuild shared. 5. Observe that the running server is not restarted and continues using the previously loaded shared module until manually restarted. ## Environment - Marinara Engine version: 2.3.5 (`staging`) - Install type: source - OS + version: OS-independent development workflow - Browser or app shell: not applicable ## Logs, screenshots, or video No runtime log attached. Static package-resolution and watcher tracing establishes the failure mechanism; an implementation should verify both an absent-`dist` start and a shared-runtime edit after startup. ## Additional context A small initial fix would make `pnpm dev:server` build shared first and document that shared-source changes require `pnpm build:shared` plus a server restart. Fully coordinated shared watching and server restarts could be considered separately if restart storms and the #3779 Playwright safeguard are preserved. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:47:28 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 31, 2026):

Implementation is in progress by @SpicyMarinara with Codex in draft PR #4340. This issue is part of the current focused staging sweep; existing code paths will be reused and kept narrow.

<!-- gh-comment-id:5141427465 --> @SpicyMarinara commented on GitHub (Jul 31, 2026): Implementation is in progress by @SpicyMarinara with Codex in draft PR #4340. This issue is part of the current focused staging sweep; existing code paths will be reused and kept narrow.
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#2343
No description provided.