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:
@@ -10,8 +10,8 @@ from unittest.mock import patch
|
||||
|
||||
import pytest
|
||||
|
||||
from scribe.services import backup_destination, backup_job
|
||||
from scribe.services.backup_destination import (
|
||||
from grimoire.services import backup_destination, backup_job
|
||||
from grimoire.services.backup_destination import (
|
||||
BackupConfig, Delivered, DestinationError, apply_changes,
|
||||
)
|
||||
|
||||
@@ -48,7 +48,7 @@ def _patched(settings, deliver=None, config=BackupConfig(enabled=True)):
|
||||
patch.object(backup_job, "load_config", load_config),
|
||||
patch.object(backup_job, "load_secret", load_secret),
|
||||
patch.object(backup_job, "deliver", deliver or delivered),
|
||||
patch("scribe.services.backup.export_full_backup", export),
|
||||
patch("grimoire.services.backup.export_full_backup", export),
|
||||
]
|
||||
|
||||
|
||||
@@ -211,8 +211,8 @@ def test_a_typed_mistake_is_refused_with_the_reason(data, said):
|
||||
|
||||
|
||||
def test_routes_and_scheduler_are_wired():
|
||||
from scribe.app import create_app
|
||||
from scribe.routes import admin as admin_routes
|
||||
from grimoire.app import create_app
|
||||
from grimoire.routes import admin as admin_routes
|
||||
|
||||
for name in ("get_backups", "update_backups", "check_backups_destination", "run_backup_now"):
|
||||
assert callable(getattr(admin_routes, name))
|
||||
|
||||
Reference in New Issue
Block a user