Build the current workspace snapshot on native CI runners
This branch snapshots the in-progress desktop workspace so GitHub-hosted Windows and Linux runners can package the same source tree that already passes local verification on macOS. Constraint: Local Apple Silicon Docker/Wine packaging crashes before Windows artifacts are produced Rejected: Publish from the incomplete base repo state | remote typecheck failed because current source additions were missing Confidence: medium Scope-risk: broad Directive: Treat this branch as a build snapshot only; do not merge it without reviewing the unrelated workspace changes it contains Tested: local typecheck, lint, workspace typecheck, unit tests, integration tests, e2e smoke, macOS signed release upload Not-tested: Native Windows/Linux artifacts before this CI run
This commit is contained in:
1 parent
0e497cd892
commit
b772e1c758
271 files changed
+35047
-22879
No files matched your search
@@ -11,13 +11,13 @@ import { describe, it, expect, vi, beforeEach } from "vitest";
|
||||
*/
|
||||
|
||||
interface MockStatement {
|
||||
run: ReturnType<typeof vi.fn>;
|
||||
get: ReturnType<typeof vi.fn>;
|
||||
all: ReturnType<typeof vi.fn>;
|
||||
run: (...args: unknown[]) => unknown;
|
||||
get: (...args: unknown[]) => unknown;
|
||||
all: (...args: unknown[]) => unknown[];
|
||||
}
|
||||
|
||||
interface MockDatabase {
|
||||
prepare: ReturnType<typeof vi.fn>;
|
||||
prepare: (key: string) => MockStatement;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -25,7 +25,7 @@ interface MockDatabase {
|
||||
*/
|
||||
function simulateInterruptStaleRuns(
|
||||
db: MockDatabase,
|
||||
releaseAllWorkspaceLocks: ReturnType<typeof vi.fn>,
|
||||
releaseAllWorkspaceLocks: () => void,
|
||||
transactionFn: (fn: () => void) => void,
|
||||
runningCount: number,
|
||||
): number {
|
||||
@@ -95,7 +95,7 @@ function simulateMarkInterruptedTaskFailed(
|
||||
|
||||
describe("Crash Recovery Detection", () => {
|
||||
let db: MockDatabase;
|
||||
let releaseAllWorkspaceLocks: ReturnType<typeof vi.fn>;
|
||||
let releaseAllWorkspaceLocks: () => void;
|
||||
|
||||
beforeEach(() => {
|
||||
db = {
|
||||
@@ -104,8 +104,8 @@ describe("Crash Recovery Detection", () => {
|
||||
get: vi.fn().mockReturnValue(undefined),
|
||||
all: vi.fn().mockReturnValue([]),
|
||||
}),
|
||||
};
|
||||
releaseAllWorkspaceLocks = vi.fn();
|
||||
} as unknown as MockDatabase;
|
||||
releaseAllWorkspaceLocks = vi.fn() as unknown as () => void;
|
||||
});
|
||||
|
||||
describe("interruptStaleRuns", () => {
|
||||
|
||||
Reference in new issue
Block a user