[GH-ISSUE #5516] open-issues regression lane dies at import time on the @/lib alias in local-notifications.ts #3066

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

Originally created by @kolacheee on GitHub (Aug 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5516

Originally assigned to: @kolacheee on GitHub.

Found while validating an unrelated change: scripts/regressions/open-issues.regression.ts currently dies at import time, before a single assertion runs:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@/lib' imported from packages/client/src/lib/local-notifications.ts

The lane dynamically imports packages/client/src/lib/local-notifications.ts (open-issues.regression.ts:5971), and that file's import { getAndroidBridgeToken } from "@/lib/android-bridge" (added to staging between Aug 13-17, commits 3d8a8b0c0/a3ec5f100) uses the client's @/* tsconfig path alias — which tsx does not resolve when the regression runner loads the file outside the client package context. Reproduced on a clean checkout with no local changes; every other lane passes.

Net effect: the entire open-issues regression suite (thousands of pins) silently stopped executing — a lane failure that looks like one broken test is actually zero tests running.

Fix shapes (either works): make local-notifications.ts use a relative import (./android-bridge) like most of its siblings, or point the regression's dynamic import at a file that doesn't pull aliased imports. A follow-up guard worth considering: the runner could fail loudly with "lane crashed at import time" phrasing so an import-time death is distinguishable from an assertion failure.

Originally created by @kolacheee on GitHub (Aug 25, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5516 Originally assigned to: @kolacheee on GitHub. Found while validating an unrelated change: `scripts/regressions/open-issues.regression.ts` currently dies at import time, before a single assertion runs: ``` Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@/lib' imported from packages/client/src/lib/local-notifications.ts ``` The lane dynamically imports `packages/client/src/lib/local-notifications.ts` (open-issues.regression.ts:5971), and that file's `import { getAndroidBridgeToken } from "@/lib/android-bridge"` (added to staging between Aug 13-17, commits `3d8a8b0c0`/`a3ec5f100`) uses the client's `@/*` tsconfig path alias — which tsx does not resolve when the regression runner loads the file outside the client package context. Reproduced on a clean checkout with no local changes; every other lane passes. Net effect: the entire open-issues regression suite (thousands of pins) silently stopped executing — a lane failure that looks like one broken test is actually zero tests running. Fix shapes (either works): make `local-notifications.ts` use a relative import (`./android-bridge`) like most of its siblings, or point the regression's dynamic import at a file that doesn't pull aliased imports. A follow-up guard worth considering: the runner could fail loudly with "lane crashed at import time" phrasing so an import-time death is distinguishable from an assertion failure.
bsakaguchi 2026-10-21 05:59:20 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 25, 2026):

@kolacheee Confirmed locally during the release sweep. No linked branch or PR exists, so I am taking the one-line relative-import fix into #5515 now and will prove the open-issues lane reaches its assertions before merging.

<!-- gh-comment-id:5409973441 --> @SpicyMarinara commented on GitHub (Aug 25, 2026): @kolacheee Confirmed locally during the release sweep. No linked branch or PR exists, so I am taking the one-line relative-import fix into #5515 now and will prove the open-issues lane reaches its assertions before merging.
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#3066
No description provided.