Commit Graph

49 Commits

Author SHA1 Message Date
xiaoxia ecfe471ee7 style: black格式化scripts目录下的CI辅助脚本 2026-07-13 15:07:31 +08:00
xiaoxia dbf5ad4997 ci: 添加迁移安全检查脚本
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 18s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 59s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 2m50s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (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 / Unit Tests (pull_request) Failing after 6m28s
- 从develop分支同步check_migration_safety.py
- 用于检测迁移脚本中的危险操作(DROP TABLE/COLUMN等)
2026-07-13 14:56:06 +08:00
xiaoxia 446cf6cb83 ci: 添加覆盖率汇总脚本
- 从develop分支同步ci_coverage_summary.py
- 用于CI中生成覆盖率统计报告
2026-07-13 14:56:05 +08:00
xiaoxia fe7aee3f94 ci: 添加CI成功通知脚本
- 从develop分支同步ci_notify_success.py
2026-07-13 14:56:05 +08:00
xiaoxia 329badd93d ci: 添加CI失败通知脚本
- 从develop分支同步ci_notify_failure.py
- 用于CI Job失败时发送通知
2026-07-13 14:55:50 +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
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
灵应 a620085dbb style: 补全alembic和scripts目录isort排序
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 137h51m0s
CI/CD Pipeline / Frontend Lint (push) Failing after 137h51m10s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 137h51m10s
2026-07-03 19:03:18 +08:00
CI Test d6b11ea1cd fix: 清理全局 except:pass(22处)改为 logger.warning 记录异常
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 147h14m3s
Tests / test (pull_request) Failing after 147h14m3s
CI/CD Pipeline / Frontend Lint (pull_request) Failing after 147h14m28s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 147h14m34s
Deploy / Deploy Staging (push) Failing after 147h14m58s
CI/CD Pipeline / Frontend Lint (push) Failing after 147h15m21s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 147h15m27s
2026-07-03 09:38:57 +08:00
CI Test bb424a053e fix(ci): fix registry repo name mapping and OCI accept header in cleanup script
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 195h35m37s
CI/CD Pipeline / Frontend Lint (push) Failing after 195h36m52s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 195h37m1s
2026-07-01 09:17:29 +08:00
xiaoxia 1217d8cef0 style: apply isort formatting to pass CI validation (#129)
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 210h35m44s
CI/CD Pipeline / Frontend Lint (push) Failing after 210h36m11s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 210h36m17s
2026-06-30 18:17:44 +08:00
xiaoxia 52ff2f80ad style: apply black formatting to pass CI validation (#126)
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-30 17:23:08 +08:00
xiaoxia d2c25dc360 ci: test runner pickup
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-30 15:52:57 +08:00
xiaoxia b410b65e22 ci: trigger workflow validation
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-30 15:49:59 +08:00
xiaoxia 1dd612c89c feat: 添加部署后冒烟测试脚本
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
覆盖5个核心端点:upload/direct/prepare, upload/chunk/init, dashboard/overview, assets, generation/tasks
支持 --json 输出和认证测试模式
2026-06-30 12:39:26 +08:00
CI Test d934e0e322 chore(ci): add automatic Docker image cleanup after builds
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
- Add scripts/cleanup_old_images.sh: keeps only last 2 versions
  per service (api/worker/web), removes old local tags and registry
  blobs via Registry API, prunes dangling images
- Add cleanup step to deploy.yml build-production-runtime-images job
  with if:always() to ensure cleanup runs even on build failure
- Prevents disk space exhaustion from accumulated Docker images
  and Registry blobs on the build server
2026-06-30 06:58:48 +08:00
Security Audit Bot 1015bf2b13 fix(security): 移除敏感环境文件的版本追踪并清理硬编码Token
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- 从版本控制中移除 .env.production 和 .env.staging(git rm --cached)
- 更新 .gitignore:移除 .env.staging 的例外规则,所有 .env 环境文件不再提交
- scripts/ci_failure_check.sh:硬编码 Gitea API Token 改为环境变量 GITEA_API_TOKEN
- scripts/auto_merge_prs.sh:硬编码 Gitea API Token 改为环境变量 GITEA_API_TOKEN

这是对 PR#53 的重新提交,补充了之前遗漏的脚本中硬编码凭证清理。
2026-06-28 09:20:55 +08:00
API文档维护Agent e3fb518ab2 refactor: remove all workspace_id references from codebase
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- Remove workspace_id from Pydantic models in project_management routes
- Remove workspace_id from SQLAlchemy and SQLite project management repos
- Remove workspace_id from worker tasks (storage keys, entity creation)
- Remove workspace_id from video dedup and title usage modules
- Remove workspace_id from generation and ingest worker tasks
- Clean workspace_id from all test files and scripts
- Remove workspace-specific test files (list_workspaces, workspace repos)

Task: #14 workspace_id 残留清理
2026-06-27 22:52:09 +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
CI Bot 89bada5608 feat: add auto-merge scripts and CI failure notification
- Auto merge script for PRs targeting develop/main
- CI failure check script
- Gitea Actions workflow for scheduled auto-merge
- Cron jobs for periodic execution
2026-06-27 00:42:05 +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 c23cf8a3b3 Fix deploy: use base64 for server.py, simple restart 2026-06-26 15:20:22 +08:00
xiaoxia b59f6c997e Update deploy script with fixed server.py (serve_forever + installed flag) 2026-06-26 15:17:44 +08:00
xiaoxia fc0e5c00d8 Add CMD Agent deploy script 2026-06-26 15:04:46 +08:00
Xiaoxia AI 6e8394d749 style: sort Python imports for CI 2026-06-24 19:57:19 +08:00
Xiaoxia AI f85e389ced style: format Python files for CI 2026-06-24 19:54:36 +08:00
Xiaoxia AI 5d0723d40a docs: record V21 UI validation status 2026-06-24 19:26:58 +08:00
Xiaoxia AI b7b0765ba6 docs(release): close package one boundary validation 2026-06-23 10:04:56 +08:00
Xiaoxia AI e1764b1332 chore(ops): add production resource monitoring check 2026-06-23 08:27:04 +08:00
Xiaoxia AI a21b44cf55 fix(release): prevent runtime builds on production host 2026-06-22 15:00:23 +08:00
Xiaoxia AI df7c4ee0d7 chore(release): add runtime image artifact deploy 2026-06-22 14:48:33 +08:00
Xiaoxia AI 34353506d7 fix(web): restore project workspace context 2026-06-22 13:19:45 +08:00
Xiaoxia AI 05a7eff584 test(smoke): add public auth flow check 2026-06-22 10:26:55 +08:00
Xiaoxia AI 1939878dec fix(deploy): require prebuilt web artifact for production 2026-06-22 09:34:27 +08:00
Xiaoxia AI 14e3cde119 chore(release): initialize separated production env 2026-06-21 14:24:23 +08:00
Xiaoxia AI f9c012098f chore(release): allow smtp skip in strict smoke 2026-06-21 14:09:29 +08:00
Xiaoxia AI b7e69c4e0b chore(release): script database backup runbook 2026-06-21 13:26:45 +08:00
Xiaoxia AI c2e56c6450 fix(release): set alembic script location explicitly 2026-06-21 13:08:37 +08:00
Xiaoxia AI 177c154421 fix(release): locate alembic config from scripts 2026-06-21 13:05:12 +08:00
Xiaoxia AI e98dfc9ffb chore(release): add alembic preflight check 2026-06-21 13:01:49 +08:00
Xiaoxia AI ccb6786e0b chore(release): add external service smoke checks 2026-06-21 12:50:33 +08:00
Xiaoxia AI b61f714518 fix(release): support environment validation in containers 2026-06-21 12:39:40 +08:00
Xiaoxia AI 6d68c28860 chore(release): validate production env readiness 2026-06-21 12:34:51 +08:00
Xiaoxia AI bc92400eff docs(deploy): document generated file retention 2026-06-21 11:29:33 +08:00
Xiaoxia AI 0f7cc8f12a ci: detect sqlalchemy schema drift 2026-06-21 08:14:25 +08:00
Xiaoxia AI f529c145d9 docs(ci): establish runner infrastructure governance 2026-06-19 08:39:33 +08:00
Xiaoxia AI edeab83f17 fix: connect API to tracker.db via SQLite repository 2026-06-17 13:21:38 +08:00
Xiaoxia AI 6507b3f06a feat: initialize Phase 6 task tracker with 40 frontend tasks 2026-06-17 09:35:48 +08:00
Xiaoxia AI 9fe0614d43 feat: add deployment configs, systemd service, and tracker init scripts 2026-06-16 22:01:24 +08:00