Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(server): let t3.json declare disposable paths for worktree cleanup #15756

Closedjlcara(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/15756/headopened View on GitHub

Showing 7 changed files with 67 additions and 16 deletions (loading 4).

x
0 of 7 viewed, 7 left
1 addition and 0 deletionsapps/server/src/server.tsModified
View file
@@ -530,6 +530,7 @@
layerThreadSettlementWorker,
Layer.effectDiscard(StorageCleanup.make.pipe(Effect.flatMap((service) => service.start()))).pipe(
Layer.provide(ProjectionStoreV2.layer),
+ Layer.provide(T3ProjectFileLoader.layer),
layerThreadPullRequestWorker,
Layer.effectDiscard(
34 additions and 0 deletionsapps/server/src/storageCleanup.test.tsModified
View file
@@ -10,6 +10,7 @@
import * as DateTime from "effect/DateTime";
import {
storageCleanupActivityAt,
+ storageCleanupIgnoredDisposable,
storageCleanupPullRequestMerged,
storageCleanupThreadIdle,
} from "./storageCleanup.ts";
@@ -196,3 +197,36 @@
expect(storageCleanupPullRequestMerged(pullRequest({ state: "open" }), integrated)).toBe(false);
});
});
+​
+describe("V2 storage cleanup ignored files", () => {
+ const listing = (...entries: ReadonlyArray<string>) => ({
+ stdout: entries.map((entry) => `${entry}\0`).join(""),
+ stdoutTruncated: false,