- scripts/peppa-release.sh: ~/peppa/{repo.git,releases/<sha>,current,shared/.env};
install → next build → checked DB backup → migrate → switch current → kickstart →
health (/api/health commit + fresh heartbeats) → rollback; --queue, --check, --no-restart
- runner/platform-release.ts: deployProd for the platform project (PEPPA_PLATFORM_KEY=PEP)
queues a request for launchd quest.telecom.peppa.release; offer after green main
- CLI: peppa db backup [file], peppa release report; backupDb verifies the copy
- install-launchd.sh: wait for unload after bootout (no "Bootstrap failed: 5"),
release agent (QueueDirectories), PEPPA_ROOT in agents
- bin wrappers: logical root so hooks/credential.helper point at ~/peppa/current
- mock-launchctl, mock-pnpm; e2e platform-release.test.ts; OpenSpec pep-18-peppa-prod
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
1.0 KiB
Markdown
16 lines
1.0 KiB
Markdown
# Tasks: PEP-18
|
|
|
|
## 1. Релиз
|
|
- [x] 1.1 `scripts/peppa-release.sh <sha>|--queue`: раскладка `~/peppa`, замок, worktree, install, build, бэкап, migrate, переключение, kickstart, health, автооткат, отчёты, чистка
|
|
- [x] 1.2 CLI: `peppa db backup [файл]`, `peppa release report`; `backupDb` проверяет копию
|
|
- [x] 1.3 runner: `deployPlatform` + очередь, `deployProd` для проекта платформы, предложение после зелёного main
|
|
|
|
## 2. Хост
|
|
- [x] 2.1 `install-launchd.sh`: ожидание выгрузки, сервис `release` (QueueDirectories), `PEPPA_ROOT` в агентах
|
|
- [x] 2.2 bin-обёртки: логический корень вместо `readlink -f`
|
|
|
|
## 3. Проверка
|
|
- [x] 3.1 `mock-launchctl`, `mock-pnpm`; тест `platform-release.test.ts` по сценариям спеки
|
|
- [x] 3.2 typecheck, весь e2e, `openspec validate`
|
|
- [x] 3.3 AGENTS.md, HANDOFF: прод из `~/peppa/current`, как выкатывать
|