Commit Graph

100 Commits

Author SHA1 Message Date
CI Test 7dc92191e0 test: watchtower自动更新验证(仅加注释)
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Deploy Staging (push) Failing after 38h42m26s
CI/CD Pipeline / Frontend Lint (push) Failing after 38h56m36s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 38h58m34s
2026-07-07 21:55:55 +08:00
CI Test 5028956cea ci: staging部署接入Watchtower自动更新
CI/CD Pipeline / Staging E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Deploy Staging (push) Failing after 39h4m5s
CI/CD Pipeline / Frontend Lint (push) Failing after 39h5m1s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 39h5m1s
- staging构建额外打:staging tag并push到Registry
- staging容器加com.centurylinklabs.watchtower.enable=true标签
- 容器用完整Registry路径+:staging tag启动,供Watchtower监控
- 1分钟轮询,自动检测新镜像并重启
2026-07-07 21:49:28 +08:00
CI Test d72450f42d ci: production deploy改为Registry方式,去掉tar/scp/docker load
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 39h16m53s
CI/CD Pipeline / Deploy Staging (push) Failing after 39h18m14s
CI/CD Pipeline / Frontend Lint (push) Failing after 39h19m14s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 39h19m14s
- 新增 deploy-production-registry.sh(纯Registry pull + docker run)
- 去掉源码tar打包和scp传输步骤
- nginx-production.conf 添加assets fallback(部署期间缓存用户不404)
- legacy assets自动清理(保留7天)
2026-07-07 21:35:15 +08:00
CI Test 1ed0d5aa75 fix: staging deploy script health-check url missing quotes
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Staging E2E Tests (push) Failing after 39h40m42s
CI/CD Pipeline / Deploy Staging (push) Failing after 39h42m13s
CI/CD Pipeline / Frontend Lint (push) Failing after 39h44m9s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 39h44m58s
2026-07-07 21:09:28 +08:00
CI Test d99ee6fc84 ci: staging deploy改为Registry方式,去掉tar/scp/docker load
CI/CD Pipeline / Staging E2E Tests (push) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Has been skipped
CI/CD Pipeline / Production Browser E2E (push) Has been skipped
CI/CD Pipeline / Deploy Staging (push) Failing after 40h1m36s
CI/CD Pipeline / Frontend Lint (push) Failing after 40h2m31s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 40h2m31s
2026-07-07 20:52:01 +08:00
DevOps Bot e6dfeafb85 ci: 优化生产镜像部署 - 改用Registry push/pull替代tar+scp\n\n- build_release_images.sh: 增加web镜像buildx缓存构建 + push到Gitea Registry\n- deploy-production.sh: 改用docker pull从Registry拉取镜像,替代docker load\n- ci-cd.yml: 简化build-production和deploy-production job\n - 移除docker save + scp传镜像tar的流程\n - 仅保留源码tar.gz scp(compose/migration脚本需要)\n - web镜像构建合并到build_release_images.sh统一管理
CI/CD Pipeline / Deploy Staging (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 60h28m37s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 60h30m7s
2026-07-06 19:20:03 +08:00
灵应 bf6ae9c430 refactor: API/Worker 依赖拆分 - 移除 API 镜像中的重依赖
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Staging E2E Tests (push) Failing after 93h39m59s
Deploy / Deploy Staging (push) Failing after 94h0m21s
CI/CD Pipeline / Frontend Lint (push) Failing after 94h0m28s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 94h0m28s
- 新建 requirements-worker.txt,包含 numpy/scipy/opencv/Pillow/ffmpeg-python
- requirements-base.txt 移除视频处理大包,仅保留公共基础依赖
- worker.Dockerfile 新增 requirements-worker.txt 安装层
- API Dockerfile 无需修改,自动不再包含重包
- 验证:API/packages 代码无 numpy/scipy/cv2 导入
- 全量测试 994 passed, 0 failed

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-05 14:54:04 +08:00
xiaoxia efb9d6c57f fix: nginx SPA路由移除$uri/,避免/assets等路径被当成静态目录返回403
Deploy / Staging E2E Tests (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 115h22m58s
CI/CD Pipeline / Frontend Lint (push) Failing after 115h23m32s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 115h23m32s
问题根因:
- try_files $uri $uri/ /index.html 中的 $uri/ 会匹配与构建产物目录同名的路由
- Vite 默认将静态资源放在 assets/ 目录下
- 访问 /assets 时,$uri/ 匹配到 assets/ 目录,Nginx 尝试目录访问返回 403
- 类似的路径冲突还有 /dashboard /history 等如果有同名目录也会出问题

修复方案:
- 移除 $uri/,改为 try_files $uri /index.html
- 真实存在的静态文件(如 /assets/index-abc.js)仍然能通过 $uri 正确返回
- 前端路由路径统一 fallback 到 index.html 由 SPA 路由处理

影响范围:nginx.conf / nginx-production.conf / nginx-staging.conf 三个文件
2026-07-04 17:30:49 +08:00
xiaoxia 7e87e7e985 fix: infra.yml容器名加-staging后缀,与deploy脚本命名规范一致
Deploy / Staging E2E Tests (push) Has been skipped
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 133h33m59s
CI/CD Pipeline / Frontend Lint (push) Failing after 133h36m33s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 133h36m33s
2026-07-03 23:17:52 +08:00
xiaoxia bd18acd040 fix: Deploy阶段全面修复 - E2E服务器错位/Worker venv统一/内网Registry登录/生产构建缓存
Deploy / Staging E2E Tests (push) Has been skipped
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 135h54m40s
CI/CD Pipeline / Frontend Lint (push) Failing after 135h54m55s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 135h54m55s
2026-07-03 20:59:29 +08:00
xiaoxia bcb1663de4 ci: 启用BuildKit分布式缓存+Gitea Registry,优化构建速度
Deploy / Staging E2E Tests (push) Has been skipped
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 138h40m13s
CI/CD Pipeline / Frontend Lint (push) Failing after 138h40m24s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 138h40m24s
- 拆分 requirements.txt: 稳定大包放 requirements-base.txt(numpy/scipy/opencv/Pillow/sqlalchemy 等),业务依赖留 requirements.txt
- 优化 Dockerfile: 分两层安装依赖,基础层缓存命中率高
- CI 改用 docker buildx build,缓存存 Gitea Container Registry
- 启用 Gitea Packages/Container Registry(git.xiaoxiajianji.com)
- 镜像仍推内网 Registry(172.30.18.198:5000),缓存独立存 Gitea Registry
2026-07-03 18:13:49 +08:00
xiaoxia a5f1d9685d refactor(phase3): Docker 网络隔离 staging/production 环境
Deploy / Staging E2E Tests (push) Has been skipped
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 141h44m9s
CI/CD Pipeline / Frontend Lint (push) Failing after 141h44m18s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 141h44m18s
- compose.yml: 网络名根据 ENV 变量区分 (xiaoxia-net-staging/xiaoxia-net-production)
- infra-production.yml: 使用 xiaoxia-net-production 网络
- infra.yml: 使用 xiaoxia-net-staging 网络
- 新增 nginx-staging.conf (proxy_pass -> xiaoxia-api-staging:8000)
- 新增 nginx-production.conf (proxy_pass -> xiaoxia-api-production:8000)
- nginx.conf 更新为 production 默认配置
- web-artifact.Dockerfile: 添加 ARG NGINX_CONF 支持构建时选择 nginx 配置
- deploy-staging.sh: 添加 ENV=staging、网络创建、nginx 配置选择
- deploy-production.sh: 添加 ENV=production、网络创建
- deploy.yml: CI 构建传入 NGINX_CONF 参数、远程部署脚本添加网络创建
- deploy.yml: 冒烟测试添加网络隔离验证
2026-07-03 15:09:54 +08:00
xiaoxia 22c1085c4b fix: 永久修复 nginx proxy_pass 配置
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Tests / lint (pull_request) Failing after 143h18m2s
Tests / test (pull_request) Failing after 143h18m2s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 143h18m31s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 143h18m37s
Deploy / Deploy Staging (push) Failing after 143h19m29s
CI/CD Pipeline / Frontend Lint (push) Failing after 143h19m55s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 143h20m2s
- staging nginx.conf: 使用静态 proxy_pass 替代变量型(避免 URI 丢失)
- staging 指向容器名 xiaoxia-api-staging(避免 DNS 别名冲突)
- 添加 proxy_read_timeout/proxy_send_timeout 300s(与 production 对齐)
- web.Dockerfile: 支持 ARG NGINX_CONF 参数化(与 web-artifact.Dockerfile 一致)
- production nginx-production.conf 已确认无需修改
2026-07-03 13:34:12 +08:00
CI Test 22ef893b6b fix: add Docker DNS resolver to nginx - prevent 502 after API container restart
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 143h54m11s
CI/CD Pipeline / Frontend Lint (push) Failing after 143h54m39s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 143h54m46s
- Add resolver 127.0.0.11 valid=10s for Docker internal DNS
- Use variable-based proxy_pass to force DNS re-resolution
- Prevents nginx from caching stale API container IP
2026-07-03 12:59:47 +08:00
部署Agent ae20d5137a fix(infra): 修复 worker healthcheck YAML 语法 & APP_VERSION 添加默认值
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Tests / lint (pull_request) Failing after 145h39m28s
Tests / test (pull_request) Failing after 145h39m28s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 145h39m53s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 145h39m59s
Deploy / Deploy Staging (push) Failing after 145h40m35s
CI/CD Pipeline / Frontend Lint (push) Failing after 145h41m1s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 145h41m9s
- Worker healthcheck: 原 python3 单引号嵌套导致 YAML 解析错误,改用 grep -q celery /proc/1/cmdline
- APP_VERSION: 添加 :-unknown 默认值,防止变量缺失时健康检查端点崩溃
2026-07-03 11:13:21 +08:00
xiaoxia 7fc72f5888 fix(worker): 修复 healthcheck,容器无 pgrep 改用 Python 检查进程
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 156h46m23s
CI/CD Pipeline / Frontend Lint (push) Failing after 156h47m53s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 156h48m0s
2026-07-03 00:06:32 +08:00
灵应 f243a723c4 fix(worker): 修复 healthcheck 配置,改用进程检查替代 celery inspect ping
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Tests / lint (pull_request) Failing after 157h17m12s
Tests / test (pull_request) Failing after 157h17m12s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 157h17m56s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 157h18m1s
Deploy / Deploy Staging (push) Failing after 157h31m33s
CI/CD Pipeline / Frontend Lint (push) Failing after 157h32m13s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 157h32m20s
- 修正 celery app 路径错误(app.celery_app → worker_app.celery_app)
- celery inspect ping 依赖 broker 连接,容器内不可靠
- 改用 pgrep -f 'celery.*worker' 进程检查,更稳定
- 调整 start_period 为 30s(与 API 容器保持一致风格)
2026-07-02 23:22:09 +08:00
灵应 e9b6fbcf2c Merge remote-tracking branch 'origin/main' into develop
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 161h20m13s
Tests / lint (pull_request) Failing after 161h20m13s
Tests / test (pull_request) Failing after 161h20m13s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 161h20m48s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 161h20m53s
CI/CD Pipeline / Frontend Lint (push) Failing after 161h21m27s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 161h21m34s
# Conflicts:
#	infra/docker/api.Dockerfile
2026-07-02 19:27:52 +08:00
xiaoxia c697ec9944 fix: infra.yml 端口绑定127.0.0.1、healthcheck间隔优化为30s、添加日志轮转
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 163h32m14s
CI/CD Pipeline / Frontend Lint (push) Failing after 163h32m14s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 163h32m22s
2026-07-02 17:22:12 +08:00
xiaoxia 0b63879c11 fix: infra-production.yml 端口绑定127.0.0.1、healthcheck间隔优化为30s、添加日志轮转
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 163h32m35s
CI/CD Pipeline / Frontend Lint (push) Failing after 163h32m35s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 163h32m42s
2026-07-02 17:21:50 +08:00
xiaoxia fc924965f7 fix: Nginx 添加 client_max_body_size 和 proxy_request_buffering 配置
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-07-02 17:20:14 +08:00
xiaoxia c9f95ed5a6 fix: 添加容器日志轮转配置和 Worker 健康检查
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-07-02 17:20:13 +08:00
CI Test 4812249e4e fix(docker): add validate_release_env.py to API image
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 189h37m38s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 189h37m41s
deploy-production.sh runs validate_release_env.py inside the API
container before alembic upgrade. The script was missing from the
image because api.Dockerfile did not COPY scripts/. This caused
production deploy to fail with:
  python: can't open file '/app/scripts/validate_release_env.py': [Errno 2]
2026-07-01 15:16:43 +08:00
CI Test 7d1d086c94 Merge develop → main: 端口绑定安全修复 + CI workflow同步
Auto Merge PRs / auto-merge (push) Failing after 31s
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 205h21m26s
CI/CD Pipeline / Frontend Lint (push) Failing after 205h24m40s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 205h24m48s
2026-06-30 23:00:42 +08:00
CI Test 4b8605c679 security: 端口绑定限制为 127.0.0.1 (API/Web)
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 205h32m24s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 205h32m34s
2026-06-30 22:59:32 +08:00
Audit Bot c22ab58ff2 fix(deploy): build/push API+Worker images to registry for staging deploy
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 209h0m7s
CI/CD Pipeline / Frontend Lint (push) Failing after 209h0m36s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 209h0m45s
- Add 'Build and push staging API/Worker images' step in deploy.yml
- Update inline deploy script to pass REGISTRY/API_IMAGE/WORKER_IMAGE
- Update deploy-staging.sh to default to registry-prefixed image names
- Fix infra container checks to use -staging suffix
2026-06-30 19:53:49 +08:00
CI Test 4f5e14862b fix(deploy): check staging-suffixed infra container names in deploy-staging.sh
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Staging (push) Failing after 209h7m2s
CI/CD Pipeline / Frontend Lint (push) Failing after 209h7m37s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 209h7m48s
2026-06-30 19:46:45 +08:00
xiaoxia 51e3cf5454 Merge pull request 'Sync develop → main (v0.1.101)' (#121) from develop into main
Auto Merge PRs / auto-merge (push) Failing after 46s
Deploy / Deploy Staging (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Build Production Runtime Images (push) Failing after 217h42m1s
2026-06-30 11:10:59 +08:00
Audit Bot 1bbf569e0c fix: 修复 Docker Nginx 缺少 client_max_body_size 导致上传文件受限
- 添加 client_max_body_size 800m(与生产 Nginx 配置对齐)
- 添加 proxy_request_buffering off(避免大文件缓冲问题)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-30 10:42:27 +08:00
Audit Bot b98c83582b fix: 上传文件大小限制从 800MB 提升至 2000MB
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
P0 修复:
- config.py: OSS_DIRECT_UPLOAD_MAX_MB 默认值从 800 改为 2000
- config.py: 添加 AliasChoices 支持 MAX_UPLOAD_SIZE_MB 环境变量
  (.env.production 中 MAX_UPLOAD_SIZE_MB=2000 现在可被正确读取)

P1 修复:
- infra/nginx/xiaoxia-saas.conf: client_max_body_size 800m → 2g(3处)
- infra/docker/nginx-production.conf: client_max_body_size 800m → 2g
2026-06-29 22:11:22 +08:00
API文档维护Agent 4f9feb8c5a fix: API Dockerfile 添加 scripts/ 目录拷贝
Tests / lint (pull_request) Failing after 243h40m17s
Tests / test (pull_request) Failing after 243h40m17s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 243h40m52s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 243h40m53s
deploy-production.sh 在 API 容器内执行
python /app/scripts/validate_release_env.py,
当前 Dockerfile 未 COPY scripts 目录导致文件不存在、Deploy 步骤失败。

添加 COPY scripts/ /app/scripts/ 使部署验证脚本可用。
2026-06-29 09:13:27 +08:00
xiaoxia 18873e9db9 fix: 修复 APP_VERSION 环境变量读取 - 从 env_file 中读取而非使用默认值
Auto Merge PRs / auto-merge (push) Failing after 35s
2026-06-29 07:22:26 +08:00
xiaoxia d3fce20921 fix(compose): remove conflicting mem_limit, consolidate to deploy.resources.limits
Deploy / Deploy Staging (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Deploy Production (push) Failing after 245h20m33s
Deploy / Build Production Runtime Images (push) Failing after 245h36m44s
2026-06-29 04:18:41 +08:00
CI Test 79cc6b0dcc Release v0.1.71: Phase 1 核心重构 + Phase 2 查重/订阅前端/后端 + P0 修复 2026-06-28 18:16:42 +08:00
xiaoxia 71825df8b2 fix: include alembic directory in API Docker image for migrations
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-28 16:36:37 +08:00
CI Test 3292a5d655 fix: 持久化 api/worker 容器内存限制,改用 mem_limit: 2g 替代 deploy.resources.limits.memory 2026-06-28 11:19:50 +08:00
CI Test ec96feee22 fix(deploy): Worker 容器内存限制从 4G 降至 2G
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- Worker 实际内存使用仅 ~156MiB,4G 限制远超需求
- 业务服务器总内存仅 1.7Gi,过高限制影响其他容器
- 2G 限制已足够应对视频处理峰值需求
2026-06-28 10:30:09 +08:00
CI Test 46d9b9edfe fix: add Chinese apt mirrors to both Dockerfiles for faster builds
Tests / test (push) Failing after 2s
Tests / lint (push) Failing after 0s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
Deploy / Deploy Staging (push) Has been cancelled
Deploy / Build Production Runtime Images (push) Has been cancelled
Deploy / Deploy Production (push) Has been cancelled
Deploy / Production Browser E2E (push) Has been cancelled
2026-06-27 20:38:37 +08:00
CI Test aade9fa938 fix: add HTTPS pip mirror to api.Dockerfile to fix build failure 2026-06-27 20:26:41 +08:00
Celery Worker Fix Agent 8210806632 fix: 修复 Celery Worker 任务注册和导入问题
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
1. 修复 Worker 启动入口: celery_app → worker_app.celery_app
   - 旧 celery_app.py 不导入任何任务模块,导致 Worker 注册 0 个任务
   - 删除旧版 apps/worker/celery_app.py,统一使用 worker_app/celery_app.py

2. 为缺少装饰器的任务补充 @celery_app.task:
   - classification.py: classify_asset() 添加装饰器
   - generation.py: generate_video() 添加装饰器,修正签名匹配 API 调用方式

3. 确保 voice_extraction 任务被正确注册:
   - 添加 voice_extraction 到 celery_app imports
   - 修复 voice_extraction.py 中错误的相对导入 (.celery_app → worker_app.celery_app)
   - 修复 dedup.py 中指向已删除模块的导入

4. 修复 worker_app/celery_app.py:
   - 添加 broker_connection_retry_on_startup=True
   - imports 中添加 voice_extraction 和 dedup 模块

5. 修复 Dockerfile:
   - CMD 改为 celery -A worker_app.celery_app
   - 添加非 root 用户 celery 运行 Worker

6. 新建 packages/shared/config.py 和 storage.py 兼容层
   - 为 worker 任务模块提供统一的 config/storage 访问入口
2026-06-27 19:31:07 +08:00
XiaoXia Bot 0b990017ca fix(security): 删除 .env.production 并清理硬编码密码
- 删除 .env.production(含占位符密钥,已从版本控制移除)
- scripts/smoke_public_*.py: 密码改为从环境变量 SMOKE_TEST_PASSWORD 读取
- infra/docker/infra.yml: POSTGRES_PASSWORD 改为引用环境变量
- packages/application/auth/jwt_handler.py: 文档示例密钥改为占位符
2026-06-27 18:10:52 +08:00
xiaoxia a5c5da50c6 fix: 修复 jwt_service.py 错误的 settings 导入路径导致登录 401
- packages.config.settings 模块不存在,改为 from app.config import settings
- 此 bug 导致 JWT token 生成时 ModuleNotFoundError,被 except 捕获后返回通用 401
2026-06-27 17:17:38 +08:00
xiaoxia a6e85092ce fix: 统一 ENABLE_REDIS_SESSIONS 命名,修复登录因 AttributeError 导致 500 2026-06-27 17:05:48 +08:00
CI Bot 11494918eb fix: resolve all workspace removal breakage - stub permissions, quota, ports, adapters
- Remove Workspace from domain/__init__.py exports
- Stub domain/permissions.py (all checks pass)
- Stub domain/quota.py (all checks pass)
- Create missing port stubs: workspace_member_repository, workspace_repository, workspace_invitation_repository
- Create missing adapter stubs: workspace_repository, workspace_invitation_repository
- Create routes/permissions.py stub (require_workspace_member no-op)
- Fix .env Redis URL encoding on production server
2026-06-27 09:16:53 +08:00
CI Bot 0c97f40825 Merge branch 'pr-35' into develop 2026-06-27 00:23:55 +08:00
Deploy Agent 78e1af1054 feat: 标准化部署流程和文档化
- 添加 docs/deployment.md 完整部署文档,包含:
  - 环境要求
  - 首次部署流程
  - 版本更新流程
  - 回滚流程
  - 常见问题排查
  - 环境变量说明

- 添加标准化部署脚本:
  - scripts/deploy_production.sh: 生产环境部署脚本
  - scripts/deploy_staging.sh: 预发布环境部署脚本
  - scripts/rollback.sh: 回滚脚本(支持交互式和命令行模式)

- 完善 infra/docker/compose.yml:
  - 添加详细注释说明
  - 添加资源限制建议(注释)
  - 记录 web volume 挂载的注意事项(避免 403 问题)

- 添加 .github/workflows/release.yml:
  - 完整的发布流程
  - 构建所有三个镜像(api、worker、web)
  - 自动部署到生产环境
  - E2E 测试和 GitHub Release 创建
2026-06-27 00:09:46 +08:00
xiaoxia e915c0d6df fix: 创建 API 和 Worker Dockerfiles
- 创建 infra/docker/api.Dockerfile 用于 FastAPI 应用
- 创建 infra/docker/worker.Dockerfile 用于 Celery Worker
- 使用 python:3.12-slim-bookworm 作为基础镜像
- Worker 包含 ffmpeg 和 opencv 依赖(用于视频处理)
- API 包含 PostgreSQL 开发库(用于 psycopg2 编译)
- 分离镜像减少不必要的依赖
2026-06-27 00:04:15 +08:00
xiaoxia 0fb4d95bd0 fix: Web Dockerfile API URL 改为通用默认值
- 将硬编码的 VITE_API_URL=http://47.98.113.167:8000 改为 https://saas-api.xiaoxiajianji.com
- 支持通过 --build-arg VITE_API_URL=xxx 在构建时覆盖默认值
2026-06-27 00:02:34 +08:00
xiaoxia df8fe4dba3 fix: P3-3 add multi-stage build to api.Dockerfile 2026-06-26 17:56:51 +08:00
Xiaoxia AI 12b2eeb050 fix(deploy): load production web artifact on business host 2026-06-25 01:51:17 +08:00