Skip to content

Commit 3a5785f

Browse files
committed
test(s034): the archive tests are SQLite's, as the archive is; docs/backup.md says what Postgres does
Run 35553598612's postgres job had no SQLite file to snapshot. Signed-off-by: Ayla Croft <aylacroft@proton.me>
1 parent 27d0305 commit 3a5785f

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎docs/backup.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ faithful. The search index is inside the database on SQLite; on Postgres it is a
4949

5050
`--data-dir <dir>` points either task at a directory other than the configured one.
5151

52+
## Postgres
53+
54+
The archive is the SQLite data directory's. A deployment on Postgres (`TRINITY_DB=postgres`) keeps its rows in
55+
that database and backs it up with Postgres's own tools (`pg_dump`); the export there carries the key registry
56+
and the directories, not the databases, and says so in the manifest's file list.
57+
5258
## Size
5359

5460
On the machine this was written on (2026-09-21), 18 sessions and 8,029 messages made a 713 KB archive (3.1 MB

‎test/mix/trinity_import_task_test.exs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ defmodule Mix.Tasks.Trinity.ImportTaskTest do
44
@moduledoc "Slice 034: the import task refuses a held data directory and a non-empty one, and restores into an empty one."
55
use ExUnit.Case, async: false
66

7+
# The archive is the SQLite data directory\'s (docs/backup.md); the postgres job excludes :sqlite.
8+
@moduletag :sqlite
9+
710
alias Trinity.Archive
811
alias Trinity.Archive.Layout
912

‎test/trinity/archive/round_trip_test.exs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ defmodule Trinity.Archive.RoundTripTest do
1010
"""
1111
use ExUnit.Case, async: false
1212

13+
# The archive is the SQLite data directory\'s (docs/backup.md); the postgres job excludes :sqlite.
14+
@moduletag :sqlite
15+
1316
import Ecto.Query, only: [from: 2]
1417

1518
alias Ecto.Adapters.SQL.Sandbox

‎test/trinity_web/settings_export_test.exs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ defmodule TrinityWeb.SettingsExportTest do
44
@moduledoc "Slice 034: the settings page links to the export; the download is a tarball whose manifest parses and names the keys choice."
55
use TrinityWeb.ConnCase, async: false
66

7+
# The archive is the SQLite data directory\'s (docs/backup.md); the postgres job excludes :sqlite.
8+
@moduletag :sqlite
9+
710
import Phoenix.LiveViewTest
811

912
alias Trinity.Archive.Manifest

0 commit comments

Comments
 (0)