#14 发布工程单一契约:资源清单 + 锁定依赖 + CI 门禁 - #29
Merged
Merged
Conversation
- tools/resource_manifest.py:dev 查找/PyInstaller add-data/packaged smoke 共用单一真源;RESOURCE_MANIFEST(UI/agent/example/addon/图标)+ RUNTIME_MODULES(全量运行时模块);verify_bundle() 供 smoke 核验 - 守卫三件套:manifest src 存在性、resource_path 消费全覆盖、build.sh add-data 覆盖 manifest(单一真源驱动,suanpan.example.yaml 与全部 新模块补入 bundle——此前 addon 名称漂移同类洞的根源) - build.sh:主构建改 --require-hashes 装 requirements-lock.txt(lock 已 验证为主构建依赖完整超集);add-data 从 manifest 重新生成 - requirements-lock.txt 经 uv 重新生成到当前确定性版本(修复漂移) - CI:test job 与 build 同源安装 lock(不再重复下载未用一套);新增 lock 漂移校验(uv 重新生成 diff)、pytest --cov --cov-fail-under=90、 node --test tests/js、ruff check、py_compile、shell syntax - Ruff 债务清零:72 自动修复 + F841/E702/E731/F811 手工 + pyproject tests/** E402 豁免(测试文件分段导入惯例)+ app.py DEFAULT_CONFIG 导出 noqa 验证:pytest 1446 / node 95 / ruff clean / coverage 96.7% ≥90 全过。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
每次 CI 重解析必然随机漂移(上游持续发新版,今日 36 行版本差实测)—— 正确语义是 requirements-dev.txt 改了但 lock 未重新生成时才报错, 而非强制 CI 时点上最新。CI 不再是不可复现的随机失败。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Heredoc embedded in YAML block scalar had indentation trap causing both jobs to die in 3s. Standalone script is locally verifiable. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.
摘要
tools/resource_manifest.py:dev/build/smoke 单一真源(manifest + RUNTIME_MODULES + verify_bundle)验收对照
pytest 1446 / node 95 / ruff clean / coverage 96.7%;Closes #14
🤖 Generated with Claude Code