GeezerVison is showing github.com — test(upstream-fixes): fork ingestor tests provide upstream's GitVcsDr… · RSI-Software/t3code-hyprws@564d8b6
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/ProviderSessionManager.fork.test.ts +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -45,8 +45,10 @@ import * as ServerEnvironment from "../environment/ServerEnvironment.ts"; | 45 | 45 | import * as McpProviderSessions from "@t3tools/provider-core/server/McpProviderSessions"; | 46 | 46 | import * as McpSessionRegistry from "../mcp/McpSessionRegistry.ts"; | 47 | 47 | import * as SqlitePersistence from "../persistence/Sqlite.ts"; | | 48 | +import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; | 48 | 49 | import * as ServerSettings from "../serverSettings.ts"; | 49 | 50 | import { CodexProviderCapabilitiesV2 } from "./Adapters/CodexAdapterV2.ts"; | | 51 | +import * as CommandOutputHub from "./CommandOutputHub.ts"; | 50 | 52 | import * as EventSink from "./EventSink.ts"; | 51 | 53 | import * as EventStore from "./EventStore.ts"; | 52 | 54 | import * as IdAllocator from "@t3tools/provider-core/server/IdAllocator"; | @@ -255,6 +257,9 @@ const layerTest = (input: { | 255 | 257 | IdAllocator.layer, | 256 | 258 | layerTestStores, | 257 | 259 | ThreadCommandExecutor.layer, | | 260 | + Layer.mock(GitVcsDriver.GitVcsDriver)({ | | 261 | + resolveBranchName: () => Effect.succeed(null), | | 262 | + }), | 258 | 263 | ), | 259 | 264 | ), | 260 | 265 | ); | @@ -270,6 +275,9 @@ const layerTest = (input: { | 270 | 275 | ProviderAdapterRegistry.layerFromAdapters([adapter]).pipe( | 271 | 276 | Layer.provideMerge(McpProviderSessions.layer), | 272 | 277 | ), | | 278 | + CommandOutputHub.layer.pipe( | | 279 | + Layer.provide(Layer.merge(layerConfiguredEventSink, layerTestStores)), | | 280 | + ), | 273 | 281 | layerConfiguredEventSink, | 274 | 282 | IdAllocator.layer, | 275 | 283 | layerProviderEventIngestorTest, | |
Collapse file Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/RunExecutionService.ownerFence.fork.test.ts +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -32,6 +32,7 @@ import * as Ref from "effect/Ref"; | 32 | 32 | import * as Stream from "effect/Stream"; | 33 | 33 |
| 34 | 34 | import * as SqlitePersistence from "../persistence/Sqlite.ts"; | | 35 | +import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; | 35 | 36 | import * as McpAppModelContext from "../mcpApps/McpAppModelContext.ts"; | 36 | 37 | import * as ServerSettings from "../serverSettings.ts"; | 37 | 38 | import * as CheckpointService from "./CheckpointService.ts"; | @@ -347,6 +348,9 @@ function fixture(gate: "snapshot" | "cascade" | "nested" | "model") { | 347 | 348 | ingestionProjections, | 348 | 349 | IdAllocator.layer, | 349 | 350 | ThreadCommandExecutor.layer, | | 351 | + Layer.mock(GitVcsDriver.GitVcsDriver)({ | | 352 | + resolveBranchName: () => Effect.succeed(null), | | 353 | + }), | 350 | 354 | ), | 351 | 355 | ), | 352 | 356 | ); | |
Collapse file Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/RunExecutionService.transfer.fork.test.ts +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -42,6 +42,7 @@ import type { | 42 | 42 | } from "@t3tools/provider-core/server/ProviderAdapter"; | 43 | 43 | import * as ProjectionStore from "./ProjectionStore.ts"; | 44 | 44 | import * as ProviderEventIngestor from "./ProviderEventIngestor.ts"; | | 45 | +import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; | 45 | 46 | import * as RunExecutionService from "./RunExecutionService.ts"; | 46 | 47 | import * as ThreadCommandExecutor from "./ThreadCommandExecutor.ts"; | 47 | 48 |
| @@ -284,6 +285,9 @@ function twoSubscriptions( | 284 | 285 | Effect.succeed({ nodes: [], turnItems: [], runtimeRequests: [] }), | 285 | 286 | }), | 286 | 287 | Layer.mock(ThreadCommandExecutor.ThreadCommandExecutor)({}), | | 288 | + Layer.mock(GitVcsDriver.GitVcsDriver)({ | | 289 | + resolveBranchName: () => Effect.succeed(null), | | 290 | + }), | 287 | 291 | ), | 288 | 292 | ), | 289 | 293 | ); | |
Collapse file Copy file name to clipboardExpand all lines: apps/server/src/zmux/CheckoutSessionStateLease.fork.test.ts +7-1Lines changed: 7 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,6 +26,7 @@ import * as ProjectStore from "../orchestration-v2/ProjectStore.ts"; | 26 | 26 | import * as ProviderEventIngestor from "../orchestration-v2/ProviderEventIngestor.ts"; | 27 | 27 | import * as ThreadCommandExecutor from "../orchestration-v2/ThreadCommandExecutor.ts"; | 28 | 28 | import * as SqlitePersistence from "../persistence/Sqlite.ts"; | | 29 | +import * as GitVcsDriver from "../vcs/GitVcsDriver.ts"; | 29 | 30 | import * as ProjectEnrichment from "../project/ProjectEnrichmentService.ts"; | 30 | 31 | import * as ProjectService from "../project/ProjectService.ts"; | 31 | 32 | import * as ServerSettings from "../serverSettings.ts"; | @@ -62,7 +63,12 @@ const dependencies = Layer.merge(core, LegacyImporter.layer.pipe(Layer.provide(c | 62 | 63 | const testLayer = Layer.mergeAll( | 63 | 64 | dependencies, | 64 | 65 | ProjectService.layer.pipe(Layer.provide(dependencies)), | 65 | | - ProviderEventIngestor.layer.pipe(Layer.provide(dependencies)), | | 66 | + ProviderEventIngestor.layer.pipe( | | 67 | + Layer.provide(dependencies), | | 68 | + Layer.provide( | | 69 | + Layer.mock(GitVcsDriver.GitVcsDriver)({ resolveBranchName: () => Effect.succeed(null) }), | | 70 | + ), | | 71 | + ), | 66 | 72 | ); | 67 | 73 |
| 68 | 74 | it.effect("ordinary mutations remain concurrent; pending cleanup excludes later mutations", () => | |
|