Add encrypted remote compaction to the event log (#9571)

This commit is contained in:
Tim
2026-10-26 20:48:01 +00:00
committed by effect-bot
parent 080537b47a
commit a92db31b90
27 changed files with 5660 additions and 293 deletions
@@ -1,7 +1,9 @@
import { SqliteClient } from "@effect/sql-sqlite-node"
import { assert, describe, it } from "@effect/vitest"
import { Effect, Layer, Queue, Redacted, Stream } from "effect"
import * as CompactionTest from "effect-test/eventlog/EventLogServerEncryptedCompactionTest"
import * as EncryptedTest from "effect-test/eventlog/EventLogServerEncryptedTest"
import * as SqlEventLogServerEncryptedStorageTest from "effect-test/eventlog/SqlEventLogServerEncryptedStorageTest"
import * as Digest from "effect/crypto/Digest"
import * as EventJournal from "effect/eventlog/EventJournal"
import * as EventLog from "effect/eventlog/EventLog"
@@ -26,6 +28,14 @@ EncryptedTest.suite(
)
)
CompactionTest.suite(
"SQLite",
(options) => SqlEventLogServer.layerStorage(options).pipe(Layer.provide(Digest.layerWebCrypto)),
SqliteClient.layer({ filename: ":memory:" })
)
SqlEventLogServerEncryptedStorageTest.compactionSuite("SQLite", SqliteClient.layer({ filename: ":memory:" }))
const storeIdA = "store-a" as StoreId
const storeIdB = "store-b" as StoreId