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(server): let the first run's checkpoint capture finish in the wa… · MikaMcFlurry/t3code@f339c40

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • apps/server/src/orchestration-v2/testkit
    • ProviderSwitch.integration.test.ts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts‎

Copy file name to clipboardExpand all lines: apps/server/src/orchestration-v2/testkit/ProviderSwitch.integration.test.ts
+12-3Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5012,7 +5012,10 @@ describe("orchestration v2 provider switching", () => {
50125012
});
50135013
yield* send(1);
50145014
yield* worker.drain();
5015-
const idle = yield* waitForIdle(waitingThreadId);
5015+
yield* waitForIdle(waitingThreadId);
5016+
// The run completes before its checkpoint capture; let the capture finish first.
5017+
yield* worker.drain();
5018+
const idle = yield* orchestrator.getThreadProjection(waitingThreadId);
50165019
const firstSession = idle.providerSessions.find(
50175020
(session) => session.providerInstanceId === CLAUDE_MODEL_SELECTION.instanceId,
50185021
)!;
@@ -5193,7 +5196,10 @@ describe("orchestration v2 provider switching", () => {
51935196
});
51945197
yield* send(1, CLAUDE_MODEL_SELECTION);
51955198
yield* worker.drain();
5196-
const idle = yield* waitForIdle(threadId);
5199+
yield* waitForIdle(threadId);
5200+
// The run completes before its checkpoint capture; let the capture finish first.
5201+
yield* worker.drain();
5202+
const idle = yield* orchestrator.getThreadProjection(threadId);
51975203
const firstSession = idle.providerSessions.find(
51985204
(session) => session.providerInstanceId === CLAUDE_MODEL_SELECTION.instanceId,
51995205
)!;
@@ -5361,7 +5367,10 @@ describe("orchestration v2 provider switching", () => {
53615367
dispatchMode: { type: "start_immediately" },
53625368
});
53635369
yield* worker.drain();
5364-
const idle = yield* waitForIdle(threadId);
5370+
yield* waitForIdle(threadId);
5371+
// The run completes before its checkpoint capture; let the capture finish first.
5372+
yield* worker.drain();
5373+
const idle = yield* orchestrator.getThreadProjection(threadId);
53655374
const firstSession = idle.providerSessions[0]!;
53665375
const run = idle.runs[0]!;
53675376
const now = yield* DateTime.now;

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.