From 70253339519a4cb9d772aa97feedb08214398cbe Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 11 Feb 2026 16:14:50 +0000 Subject: [PATCH] CI: skip copying own models to avoid duplicate SQLAlchemy table defs Each app has its own models/ at the root (imported as bare `models.X`). The CI copy was also creating {app}/models/ (imported as `{app}.models.X`), causing SQLAlchemy to see the same table defined twice. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4dea91a..780ab36 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -39,8 +39,9 @@ jobs: git fetch origin ${{ github.ref_name }} git reset --hard origin/${{ github.ref_name }} git submodule update --init --recursive - # Copy sibling app models for cross-domain imports (read from git objects to avoid race conditions) + # Copy sibling app models for cross-domain imports (skip self to avoid duplicate table defs) for sibling in blog market cart events; do + [ \"\$sibling\" = \"${{ env.IMAGE }}\" ] && continue rm -rf \$sibling/__init__.py \$sibling/models repo=/root/rose-ash/\$sibling if [ -d \$repo/.git ]; then