T6 的 9 个接口此前只在 TEST_WEKNORA_ENABLED=true 时才构造对账服务, 而该开关同时要求旧测试库端点/KB/Key 文件与 spool 根(appconfig 校验), 候选环境给不出这些旧材料,于是 9 个接口恒 503 reconciliation_not_configured, QA 无法执行任一用例。 对账本身只需要知识库绑定里的租户 Key(需求书 §5/§6),与旧取件/上传链路无关, 因此新增 RECONCILIATION_ENABLED(默认 false)单独接线 api 与 worker 的对账服务: - appconfig 解析该开关,不再借用 TEST_WEKNORA_ENABLED - compose/.env.example 透传,默认关闭,生产按授权再开 - 验收候选(candidate_runtime.py 连 QA 库分支)显式置 true - 文档补开关口径,加配置解析用例
This commit is contained in:
+1
-1
@@ -247,7 +247,7 @@ func run(ctx context.Context, getenv func(string) string) error {
|
||||
AllowPrivateHTTP: config.WeKnoraAllowPrivateHTTP,
|
||||
}
|
||||
var reconciliationService httpapi.ReconciliationService
|
||||
if config.TestWeKnoraEnabled {
|
||||
if config.ReconciliationEnabled {
|
||||
service, serviceErr := reconciliation.New(reconciliation.Config{
|
||||
Store: actionStore,
|
||||
Remote: reconciliationRemote,
|
||||
|
||||
Reference in New Issue
Block a user