Repository navigation
perf(build): make core builds independent and reuse verified web assets - #201
Merged
Merged
Conversation
Signed-off-by: tiammomo <26957354+tiammomo@users.noreply.github.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.
关联 Issue
Closes #199
问题与改动
核心 source/editable/wheel 构建不再安装或运行前端。网页改为显式准备与打包,Web HTTP 依赖放入
webextra。前端准备校验内容摘要,复用接口未变化的 bundle 和 API 类型,构建与测试共用 TypeScript 增量信息;CI 缓存按锁文件校验的 npm 下载。验证
在无凭据、非 root、禁网的加固容器内执行:
另行完成 core/web wheel 与 sdist-to-wheel 构建、归档一致性检查、安装后 CLI/资源哈希检查、20 个确定性 benchmark。三次本机中位数:核心 editable 构建 3.5161→0.1124 秒;接口不变的后端修改 3.3411→0.3820 秒;前端组件修改 3.2949→2.0053 秒。测量范围及冷构建结果见
docs/releases.md,不代表整个 PR 流程或线上 CI 的提速。风险与兼容性
普通
uv build默认产出 core;网页需显式准备、REPOSTEWARD_BUILD_WEB=1 uv build,安装时选择webextra。无数据库迁移或协议版本变更。资源损坏、源码中途变化仍失败。发布、身份、隔离验证门禁保留;CI 文件改动通过与 Issue/base/最终文件 SHA256 绑定的本地工作流审批。自动化辅助
Codex 完成实现、差异审查及验证。仓库所有者在会话中明确授权优化、发布和合入远程 main;尚无独立 GitHub reviewer 的批准记录,不将工具执行冒称为另一人的人工审阅。
Checklist