Skip to content

Commit ee6bbac

Browse files
d-csclaude
andcommitted
style(run-ops): apply oxfmt
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 411cdb4 commit ee6bbac

8 files changed

Lines changed: 46 additions & 30 deletions

apps/webapp/app/v3/services/bulk/BulkActionV2.server.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,7 @@ import { formatDateTime } from "~/components/primitives/DateTime";
2727
import pMap from "p-map";
2828
import { type PrismaReplicaClient } from "~/db.server";
2929
import { isSplitEnabled } from "~/v3/runOpsMigration/splitMode.server";
30-
import {
31-
hydrateRunsAcrossSeam,
32-
type SeamReadDeps,
33-
} from "./BulkActionV2.batchReadThrough.server";
30+
import { hydrateRunsAcrossSeam, type SeamReadDeps } from "./BulkActionV2.batchReadThrough.server";
3431

3532
export type ProcessToCompletionOptions = {
3633
/** Absolute timestamp (ms) after which processing stops and returns incomplete. */

apps/webapp/app/v3/services/resumeBatchRun.server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,4 +397,3 @@ export class ResumeBatchRunService extends BaseService {
397397
}
398398
}
399399
}
400-

apps/webapp/test/idempotencyDedupResidency.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import { generateKsuidId } from "@trigger.dev/core/v3/isomorphic";
44
import { describe, expect, vi } from "vitest";
55

66
// Stub so the runStore singleton doesn't eagerly connect at import.
7-
vi.mock("~/db.server", () => ({ prisma: {}, $replica: {}, runOpsNewPrisma: {}, runOpsLegacyPrisma: {} }));
7+
vi.mock("~/db.server", () => ({
8+
prisma: {},
9+
$replica: {},
10+
runOpsNewPrisma: {},
11+
runOpsLegacyPrisma: {},
12+
}));
813
// Keep split off so resolveIdempotencyDedupClient returns this.prisma (the hetero fixture client).
914
vi.mock("~/v3/runOpsMigration/splitMode.server", () => ({ isSplitEnabled: async () => false }));
1015

apps/webapp/test/idempotencyKeyConcernLegacyAuthority.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ import { describe, expect, vi } from "vitest";
99
// exercised — the passed client runs the query. Mirrors the shipped
1010
// `mollifierClaimResolution` test: env-wiring mock only; the DB under test is
1111
// the real PG14 + PG17 hetero-fixture containers.
12-
vi.mock("~/db.server", () => ({ prisma: {}, $replica: {}, runOpsNewPrisma: {}, runOpsLegacyPrisma: {} }));
12+
vi.mock("~/db.server", () => ({
13+
prisma: {},
14+
$replica: {},
15+
runOpsNewPrisma: {},
16+
runOpsLegacyPrisma: {},
17+
}));
1318
// Keep split off so resolveIdempotencyDedupClient returns this.prisma (the hetero fixture client).
1419
vi.mock("~/v3/runOpsMigration/splitMode.server", () => ({ isSplitEnabled: async () => false }));
1520

apps/webapp/test/performTaskRunAlertsStoreRouting.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ const TASK_RUN_CROSS_SEAM_FKS = [
210210

211211
async function dropTaskRunCrossSeamFks(prisma: PrismaClient) {
212212
for (const constraint of TASK_RUN_CROSS_SEAM_FKS) {
213-
await prisma.$executeRawUnsafe(`ALTER TABLE "TaskRun" DROP CONSTRAINT IF EXISTS "${constraint}"`);
213+
await prisma.$executeRawUnsafe(
214+
`ALTER TABLE "TaskRun" DROP CONSTRAINT IF EXISTS "${constraint}"`
215+
);
214216
}
215217
}
216218

apps/webapp/test/realtime/streamRegistrationRouting.test.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -174,26 +174,26 @@ describe("realtime stream registration — run-ops store routed writes", () => {
174174
"completed run guard issues no push",
175175
{ timeout: 60_000 },
176176
async ({ prisma17 }) => {
177-
const store = new PostgresRunStore({ prisma: prisma17, readOnlyPrisma: prisma17 });
178-
179-
const runId = "run_routed_push_completed";
180-
await seedRun(prisma17, {
181-
runId,
182-
slugSuffix: "completed17",
183-
completedAt: new Date("2026-06-01T00:00:00.000Z"),
184-
});
185-
186-
const streamId = "stream-late";
187-
const result = await routedRegisterStream(store, prisma17, runId, streamId);
188-
189-
// The completedAt guard blocks the push (route returns 400).
190-
expect(result.pushed).toBe(false);
191-
192-
const row = await prisma17.taskRun.findFirst({
193-
where: { id: runId },
194-
select: { realtimeStreams: true },
195-
});
196-
expect(row?.realtimeStreams).toEqual([]);
177+
const store = new PostgresRunStore({ prisma: prisma17, readOnlyPrisma: prisma17 });
178+
179+
const runId = "run_routed_push_completed";
180+
await seedRun(prisma17, {
181+
runId,
182+
slugSuffix: "completed17",
183+
completedAt: new Date("2026-06-01T00:00:00.000Z"),
184+
});
185+
186+
const streamId = "stream-late";
187+
const result = await routedRegisterStream(store, prisma17, runId, streamId);
188+
189+
// The completedAt guard blocks the push (route returns 400).
190+
expect(result.pushed).toBe(false);
191+
192+
const row = await prisma17.taskRun.findFirst({
193+
where: { id: runId },
194+
select: { realtimeStreams: true },
195+
});
196+
expect(row?.realtimeStreams).toEqual([]);
197197
}
198198
);
199199

apps/webapp/test/resetIdempotencyKeyLegacyAuthority.test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ function makeService(legacyPrisma: PrismaClient) {
3232
}
3333

3434
function makeEnv(opts: { id: string; organizationId: string }): AuthenticatedEnvironment {
35-
return { id: opts.id, organizationId: opts.organizationId } as unknown as AuthenticatedEnvironment;
35+
return {
36+
id: opts.id,
37+
organizationId: opts.organizationId,
38+
} as unknown as AuthenticatedEnvironment;
3639
}
3740

3841
async function seedOrgProjectEnv(prisma: PrismaClient, suffix: string) {

apps/webapp/test/streamLoader.controlPlane.test.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@ async function seedControlPlane(prisma: PrismaClient) {
1919
data: { title: `Org ${s}`, slug: `org-${s}`, streamBasinName: `basin-${s}` },
2020
});
2121
const project = await prisma.project.create({
22-
data: { name: `P ${s}`, slug: `p-${s}`, externalRef: `proj_${s}`, organizationId: organization.id },
22+
data: {
23+
name: `P ${s}`,
24+
slug: `p-${s}`,
25+
externalRef: `proj_${s}`,
26+
organizationId: organization.id,
27+
},
2328
});
2429
const environment = await prisma.runtimeEnvironment.create({
2530
data: {

0 commit comments

Comments
 (0)