Skip to content

ci: monorepo pre-push local CI orchestration#1

Merged
cocoyoon merged 1 commit into
mainfrom
ci/monorepo-pre-push-local
Mar 23, 2026
Merged

ci: monorepo pre-push local CI orchestration#1
cocoyoon merged 1 commit into
mainfrom
ci/monorepo-pre-push-local

Conversation

@cocoyoon
Copy link
Copy Markdown
Member

Summary

Adds a repo-root pre-push flow so git push runs local checks before the Rust api-server suite.

Changes

  • scripts/git-pre-push.sh: main/master direct-push guard, frontend placeholder, optional RUN_AI_SERVER_CI=1 for ai-server, then existing packages/api-server/scripts/pre-push.sh.
  • .githooks/pre-push + just hook / core.hooksPath=.githooks.
  • Root bun run ci:local.
  • ai-server: scripts/pre-push.sh, format:check, test:ci, ci:local (opt-in at monorepo level by default).
  • Docs: GIT_WORKFLOW.md, TESTING.md, AGENTS.md; api-server justfile hook targets monorepo root.

Verification

  • git push on this branch ran the full hook successfully (fmt, clippy, tests, deny, tarpaulin, migration sync).

Made with Cursor

- Root scripts/git-pre-push.sh: main/master guard, frontend placeholder,
  optional RUN_AI_SERVER_CI for ai-server, then api-server pre-push
- Commit .githooks/pre-push; just hook sets core.hooksPath; bun run ci:local
- ai-server: scripts/pre-push.sh plus format:check, test:ci, ci:local scripts
- api-server: GIT_WORKFLOW/TESTING/AGENTS, justfile hook to repo root, pre-push header

Made-with: Cursor
@cocoyoon cocoyoon merged commit f9a82a9 into main Mar 23, 2026
1 check passed
cocoyoon added a commit that referenced this pull request Apr 20, 2026
…dependent first migration (#267)

Context
  m20240101_000001_create_users creates FK public.users.id → auth.users(id).
  On prod Supabase auth.users exists (managed by GoTrue); on local plain Postgres
  it doesn't, so the FK creation fails at migration #1. The later decouple
  migration in this PR would drop the FK, but it never gets a chance to run.

Fix
  New m20230101_000000_local_auth_stub registered at the top of the migration
  vec. Creates `auth` schema + minimal `auth.users(id uuid PRIMARY KEY)` with
  IF NOT EXISTS so prod is untouched, local gets a stub the FK can attach to.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant