veza/make
senke 4ee8c38536
Some checks failed
Veza CI / Backend (Go) (push) Failing after 0s
Veza CI / Frontend (Web) (push) Failing after 0s
Veza CI / Rust (Stream Server) (push) Failing after 0s
Frontend CI / test (push) Failing after 0s
Security Scan / Secret Scanning (gitleaks) (push) Failing after 0s
Veza CI / Notify on failure (push) Failing after 0s
feat(ci): enforce OpenAPI type sync — drift prevention (v1.0.8 P0)
Phase 0 of the OpenAPI typegen migration. Locks in the existing
check-types-sync.sh (which was committed but never wired) so we stop
accumulating drift between veza-backend-api/openapi.yaml and
apps/web/src/types/generated/ before we migrate to orval (Phase 1).

Three enforcement points:

1. Pre-commit hook (.husky/pre-commit)
   Replaces the naked generate-types.sh call with check-types-sync.sh,
   which regenerates and fails if the working tree differs. Skippable
   via SKIP_TYPES=1 (already documented in CLAUDE.md) for emergency
   commits and for environments without node_modules.

2. CI gate (.github/workflows/frontend-ci.yml)
   New "Check OpenAPI types in sync" step before lint/build. Catches
   PRs that touched openapi.yaml without regenerating types.
   Expanded the paths trigger to include veza-backend-api/openapi.yaml
   and docs/swagger.yaml so spec-only edits still run the check.

3. Makefile target (make openapi-check)
   Local convenience — same check as CI/hook, callable without staging
   anything. Pairs with existing `make openapi` (regenerate spec from
   swaggo annotations).

No spec or type file changes in this commit — pure plumbing.

Refs:
- AUDIT_REPORT.md §9 item #8 (OpenAPI typegen, deferred v1.0.8)
- Memory: project_next_priority_openapi_client.md
- /home/senke/.claude/plans/audit-fonctionnel-wild-hickey.md Item 2 Phase 0

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-23 20:33:13 +02:00
..
build.mk v0.9.3 2026-03-05 19:35:57 +01:00
config.mk feat: backend, stream server & infra improvements 2026-03-18 11:36:06 +01:00
dev.mk feat: backend, stream server & infra improvements 2026-03-18 11:36:06 +01:00
help.mk release(v0.903): Vault - ORDER BY whitelist, rate limiter, VERSION sync, chat-server cleanup, Go 1.24 2026-02-27 09:43:25 +01:00
high.mk feat: backend, stream server & infra improvements 2026-03-18 11:36:06 +01:00
incus.mk release(v0.903): Vault - ORDER BY whitelist, rate limiter, VERSION sync, chat-server cleanup, Go 1.24 2026-02-27 09:43:25 +01:00
infra.mk chore: infrastructure — docker, makefile, dependencies 2026-03-23 16:05:48 +01:00
services.mk small fixes : cors + login loop 2026-02-07 20:36:48 +01:00
test.mk fix: sync E2E tests with seed data + i18n fix 2026-04-02 19:42:03 +02:00
tools.mk feat(ci): enforce OpenAPI type sync — drift prevention (v1.0.8 P0) 2026-04-23 20:33:13 +02:00
ui.mk small fixes : cors + login loop 2026-02-07 20:36:48 +01:00