Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): PR sync stops reading missing pull requests every minute #17800

Mergedabiassi(GitHub profile, opens in a new tab)merged 8 commits intomain fromrefs/pull/17800/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 161 additions and 3 deletions (loading 1).

x
0 of 2 viewed, 2 left
161 additions and 3 deletionsapps/server/src/orchestration-v2/PullRequestSyncReactor.test.tsModified
View file
@@ -41,7 +41,7 @@
import * as Orchestrator from "./Orchestrator.ts";
import * as ProjectionStore from "./ProjectionStore.ts";
import * as PullRequestSyncReactor from "./PullRequestSyncReactor.ts";
-import type { PullRequestTestThread } from "./testkit/pullRequestFixtures.ts";
+import { type PullRequestTestThread, v2PullRequestThread } from "./testkit/pullRequestFixtures.ts";
​
const NOW = "2026-08-28T12:00:00.000Z";
const PROJECT_ID = ProjectId.make("sync-project");
@@ -161,6 +161,14 @@
​
+const missingSummary = Effect.fail(
+ new PullRequestOperationError({
+ operation: "summary",
+ detail: "Pull request not found",
+ reason: "not-found",
+ }),
+);
+​
interface HarnessOptions {
readonly invalidate?: PullRequestService.PullRequestService["Service"]["invalidate"];
readonly snapshot: TestShellSnapshot;
@@ -1262,7 +1270,11 @@
makeThread("settled", {
settledOverride: "settled",
settledAt: "2026-08-21T00:00:00.000Z",