Skip to content

Remove the Go deployment CLI and controllers; require onsite shell scripts - #890

Merged
LIghtJUNction merged 1 commit into
mainfrom
remove/deployment-cli-20261012
Oct 12, 2026
Merged

LIghtJUNction merged 1 commit into
mainfrom
remove/deployment-cli-20261012

Conversation

@LIghtJUNction

Copy link
Copy Markdown
Member

变更说明 / Summary

删除整个 apps/api-go/internal/deploycli(包括部署控制器、事务、scheduler、RPC 和全部测试)、cmd/lmm-api-deploy 及只依赖它的 incident343-recovery,不保留改名版本。Go/CI/AUR/local 构建和发布包不再编译、携带或安装部署程序及其 operator 权限文件。

删除通用部署包装、框架和 Actions 部署入口。每次更新和数据库迁移必须按现场状态临时编写、检查 shell 脚本;deployment skill、AGENTS 与 canonical docs 同步。发布继续独立构建签名,保留 API 运行时 financial/writer/startup 安全门。

兼容影响:旧部署命令不再可用,新 Web 包只安装文件,激活和保留策略由现场 shell 明确执行。保留历史金融恢复材料并注明用途;旧 Web 0.1.68 AUR hook 保留签名归档要求的原字节,新 common hook 不再调用 CLI。恢复 fixture 若需要旧 systemd helper,须显式提供归档文件。本变更未连接生产,也未修改既有工件、进程或私有状态;正在运行的更新不能因删源码被停止或回滚。

与上游的关系 / Upstream relationship

  • LMM API 独有变更 / LMM API-specific change

上游参考 / Upstream reference: N/A

关联 Issue / Related issue

用户明确授权的部署程序清理,无关联 issue。

变更类型 / Type of change

  • 部署、CI 或构建 / Deployment, CI, or build
  • 文档或仓库维护 / Documentation or maintenance

验证 / Verification

本地通过:

go test -p 2 -run '^$' ./...
go test -p 2 ./internal/appcli -count=1
CGO_ENABLED=0 go build -p 2 -trimpath -o /tmp/.../lmm-api-go .
bash scripts/check-static-go-binary.sh /tmp/.../lmm-api-go
bash scripts/check-deploy-isolation.sh /tmp/.../lmm-api-go
bash packaging/aur/test-matrix.sh
bash packaging/aur/test-bin-makepkg.sh
python3 -B scripts/test-deploy-package-payload.py
node --test scripts/workflow-topology.test.mjs
python3 -B scripts/test-local-release-tests.py
python3 -B scripts/test-credit-financial-maintenance.py
python3 -B scripts/test-build-credit-financial-plan.py
python3 -B scripts/test-maintenance-deploy-guardian.py
python3 -B scripts/test-schema-maintenance-lock-guardian.py
python3 -B scripts/check-docs-brand.py --docs-only
shellcheck: changed package/export/isolation shell scripts
bash -n / Python AST: changed scripts and recipes
just --list
git diff --check

工作流 19 项、包 payload 2 项、release evidence 8 项、financial 28 项(1 项真实 PostgreSQL fixture 未启用)、plan 16 项、guardian 7 + 11 项通过。makepkg 使用本地合成工件和 cosign fixture,不是实际签名链或线上部署验收。未运行真实 PostgreSQL、生产或旧归档 systemd helper fixture。

截图或日志 / Screenshots or logs

N/A;纯删除和离线验证,未进行线上操作。

提交检查 / Checklist

  • 此 PR 只包含当前清理、必要兼容调整与技能文档变更。
  • 已明确旧部署入口删除及现场 shell 迁移方式。
  • 保留来源、版权、许可证与运行时安全代码。
  • 已记录实际检查和未验证项。
  • 已更新相关技能和 canonical 文档。
  • 代码、日志和提交记录不含凭据或用户数据。

Copilot AI balanced review requested due to automatic review settings October 12, 2026 10:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants