-
Notifications
You must be signed in to change notification settings - Fork 0
Deploy Production blocked: alembic upgrade fails with missing greenlet #2965
Copy link
Copy link
Open
Labels
backendBackend implementationBackend implementationbugSomething isn't workingSomething isn't workingci-infrastructuredatabaseDatabase/model changesDatabase/model changesfactoryWork owned or produced by an autonomous ComicPile factoryWork owned or produced by an autonomous ComicPile factoryfactory:localCurrent next-action owner is the local OpenCode factoryCurrent next-action owner is the local OpenCode factoryfactory:reviewThe exact current head needs review or re-reviewThe exact current head needs review or re-reviewralph-priority:highralph-status:in-reviewralph-taskAn independently executable implementation taskAn independently executable implementation task
Description
Activity
Metadata
Metadata
Assignees
Labels
backendBackend implementationBackend implementationbugSomething isn't workingSomething isn't workingci-infrastructuredatabaseDatabase/model changesDatabase/model changesfactoryWork owned or produced by an autonomous ComicPile factoryWork owned or produced by an autonomous ComicPile factoryfactory:localCurrent next-action owner is the local OpenCode factoryCurrent next-action owner is the local OpenCode factoryfactory:reviewThe exact current head needs review or re-reviewThe exact current head needs review or re-reviewralph-priority:highralph-status:in-reviewralph-taskAn independently executable implementation taskAn independently executable implementation task
Problem
Deploy Productiononmainis failing in Migrate Neon and deploy exact main SHA atalembic upgrade head. Production is not getting new tip SHAs until this is fixed.CI and Main Health Gate on tip are green; this is deploy-path only.
Error
Fails while importing
app.models→app.database→sqlalchemy.ext.asyncioduring Alembic env load.Evidence
Migrate Neon and deploy exact main SHA)4e925c5ee31a2aa1bb720912b93cf31dee7df53dand earlier tips9b3181cf/9b0b2665(started ~Sep 29 evening CT)a110f31b295e(~3:52pm CT Sep 29)d1aa29806941); failure is dependency import, not migration graphLikely area (verify; do not treat as prescription)
Deploy workflow’s locked runtime install for the migrate step may be missing
greenlet/sqlalchemy[asyncio]after a dependency or Python-version change. Checkpyproject.toml/ lockfile / deploy-production migrate job install steps versus whatalembic/env.pyimports.Acceptance criteria
alembic upgrade headsucceeds in the Deploy Production migrate job with the same install path GHA uses (greenlet available to SQLAlchemy asyncio).maincompletes migrate + deploy (or skips deploy only via the intended exact-SHA dedupe path, not migrate failure).Out of scope