Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): skip history reads for ineligible idle compaction #23929

Mergedazogz(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/23929/headmerged by maria-rcks View on GitHub

Showing 2 changed files with 162 additions and 0 deletions.

x
0 of 2 viewed, 2 left
148 additions and 0 deletionsapps/server/src/orchestration-v2/IdleCompaction.test.tsModified
View file
@@ -1,6 +1,9 @@
import { describe, expect, it } from "@effect/vitest";
import {
+ DEFAULT_SERVER_SETTINGS,
+ EventId,
MessageId,
+ type OrchestrationV2ThreadProjection,
NodeId,
ProjectId,
ProviderDriverKind,
@@ -11,6 +14,17 @@
ThreadId,
} from "@t3tools/contracts";
import * as DateTime from "effect/DateTime";
+import * as Deferred from "effect/Deferred";
+import * as Effect from "effect/Effect";
+import * as Layer from "effect/Layer";
+import * as Stream from "effect/Stream";
+import * as Tracer from "effect/Tracer";
+import * as TestClock from "effect/testing/TestClock";
+​
+import * as ServerSettings from "../serverSettings.ts";
+import * as IdleCompactionService from "./IdleCompactionService.ts";
+import * as Orchestrator from "./Orchestrator.ts";
+import * as ProjectionStore from "./ProjectionStore.ts";
​
import { idleCompactionWindow, type IdleCompactionRecords } from "./IdleCompaction.ts";
​
@@ -154,3 +168,137 @@