peppa/packages/testkit/test
Асель 3a282b8054 PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres
- packages/db: schema on sqlite-core (timestamps as epoch ms → Date, JSON as text,
  booleans 0/1), one baseline migration; node:sqlite client under drizzle's
  better-sqlite3 session (busy_timeout first, WAL, BEGIN IMMEDIATE, retries on
  SQLITE_BUSY, lazy open, async transaction callbacks refused); PEPPA_DB
  (default ~/.peppa/peppa.db)
- live updates: notify() pokes the bot over a unix socket; the bot also watches
  PRAGMA data_version every second (writes by other processes)
- Postgres specifics ported: createTask transaction is synchronous, no
  `for update skip locked`, `count(*)`, json_extract instead of ->>, json_each
  instead of @>
- `peppa db migrate` and `peppa db migrate-to-sqlite <file>` (read-only
  snapshot of Postgres, FK order from the schema, row count + foreign key
  checks, file appears only when they pass); old Postgres schema kept in
  packages/cli/legacy-pg-migrations for the migration and its test
- daily VACUUM INTO backup from the watchdog (7 copies, admin alert on failure)
- tests: a temp SQLite file per test file; storage.test.ts (20 processes,
  per-project numbering across processes, socket/data_version, migration from
  Postgres incl. a dangling foreign key, backups); two test races fixed
- CI: no per-run Postgres database; PEPPA_TEST_PG only for the migration test

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 17:23:24 +05:00
..
access.test.ts PEP-16: only allowlisted people can log into Peppa 2026-11-13 03:38:08 +05:00
autonomy.test.ts PEP-7: autonomous mode — board moves start agents, PM only for stoppers 2026-11-12 21:21:11 +05:00
bot.test.ts PEP-2: Telegram per user — pairing from Settings, delivery by project access 2026-11-13 03:44:30 +05:00
ci-feedback.test.ts PEP-57: PM question on red CI is not closed by the agent's prompts 2026-11-13 16:59:04 +05:00
ci.test.ts PEP-57: CI feedback — check runs, red checks back to the agent, review/merge gates 2026-11-13 14:37:10 +05:00
cjm.test.ts PEP-22: harden timing-sensitive e2e steps, archive change 2026-11-13 15:00:28 +05:00
claude-auth.test.ts PEP-13: connect Claude from the web for remote users 2026-11-12 22:06:37 +05:00
deploy.test.ts PEP-57: CD — deploy workflow, preview/staging/prod, health check and rollback, releases 2026-11-13 14:49:24 +05:00
helpers.ts PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
incidents.test.ts PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
limits.test.ts PEP-22: harden timing-sensitive e2e steps, archive change 2026-11-13 15:00:28 +05:00
monitor.test.ts PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
oauth.test.ts PEP-57: MCP tool list in the OAuth test 2026-11-13 14:53:34 +05:00
repo-visibility.test.ts PEP-15: where the project's repo is in Gitea — link, visibility, namespace 2026-11-13 14:12:07 +05:00
sharing.test.ts PEP-61: top menu — Home instead of Inbox, Runners and Projects pages 2026-11-13 14:02:37 +05:00
storage.test.ts PEP-36 stage 2: SQLite (node:sqlite, WAL) instead of Postgres 2026-11-13 17:23:24 +05:00
web.test.ts PEP-1: web platform with Gitea login, projects, goals, tasks, sessions 2026-11-12 20:55:02 +05:00