rename(547): the server is grimoire — package, image, DB defaults, backups
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 56s
CI & Build / integration (push) Successful in 1m4s
CI & Build / Python tests (push) Successful in 1m55s
CI & Build / Build & push image (push) Successful in 44s
CI & Build / Python lint (push) Successful in 3s
CI & Build / Plugin hooks (push) Successful in 12s
CI & Build / TypeScript typecheck (push) Successful in 56s
CI & Build / integration (push) Successful in 1m4s
CI & Build / Python tests (push) Successful in 1m55s
CI & Build / Build & push image (push) Successful in 44s
Step 2 of the Scribe -> Grimoire rename. - src/scribe -> src/grimoire, and every import, patch target, module path, hypercorn entry point and `python -m grimoire.restore` with it; pyproject, uv.lock and the frontend package are named grimoire. - Image git.fabledsword.com/bvandeusen/fabledgrimoire; CI's Postgres service runs as grimoire / grimoire_test. - Compose files default the DB user, database and (prod) volume to grimoire, each overridable from .env, so an install created as Scribe keeps its data by setting POSTGRES_USER, POSTGRES_DB and PGDATA_VOLUME. - Backups are written as grimoire-<ts>.tar with format grimoire-backup-tar. Archives named scribe-* with the scribe-backup-tar manifest still restore and are still counted at the destination (folder and S3), with tests. - Exports, the MCP auth realm, the ASGI scope key and the persistent logger carry the new name. Kept on purpose: the secret-sealing key label stays "scribe.secrets.v1", because every stored secret was derived under it. Plugin identity (plugin name, hooks, env vars, .scribe marker, skills) is step 3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,7 +42,7 @@ def _session_factory(counter: list[int], results: list):
|
||||
async def test_summaries_for_many_projects_open_ONE_session():
|
||||
"""The whole point. Twenty-five projects must not mean twenty-five
|
||||
checkouts — that is the shape that exhausted the pool."""
|
||||
from scribe.services import projects as svc
|
||||
from grimoire.services import projects as svc
|
||||
|
||||
opened = [0]
|
||||
rows = [
|
||||
@@ -51,7 +51,7 @@ async def test_summaries_for_many_projects_open_ONE_session():
|
||||
[], # last activity
|
||||
]
|
||||
with patch.object(svc, "async_session", _session_factory(opened, rows)), \
|
||||
patch("scribe.services.milestones.get_project_milestone_summaries",
|
||||
patch("grimoire.services.milestones.get_project_milestone_summaries",
|
||||
AsyncMock(return_value={})):
|
||||
out = await svc.get_project_summaries(1, [1, 2])
|
||||
|
||||
@@ -67,11 +67,11 @@ async def test_summaries_for_many_projects_open_ONE_session():
|
||||
async def test_every_requested_project_gets_an_entry():
|
||||
"""A project with no notes at all must still appear. The frontend indexes
|
||||
by id and renders `undefined.task_counts` as a crash, not a blank."""
|
||||
from scribe.services import projects as svc
|
||||
from grimoire.services import projects as svc
|
||||
|
||||
opened = [0]
|
||||
with patch.object(svc, "async_session", _session_factory(opened, [[], [], []])), \
|
||||
patch("scribe.services.milestones.get_project_milestone_summaries",
|
||||
patch("grimoire.services.milestones.get_project_milestone_summaries",
|
||||
AsyncMock(return_value={})):
|
||||
out = await svc.get_project_summaries(1, [4, 5, 6])
|
||||
|
||||
@@ -86,7 +86,7 @@ async def test_every_requested_project_gets_an_entry():
|
||||
async def test_no_projects_opens_no_session_at_all():
|
||||
"""`.in_([])` is a valid but pointless query; the guard keeps an empty
|
||||
install from paying for a connection to learn it has nothing."""
|
||||
from scribe.services import projects as svc
|
||||
from grimoire.services import projects as svc
|
||||
|
||||
opened = [0]
|
||||
with patch.object(svc, "async_session", _session_factory(opened, [])):
|
||||
@@ -98,7 +98,7 @@ async def test_no_projects_opens_no_session_at_all():
|
||||
async def test_milestone_summaries_for_many_projects_open_ONE_session():
|
||||
"""Same property one level down — this was the nested half of the fan-out,
|
||||
a session per MILESTONE, which is what turned 25 into ~250."""
|
||||
from scribe.services import milestones as svc
|
||||
from grimoire.services import milestones as svc
|
||||
|
||||
written = datetime(2026, 9, 1, tzinfo=timezone.utc)
|
||||
m1 = MagicMock(id=10, project_id=1, updated_at=written)
|
||||
@@ -131,7 +131,7 @@ def test_both_progress_paths_share_one_rule():
|
||||
"""get_milestone_progress and the batch path must not compute pct
|
||||
differently — two screens disagreeing about whether a milestone is done is
|
||||
exactly the drift this codebase keeps finding."""
|
||||
from scribe.services.milestones import _progress_from_counts
|
||||
from grimoire.services.milestones import _progress_from_counts
|
||||
|
||||
assert _progress_from_counts({"done": 3, "cancelled": 1})["pct"] == 100.0
|
||||
assert _progress_from_counts({"cancelled": 2})["pct"] == 0.0
|
||||
|
||||
Reference in New Issue
Block a user