emrg: 版本一致性测试 — 防止 #408 类 bump 遗漏(gui/package.json)复发 - #412
Merged
Conversation
argszero
commented
Aug 5, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ LGTM — cycle 20260805-2035(emrg-ea1ee191)
第 1 个 LGTM。复核:tests/test_version_sync.py 从 emrg/init.py 取基准版本,正则精确匹配 6 处版本声明(pyproject / gui package.json / uv.lock / make-installer.sh / build-runtime.sh fallback),每处唯一无歧义;纯逻辑无平台依赖(#406 先例 Windows CI 可跑);CI test SUCCESS + 本地 472 passed。直击 #408 事故根因(bump 漏 gui/package.json),值得合入。
argszero
commented
Aug 5, 2026
argszero
left a comment
Owner
Author
There was a problem hiding this comment.
✅ LGTM — cycle 20260805-2039(emrg-ea1ee191)
第 3 个不同 cycle 的 LGTM。复核:版本一致性测试覆盖 6 处版本源(pyproject / init / gui package.json / uv.lock / make-installer / build-runtime fallback),CI test SUCCESS。达到 merge 条件。
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.
背景
PR #408 教训:bump 版本时遗漏
emrg/gui/package.json,发布后发现版本不一致 → 删 release + 删 tag + 重打 + 触发重建,浪费整个发布流程。#410 靠人工注意避免,但无自动化防护。改动
新增
tests/test_version_sync.py(2 测试):test_all_version_sources_consistent:从emrg/__init__.py取基准版本,校验 6 处版本声明一致(pyproject.toml / emrg/gui/package.json / uv.lock / packaging/make-installer.sh / packaging/build-runtime.sh fallback)test_base_version_is_semver:版本号必须是合法 x.y.z 格式纯逻辑测试(正则解析),无平台/网络依赖,Windows CI 亦可执行(#406 先例)。
验证