fix(compose): make runtime bootstrap verifiable#87
Draft
ULookup wants to merge 2 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
这是 Issue #78 的运行时部分,堆叠在 #86(以及其基础 #85)之上。按评审要求,本 PR 不修改任何 GitHub Actions workflow;CI 门禁与隔离存储将在独立后续 PR 中提交。
变更
GET /health,以及覆盖 MySQL/Redis/RabbitMQ/ES/MinIO/etcd/Gateway/Push 的语义 readiness helper。RED / GREEN 证据
先观察到契约 RED:缺失 MinIO、完整 schema、readiness helper、Gateway health、稳定 Redis/Rabbit 节点身份、可执行 MinIO init 镜像、AMQP credential encoding,以及错误的 Conversation/Transmite 配置。实现后对应 contracts 全部 GREEN。
已通过:
go test ./pkg/... -count=1go vet ./pkg/contractsmake -C tests test-agent-policydocker compose --env-file .env.example config --quiet,以及缺失 secret 的负向失败检查docker build -t chatnow-minio-init:local docker/minio-init,镜像内/bin/sh/mcsmoke 与缺参失败检查git diff --check尚未运行
未启动或清理完整 Compose 栈,未运行 BVT/Functional/Reliability/Performance。当前主机磁盘余量很低且存在不属于本任务的运行中容器/数据;本 PR 不执行破坏性
down -v。因此保持 Draft,且不声称 cold-start 已通过。独立 CI PR 将提供命名卷隔离、两次 cold-start 和真实门禁证据。Refs #78