feat(ci): schema-drift deploy gate (recipe + script)#483
Open
seonghobae wants to merge 1 commit into
Open
Conversation
P0 roadmap item. docs/ci-drift-check.md documents gating deploys on 'schema matches the approved baseline' via GET /diff?against= (has_changes) with exit-code semantics, plus a ready-made scripts/ci/check_schema_drift.sh (0 = no drift, 1 = drift + prints summary & reconciling migration.sql, 2 = missing/unauthorized) and a GitHub Actions example. Script syntax + JSON extraction paths verified. Depends only on the diff/migration endpoints (#465). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AxU2xaupAjp912oDNFuWyd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Independent PR against
main(docs + script; pairs with #465's diff/migration endpoints). Gates deploys on "schema matches the approved baseline":docs/ci-drift-check.md(workflow + GitHub Actions example) andscripts/ci/check_schema_drift.sh— exit0no drift,1drift (prints structured summary and the reconciling migration SQL),2missing/unauthorized. CI/CD integration is the stickiest use case for the snapshot/diff APIs. Script syntax + extraction paths verified.🤖 Generated with Claude Code