Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/hosted-managed-operations.md
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ Run the isolated maintenance profile explicitly; it is not started by normal
`up`:

```bash
backup_id="production-$(date -u +%Y%m%dT%H%M%SZ)"
backup_id="production-$(date -u +%Y%m%dt%H%M%Sz)"
docker compose --project-name platform-managed-production \
--file docker-compose.hosted-managed-production.example.yml \
--profile maintenance run --rm managed-operation-maintenance \
Expand Down
14 changes: 14 additions & 0 deletions tests/test_hosted_managed_production.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,20 @@ def test_dry_run_requires_explicit_preflight_mode(self) -> None:


class HostedManagedRuntimeBackupTests(unittest.TestCase):
def test_runbook_backup_id_matches_runtime_contract(self) -> None:
runbook = (
Path(__file__).resolve().parents[1]
/ "docs"
/ "hosted-managed-operations.md"
).read_text(encoding="utf-8")
self.assertIn(
'backup_id="production-$(date -u +%Y%m%dt%H%M%Sz)"',
runbook,
)
self.assertIsNotNone(
backup.BACKUP_ID_PATTERN.fullmatch("production-20260713t002228z")
)

def test_backup_archives_workspace_artifacts_without_paths_in_summary(self) -> None:
with tempfile.TemporaryDirectory() as temp_dir:
root = Path(temp_dir)
Expand Down