Commit Graph
18 Commits
Author SHA1 Message Date
jjbruntonandClaude Opus 5 d14869d745 ci(branch-policy): allow hotfix and release branches into main
The policy accepted only `staging` as a head for main, so any change
production needed before the next promotion had nowhere to go: the PR was
unmergeable by CI and branch protection blocks direct pushes.

Accept `hotfix/*` and `release/*` heads as well. The naming requirement
keeps a direct-to-main change deliberate and visible, and the master
freeze plus the "features target staging" rule are unchanged. Document
the escape hatch and the need to land the same commit on staging.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-31 18:03:48 +01:00
jjbrunton 5f77b06044 test(coverage): enforce API and app floors
Measure untouched mobile source, add regression coverage for native media paths and account operations, and enforce ratcheting API and mobile thresholds in required CI checks.
2026-08-29 22:50:07 +01:00
jjbrunton 78900a24fb ci(staging): enable direct verification
Allow agents to run required checks manually against an exact commit before pushing it directly to staging, while retaining protected status checks.
2026-08-28 20:41:18 +01:00
jjbrunton a455325147 ci(deploy): establish staged Dokploy promotion 2026-08-28 14:54:12 +01:00
jjbrunton 04dee69888 fix(ci): scope Terraform deployments
Skip Terraform for function-only Supabase releases to avoid unrelated provider drift failures. Continue applying infrastructure for terraform path changes or explicit manual deployment requests.
2026-08-27 22:08:08 +01:00
jjbrunton 01bb8225ae chore(harness): make repository agent-ready
Add concise routed context, task-aware agent roles, focused skills, and structured learning promotion.\n\nUnify local development and workspace tooling, add layered test and E2E verification, harden MCP authentication, and gate deployment behind verification and explicit production promotion.
2026-08-27 20:58:48 +01:00
jjbruntonandClaude Opus 4.5 307af2c1e9 fix(ci): restore --include-all after backfilling prod migration history
All 57 pre-existing migrations have been registered in prod's
schema_migrations table so db push --include-all will skip them
and only apply new migrations.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 22:15:36 +00:00
jjbruntonandClaude Opus 4.5 057c682c6c fix(ci): remove --include-all from db push to prevent re-applying old migrations
Production only had one migration tracked in schema_migrations.
With --include-all, db push tried to re-run all 57 earlier migrations.
Without it, only migrations newer than the latest tracked version are applied.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 22:08:58 +00:00
jjbruntonandClaude Opus 4.5 d4e05bc7ff Add --include-all flag to db push in CI
Allows migrations with timestamps before existing remote migrations
to be applied. Needed when migration files are renamed or when
environments have diverged.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 19:34:18 +00:00
jjbruntonandClaude Opus 4.5 bc38e41572 Deploy migrations and functions to both non-prod and prod
Use matrix strategy to deploy sequentially: non-prod first, then prod.
This ensures both environments stay in sync and provides a safety gate.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 09:50:58 +00:00
jjbruntonandClaude Opus 4.5 f88ee513d4 Fix function list parsing to skip header rows
Use grep to only match lines starting with lowercase (function names),
and add validation to skip empty or invalid names.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 21:45:01 +00:00
jjbruntonandClaude Opus 4.5 5ae776d921 Use --workdir apps for all Supabase CLI commands
CLI expects supabase/functions/ relative to workdir, so --workdir apps
makes it find apps/supabase/functions/.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 21:43:19 +00:00
jjbruntonandClaude Opus 4.5 dcf5588d55 Fix functions deploy to run from apps/supabase directory
Supabase CLI expects functions in supabase/functions/ relative to workdir.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 21:42:18 +00:00
jjbruntonandClaude Opus 4.5 df9f711a3e Add --project-ref to functions deploy command
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 21:41:10 +00:00
jjbruntonandClaude Opus 4.5 9ce864afa5 Fix db push by running supabase link from correct directory
supabase db push doesn't support --project-ref, it relies on link.
Run link from apps/supabase so the config is in the right place.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 21:40:09 +00:00
jjbruntonandClaude Opus 4.5 22a2c8b5c6 Add workflow_dispatch and self-trigger to deploy workflow
- Allow manual triggering via workflow_dispatch
- Trigger on changes to the workflow file itself

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 21:37:48 +00:00
jjbruntonandClaude Opus 4.5 b090400604 Fix supabase db push in CI by passing --project-ref directly
The supabase link command was running from repo root while db push
ran from apps/supabase, causing it to not find the linked project.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-24 21:36:33 +00:00
jjbrunton 7e2e723880 Align prod schema and deploy tooling 2026-01-24 20:16:01 +00:00