-
Notifications
You must be signed in to change notification settings - Fork 168
Restart alembic versions with the table creation #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Having alembic migration on gunicorn startup works, tested with empty SQLite and PostgreSQL, however not optimal for CI/CD. Need to explore how to do it better for CI/CD. |
Signed-off-by: Madhav Kandukuri <[email protected]>
Fix the migration to be idempotent In the migration file, wrap column additions in try/except or check existence
Getting this:
|
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
Signed-off-by: Madhav Kandukuri <[email protected]>
This pull request makes several changes across multiple files, focusing on database migration management, container setup, and test improvements. 1. Migration & Database Setup
2. Codebase Clean-up
3. Tests
4. Container & Compose Files
General AssessmentPros:
Cons/Risks:
Recommendations
|
.travis.yml
Outdated
curl -fsSL http://localhost:4444/health || { | ||
echo "❌ Health check failed"; docker logs mcpgateway; exit 1; | ||
} | ||
# echo "🔍 Hitting health endpoint..." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should re-enable healthchecks
@@ -60,16 +60,8 @@ services: | |||
condition: service_healthy # ▶ wait for DB | |||
redis: | |||
condition: service_started | |||
# migration: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't remove healthcheck
Signed-off-by: Mihai Criveti <[email protected]>
Testing Summary:
|
🐛 Bug-fix PR
📌 Summary
Identified the right way to do alembic migration. First migration script to have table creation commands.
💡 Fix Description
Base.metadata.create_all()
replaced withcommand.upgrade(cfg, "head")
set in gunicorn.config.py.🧪 Verification
make lint
make test
📐 MCP Compliance (if relevant)
✅ Checklist
make black isort pre-commit
)