fix: remove stale Board import from alembic/env.py #261

Closed
opened 2026-04-12 17:03:32 +00:00 by forgejo_admin · 0 comments
Contributor

Type

Bug

Lineage

Regression from forgejo_admin/pal-e-api #245 — "drop legacy boards table" removed the Board model from models.py but did not update alembic/env.py.

Repo

forgejo_admin/pal-e-api

What Broke

CI pipeline fails on every merge to main. The migration-test step runs alembic upgrade head which triggers ImportError: cannot import name 'Board' from 'pal_e_docs.models'. The Board model was removed in PR #245 but alembic/env.py still imports it. This blocks all image builds — no code changes can deploy.

Repro Steps

  1. Push any commit to main
  2. Woodpecker CI runs migration-test step
  3. alembic upgrade head fails with ImportError
  4. Build step never runs
  5. No new image pushed to Harbor

Expected Behavior

Migration test passes. Build completes. Image deploys.

Environment

  • Cluster/namespace: prod / pal-e-docs
  • Service version/commit: stuck at 89f663b (pre-boards-drop)
  • Pipeline: #90, #91 both failing

Acceptance Criteria

  • alembic/env.py no longer imports Board
  • CI pipeline passes (migration-test + build)
  • New image deploys to cluster
  • project-pal-e-platform — platform project
  • forgejo_admin/pal-e-api #245 — the PR that removed the Board model
### Type Bug ### Lineage Regression from `forgejo_admin/pal-e-api #245` — "drop legacy boards table" removed the `Board` model from `models.py` but did not update `alembic/env.py`. ### Repo `forgejo_admin/pal-e-api` ### What Broke CI pipeline fails on every merge to main. The `migration-test` step runs `alembic upgrade head` which triggers `ImportError: cannot import name 'Board' from 'pal_e_docs.models'`. The `Board` model was removed in PR #245 but `alembic/env.py` still imports it. This blocks all image builds — no code changes can deploy. ### Repro Steps 1. Push any commit to main 2. Woodpecker CI runs migration-test step 3. `alembic upgrade head` fails with ImportError 4. Build step never runs 5. No new image pushed to Harbor ### Expected Behavior Migration test passes. Build completes. Image deploys. ### Environment - Cluster/namespace: prod / pal-e-docs - Service version/commit: stuck at `89f663b` (pre-boards-drop) - Pipeline: #90, #91 both failing ### Acceptance Criteria - [ ] `alembic/env.py` no longer imports `Board` - [ ] CI pipeline passes (migration-test + build) - [ ] New image deploys to cluster ### Related - `project-pal-e-platform` — platform project - `forgejo_admin/pal-e-api #245` — the PR that removed the Board model
forgejo_admin 2026-04-12 17:06:34 +00:00
Commenting is not possible because the repository is archived.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
ldraney/pal-e-api#261
No description provided.