fix(deploy): include legacy longconn profile during migration checks
The exported live-deployment baseline declares longconn under a Compose profile. Default profile filtering can omit the already-running receiver and make preflight report an unexpected service set. Explicitly select only the known longconn profile for config and targeted migration commands. Preserve strict service-set validation and report only missing/extra service names, never resolved environment or secrets. Up still targets connector/router with --no-deps, without starting another receiver. Add regressions for profiled service omission and safe mismatch diagnostics. Validation: 242 passed, 3 skipped (no real PostgreSQL), 30 existing dependency warnings. Tool-specific coverage: 29 passed. Python 3.7 syntax and diff pass. Actual ECS preflight must be rerun to verify its current service set; no remote configuration, key material or running containers were changed.
This commit is contained in:
@@ -29,6 +29,8 @@ sudo python3 deployable/scripts/broker_deploy.py preflight \
|
||||
|
||||
脚本只依赖Python标准库(Python≥3.7)及现有Docker/Compose,不要求服务器安装本机开发venv、pytest或cryptography。`preflight`读取容器/镜像/Compose,仅输出项目、文件数量、实际镜像及模式,不打印解析后的配置、Secret或Token;不写密钥、不构建、不重启。
|
||||
|
||||
兼容修订:原部署将longconn声明在`longconn` profile。脚本显式携带`--profile longconn`解析完整现有服务集合,而不是默认省略它;不使用`--profile '*'`开放未知服务。预检查仍只读;后续up仍只指定connector/router并使用`--no-deps`,不会因此启动第二个longconn。服务集合不符时报告缺失/多出服务名并停止,不打印环境配置。
|
||||
|
||||
**当前客户端尚未适配v2,执行到这里即可。** 后续prepare/check/build同样不启用新模式,但需要产品权限集合;activate必须等新客户端和测试计划就绪,不能因为代码测试通过就切换现网。
|
||||
|
||||
## 3. 产品权限与准备阶段
|
||||
|
||||
Reference in New Issue
Block a user