Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): stop PR lookups in emptied worktree folders #24803

Mergedjuliusmarmingemerged 15 commits intomain fromrefs/pull/24803/headmerged by juliusmarminge View on GitHub

Showing 4 changed files with 134 additions and 3 deletions (loading 2).

x
0 of 4 viewed, 4 left
126 additions and 0 deletionsapps/server/src/orchestration-v2/ThreadPullRequestService.test.tsModified
View file
@@ -16,6 +16,8 @@
import * as FileSystem from "effect/FileSystem";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
+import * as Path from "effect/Path";
+import * as PlatformError from "effect/PlatformError";
import * as Queue from "effect/Queue";
import * as Stream from "effect/Stream";
import * as TestClock from "effect/testing/TestClock";
@@ -152,6 +154,7 @@
SecureRandom.make((size) => new Uint8Array(size).fill(1)),
FileSystem.layerNoop({}),
+ Path.layer,
yield* Effect.gen(function* () {
const service = yield* ThreadPullRequestService.make;
@@ -176,6 +179,127 @@
​
+ it.effect.each([
+ {
+ worktree: "a linked worktree",
+ existingPaths: ["/workspace/worktree", "/workspace/worktree/.git"],
+ unreadablePaths: [],
+ cwd: "/workspace/worktree",
+ },