feat(services): build runners INF-CI-* and managed service kind ci-runner #62

Merged
sharang merged 1 commits from feat/ci-runner-skus into main 2026-10-05 18:06:49 +00:00
Owner

Build runners for Managed Git (portal follow-up in a separate PR).

  • ERP items (internal/erpsetup/catalog.go): INF-CI-CLD-STD/BUS/ENT (UOM Monat, 149/290/590 €) and INF-CI-OPR-STD/BUS/ENT (UOM Jahr, 2900/5900/11900 €), per runner, German descriptions in the INF-GIT style (dedicated build machine, never shared; 2 vCPU/4 GB, 4 vCPU/8 GB, 8 vCPU/16 GB). erpsetup: 96 → 108 steps, catalogue test lists the six items.
  • Managed services: migration 0013 widens the kind CHECK to git, ci-runner; SKU for ci-runner must match ^INF-CI-(CLD|OPR)-(STD|BUS|ENT)$ (and git still only INF-GIT-*). OpenAPI updated.
  • Uniqueness: a runner's url is the Git instance it serves, and runners are billed per runner, so 0013 replaces UNIQUE (tenant_id, kind, url) with a partial unique index on (tenant_id, url) WHERE kind = 'git' (memory store mirrors it). Down migration deletes runner rows and restores 0012.

Tests: go test ./... green locally incl. Postgres (testcontainers) and the migration up/down round trip.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB

Build runners for Managed Git (portal follow-up in a separate PR). - **ERP items** (`internal/erpsetup/catalog.go`): INF-CI-CLD-STD/BUS/ENT (UOM Monat, 149/290/590 €) and INF-CI-OPR-STD/BUS/ENT (UOM Jahr, 2900/5900/11900 €), per runner, German descriptions in the INF-GIT style (dedicated build machine, never shared; 2 vCPU/4 GB, 4 vCPU/8 GB, 8 vCPU/16 GB). erpsetup: 96 → 108 steps, catalogue test lists the six items. - **Managed services**: migration 0013 widens the kind CHECK to `git`, `ci-runner`; SKU for `ci-runner` must match `^INF-CI-(CLD|OPR)-(STD|BUS|ENT)$` (and `git` still only INF-GIT-*). OpenAPI updated. - **Uniqueness**: a runner's `url` is the Git instance it serves, and runners are billed per runner, so 0013 replaces `UNIQUE (tenant_id, kind, url)` with a partial unique index on `(tenant_id, url) WHERE kind = 'git'` (memory store mirrors it). Down migration deletes runner rows and restores 0012. Tests: `go test ./...` green locally incl. Postgres (testcontainers) and the migration up/down round trip. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang added 1 commit 2026-10-05 17:41:53 +00:00
feat(services): build runners INF-CI-* and managed service kind ci-runner
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 24m25s
ci / image (pull_request) Skipped
f0a6c3f2ae
ERP items INF-CI-CLD-STD/BUS/ENT (Monat, 149/290/590 EUR) and
INF-CI-OPR-STD/BUS/ENT (Jahr, 2900/5900/11900 EUR), priced per runner:
a dedicated build machine per customer, never shared (2 vCPU/4 GB,
4 vCPU/8 GB, 8 vCPU/16 GB).

Migration 0013 adds the managed service kind ci-runner (SKU
^INF-CI-(CLD|OPR)-(STD|BUS|ENT)$). A runner's url is the Git instance it
serves, so the (tenant, kind, url) uniqueness now holds for kind git only
(partial unique index); several runners may serve one instance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DmXxNULoSNPvjF7buKipsB
sharang merged commit 8753305ad4 into main 2026-10-05 18:06:49 +00:00
Sign in to join this conversation.