GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test(upstream-fixes): fork ingestor tests provide upstream's GitVcsDr… · RSI-Software/t3code-hyprws@f98d5bc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src
    • orchestration-v2
      • ProviderSessionManager.fork.test.ts
      • RunExecutionService.ownerFence.fork.test.ts
      • RunExecutionService.transfer.fork.test.ts
    • zmux
      • CheckoutSessionStateLease.fork.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/orchestration-v2/ProviderSessionManager.fork.test.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/ProviderSessionManager.fork.test.ts
+18-7Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,11 @@ import * as ServerEnvironment from "../environment/ServerEnvironment.ts";
4343
import * as McpProviderSessions from "@t3tools/provider-core/server/McpProviderSessions";
4444
import * as McpSessionRegistry from "../mcp/McpSessionRegistry.ts";
4545
import * as SqlitePersistence from "../persistence/Sqlite.ts";
46+
import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
47+
import * as ProviderInstanceRegistry from "../provider/ProviderInstanceRegistry.ts";
4648
import * as ServerSettings from "../serverSettings.ts";
4749
import { CodexProviderCapabilitiesV2 } from "./Adapters/CodexAdapterV2.ts";
50+
import * as CommandOutputHub from "./CommandOutputHub.ts";
4851
import * as EventSink from "./EventSink.ts";
4952
import * as EventStore from "./EventStore.ts";
5053
import * as IdAllocator from "@t3tools/provider-core/server/IdAllocator";
@@ -115,7 +118,7 @@ const layerFlakyProjectionReads = (flaky: FlakyProjectionReads) =>
115118
Effect.gen(function* () {
116119
if (yield* Ref.getAndSet(flaky.armed, false)) {
117120
yield* Queue.offer(flaky.failures, undefined);
118-
return yield* Effect.fail(new ProjectionStore.ProjectionStoreReadError({ threadId }));
121+
return yield* new ProjectionStore.ProjectionStoreReadError({ threadId });
119122
}
120123
return yield* delegate.getThreadRecords(threadId, fields, filter);
121124
});
@@ -211,12 +214,10 @@ const layerTest = (input: {
211214
startTurn: () => Effect.die("unused"),
212215
steerTurn: () => Effect.void,
213216
interruptTurn: ({ providerTurnId }) =>
214-
Effect.gen(function* () {
215-
yield* Ref.update(input.state, (current) => ({
216-
...current,
217-
interruptedTurnIds: [...current.interruptedTurnIds, providerTurnId],
218-
}));
219-
}),
217+
Ref.update(input.state, (current) => ({
218+
...current,
219+
interruptedTurnIds: [...current.interruptedTurnIds, providerTurnId],
220+
})),
220221
unloadThread: ({ providerThread }) =>
221222
Effect.gen(function* () {
222223
yield* Ref.update(input.state, (current) => ({
@@ -253,6 +254,13 @@ const layerTest = (input: {
253254
IdAllocator.layer,
254255
layerTestStores,
255256
ThreadCommandExecutor.layer,
257+
Layer.mock(ProviderInstanceRegistry.ProviderInstanceRegistry)({
258+
// @effect-diagnostics-next-line effectSucceedWithVoid:off - Optional instances require undefined rather than void.
259+
getInstance: () => Effect.succeed(undefined),
260+
}),
261+
Layer.mock(GitVcsDriver.GitVcsDriver)({
262+
resolveBranchName: () => Effect.succeed(null),
263+
}),
256264
),
257265
),
258266
);
@@ -268,6 +276,9 @@ const layerTest = (input: {
268276
ProviderAdapterRegistry.layerFromAdapters([adapter]).pipe(
269277
Layer.provideMerge(McpProviderSessions.layer),
270278
),
279+
CommandOutputHub.layer.pipe(
280+
Layer.provide(Layer.merge(layerConfiguredEventSink, layerTestStores)),
281+
),
271282
layerConfiguredEventSink,
272283
IdAllocator.layer,
273284
layerProviderEventIngestorTest,
Collapse file

‎apps/server/src/orchestration-v2/RunExecutionService.ownerFence.fork.test.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/RunExecutionService.ownerFence.fork.test.ts
+12-1Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ import * as Ref from "effect/Ref";
3232
import * as Stream from "effect/Stream";
3333

3434
import * as SqlitePersistence from "../persistence/Sqlite.ts";
35+
import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
36+
import * as ProviderInstanceRegistry from "../provider/ProviderInstanceRegistry.ts";
3537
import * as McpAppModelContext from "../mcpApps/McpAppModelContext.ts";
38+
import * as PreviewAgentActivity from "../preview/PreviewAgentActivity.ts";
3639
import * as ServerSettings from "../serverSettings.ts";
3740
import * as CheckpointService from "./CheckpointService.ts";
3841
import * as EventSink from "./EventSink.ts";
@@ -348,6 +351,13 @@ function fixture(gate: "snapshot" | "cascade" | "nested" | "model") {
348351
ingestionProjections,
349352
IdAllocator.layer,
350353
ThreadCommandExecutor.layer,
354+
Layer.mock(ProviderInstanceRegistry.ProviderInstanceRegistry)({
355+
// @effect-diagnostics-next-line effectSucceedWithVoid:off - Optional instances require undefined rather than void.
356+
getInstance: () => Effect.succeed(undefined),
357+
}),
358+
Layer.mock(GitVcsDriver.GitVcsDriver)({
359+
resolveBranchName: () => Effect.succeed(null),
360+
}),
351361
),
352362
),
353363
);
@@ -358,6 +368,7 @@ function fixture(gate: "snapshot" | "cascade" | "nested" | "model") {
358368
ingestion,
359369
IdAllocator.layer,
360370
McpAppModelContext.layerEmpty,
371+
PreviewAgentActivity.layer,
361372
ServerSettings.layerTest(),
362373
Layer.mock(TurnItemPositionStore.TurnItemPositionStoreV2)({
363374
allocate: () => Effect.succeed(1),
@@ -474,7 +485,7 @@ function fixture(gate: "snapshot" | "cascade" | "nested" | "model") {
474485
const send = (event: ProviderAdapterV2Event) =>
475486
publish(event).pipe(
476487
Effect.flatMap((acks) =>
477-
Effect.all([...acks.values()].map(Deferred.await), { concurrency: "unbounded" }),
488+
Effect.forEach([...acks.values()], Deferred.await, { concurrency: "unbounded" }),
478489
),
479490
);
480491
return { start, publish, send, projections, history, sink, entered, release, closures, closed };
Collapse file

‎apps/server/src/orchestration-v2/RunExecutionService.transfer.fork.test.ts‎

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 numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ import type {
4242
} from "@t3tools/provider-core/server/ProviderAdapter";
4343
import * as ProjectionStore from "./ProjectionStore.ts";
4444
import * as ProviderEventIngestor from "./ProviderEventIngestor.ts";
45+
import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
4546
import * as RunExecutionService from "./RunExecutionService.ts";
4647
import * as TurnItemPositionStore from "./TurnItemPositionStore.ts";
4748
import * as ThreadCommandExecutor from "./ThreadCommandExecutor.ts";
@@ -285,6 +286,9 @@ function twoSubscriptions(
285286
Effect.succeed({ nodes: [], turnItems: [], runtimeRequests: [] }),
286287
}),
287288
Layer.mock(ThreadCommandExecutor.ThreadCommandExecutor)({}),
289+
Layer.mock(GitVcsDriver.GitVcsDriver)({
290+
resolveBranchName: () => Effect.succeed(null),
291+
}),
288292
),
289293
),
290294
);
Collapse file

‎apps/server/src/zmux/CheckoutSessionStateLease.fork.test.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/zmux/CheckoutSessionStateLease.fork.test.ts
+14-1Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ import * as ProjectStore from "../orchestration-v2/ProjectStore.ts";
2626
import * as ProviderEventIngestor from "../orchestration-v2/ProviderEventIngestor.ts";
2727
import * as ThreadCommandExecutor from "../orchestration-v2/ThreadCommandExecutor.ts";
2828
import * as SqlitePersistence from "../persistence/Sqlite.ts";
29+
import * as GitVcsDriver from "../vcs/GitVcsDriver.ts";
30+
import * as ProviderInstanceRegistry from "../provider/ProviderInstanceRegistry.ts";
2931
import * as ProjectEnrichment from "../project/ProjectEnrichmentService.ts";
3032
import * as ProjectService from "../project/ProjectService.ts";
3133
import * as ServerSettings from "../serverSettings.ts";
@@ -62,7 +64,18 @@ const dependencies = Layer.merge(core, LegacyImporter.layer.pipe(Layer.provide(c
6264
const testLayer = Layer.mergeAll(
6365
dependencies,
6466
ProjectService.layer.pipe(Layer.provide(dependencies)),
65-
ProviderEventIngestor.layer.pipe(Layer.provide(dependencies)),
67+
ProviderEventIngestor.layer.pipe(
68+
Layer.provide(dependencies),
69+
Layer.provide(
70+
Layer.mock(ProviderInstanceRegistry.ProviderInstanceRegistry)({
71+
// @effect-diagnostics-next-line effectSucceedWithVoid:off - Optional instances require undefined rather than void.
72+
getInstance: () => Effect.succeed(undefined),
73+
}),
74+
),
75+
Layer.provide(
76+
Layer.mock(GitVcsDriver.GitVcsDriver)({ resolveBranchName: () => Effect.succeed(null) }),
77+
),
78+
),
6679
);
6780

6881
it.effect("ordinary mutations remain concurrent; pending cleanup excludes later mutations", () =>

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.