1.7 KiB
1.7 KiB
2026-06-08 全量对齐部署验证
部署信息
| 项 | 值 |
|---|---|
| Commit | 69068e2 feat(ops): server_batch 回收、sync_logs 清理与 Agent 安装跳过 |
| 前序 | a401ea5(Settings 422、server_ids 2000) |
| 方式 | deploy/deploy-production.sh → Docker nexus-1panel.sh upgrade |
| 时间 | 2026-06-08 |
门控
pre_deploy_check.sh → 7/7 PASS
pytest test_agent_version + test_server_batch_reconcile + test_sync_log_purge → 16 passed
local_verify → 26/26
生产健康
| 检查 | 结果 |
|---|---|
GET https://api.synaglobal.vip/health |
ok |
GET https://api.synaglobal.vip/app/ |
HTTP 200 |
容器 recover_orphaned in main.py |
2 |
容器 sync_log_purge in main.py |
5 |
容器 agent_install_skip_result |
2 |
server/utils/agent_version.py |
存在 |
前端 bundle
| 位置 | index hash |
|---|---|
生产 /app/index.html |
index-E6hwgODJ.js |
| Docker 构建 | frontend 层 CACHE(源码未变,与上次镜像一致) |
说明:本次 commit 仅后端;Settings/调度等前端已在 a401ea5 源码中,当前 bundle 与升级前相同属预期。若需强制刷新 bundle,需 docker build --no-cache 或改动 frontend/ 触发重建。
功能验收(Agent 终验)
- 批量安装 Agent:已装 2.0.0 子机应显示「已跳过」
- API 重启后 running 批量任务应收尾(僵尸 #20 类)
- 强刷浏览器后 Settings 保存无 422
回滚
ssh nexus 'sudo docker tag nexus-prod-nexus:rollback nexus-prod-nexus:latest && cd /opt/nexus && sudo nx update'
MySQL 备份:/var/backups/nexus/nexus-before-upgrade-20260608-072350.sql.gz