Use install_only_stripped by default in certain cases
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 28/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- python
- 领域
- build-system, tooling
调研方向
This is a design discussion about when rules_python should default to install_only_stripped runtimes (opt-in today). Read the issue thread for the tradeoff: smaller binaries (~26MB vs up to ~77MB) versus debug symbols needed by tests, especially C++-heavy projects. Suggested scopes include -c opt, py_zipapp in opt mode, and exec mode. Done means maintainers agree on defaults and the flag/runtime selection is updated accordingly; do not implement until that is decided.
由索引模型根据 Issue 内容生成。
描述
We added the install_only_stripped runtimes to the default set of runtimes and made using them an opt-in choice with a flag.
Using them by default was brought up, but the discussion fizzled, so it was left as opt-in. For reference, a stripped runtime is about 26MB. Unstripped varies, but the largest is the 3.15 free threaded ones, which are 77MB.
Ignas suggested to have -c opt use install_only_stripped. I'm generally +1 on this.
My main reservation with enabling it by default is that tests benefit from having debug symbols, especially for projects that use a lot of C++ code. If we could use stripped runtimes for binaries, but not tests, when in opt mode, that'd be ideal, I think.
Maybe, at the least, we have py_zipapp default to stripped runtimes when in opt mode? That would help address the originating issue of zipapps being too large.
I'll suggest: enable it for exec mode by default. Exec tools are unlikely to need debug symbols and would benefit from a smaller runtime.
cc @gfrankliu @aignas
- 主要语言
- Starlark
- 星标
- 688
- 派生
- 724
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 46
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
bazel-contrib/rules_python 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
bazel-contrib/rules_python#4201 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
bazel-contrib/rules_python#4164 · 1 条评论 ·
维护者通常 1 天内回复
-
go:embed stdlib_list.txt file in gazelle/python/std_modules.go is missing可能已有人在做 @udaya2899 于 9 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
bazel-contrib/rules_python#3821 ·
维护者通常 1 天内回复
-
type: toolchain
难度 4/5 3-5 天 新手友好度 35/100
bazel-contrib/rules_python#4216 · 6 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 68/100
bazel-contrib/rules_python#4208 ·
维护者通常 1 天内回复
查看 bazel-contrib/rules_python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
aks129/HealthClawGuardrails#917 ·
维护者通常 1 天内回复
-
area/build area/tech debt
难度 2/5 1-3 小时 新手友好度 68/100
维护者通常 2 天内回复
-
Bump .cicd to wamp-cicd 4c2f9ac: `just land` refuses open A18 decisions, `just where` lists them未关闭
难度 1/5 1 小时以内 新手友好度 82/100
crossbario/cfxdb#139 ·
-
难度 1/5 1 小时以内 新手友好度 69/100
SpecterOps/Janus#6 · 1 条评论 ·
-
C21 publishes `reactivemongo/core/SSL` as Java 23 bytecode — TLS connections fail on any JDK < 23未关闭
难度 2/5 1-3 小时 新手友好度 74/100
ReactiveMongo/ReactiveMongo#1520 ·
维护者通常 1 天内回复