Repository navigation
fix(loopback): 健康检查报告真实版本并清理发现文件 - #265
Open
Jone888999 wants to merge 1 commit into
Open
Jone888999 wants to merge 1 commit into
Jone888999 wants to merge 1 commit into
Conversation
4 tasks done
/healthz 的版本改读 metadata.yaml,返回 app_version/pid/ready/started_at,runtime_gate_enabled 读取本次启动的生效配置;正常退出(含 POSIX SIGTERM)删除本进程发布的 runtime.json,按端口与令牌核对,不删其它实例的文件。 不改变存储格式、公开配置与端点路径;Windows 不投递 SIGTERM 处理器,发现文件保留到下次启动覆盖。GitHub issue 编号待分配。
Jone888999
force-pushed
the
fix/loopback-healthz-lifecycle
branch
from
December 3, 2026 04:01
affddb4 to
5e5cbd4
Compare
This branch has not been deployed
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.
Summary / 概述
/healthz之前返回硬编码的0.1.0与恒为 false 的门控,内核退出后runtime.json还留在磁盘上。宿主因此会按错误版本做兼容判断,并把“忙”当“死”。Changes / 改动
adapters/loopback/runtime.py:版本改读metadata.yaml;/healthz增加app_version/pid/ready/started_at,runtime_gate_enabled读生效配置。adapters/loopback/server.py:正常退出删除本进程发布的runtime.json(按端口 + 令牌核对,不误删其它实例);POSIX SIGTERM 复用 Ctrl+C 收尾。_remove_published归属核对、POSIX 关机清理。Compatibility, data and privacy / 兼容性、数据与隐私
存储格式、schema、公开配置、端点路径均不变,无迁移。
version从0.1.0变为产品版本(0.7.0-rc.1),协议版本仍由host_contract/runtime_contract表达。注意:
runtime_gate_enabled现在会真正生效;在共享内核上打开它,DSH 会开始按决策拒绝回复。这是修复,但需要写进 release note。Risk and rollback / 风险与回滚
风险:宿主若依赖
version == "0.1.0"会看到新值(仓库内无此依赖)。回滚git revert即可;清理只删本进程发布的内容,不涉及数据。Checklist / 检查清单
maindocs/zh/anddocs/en/验证:
test_loopback_server_contract.py7 OK(1 skipped,POSIX-only SIGTERM);test_loopback_runtime_ingress.py9 OK。