Define the isolation guarantee for installed-wheel CI
维护者通常 1 天内回复
@rwgk 已经在做这个了。
开始于 2026年10月8日。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 20/100
调研方向
Start from PRs #2892 and #2949 and the installed-wheel workflow under .github/workflows to see how the wheel is installed and how pytest is invoked. Reproduce the shadowing case: install the wheel, then run a source-dependent test from inside a package directory and log which module path wins. Evaluate python -I -m pytest plus an import-origin assertion as the baseline. Done means a written guarantee for what the job promises, and any workflow change needed to enforce it, agreed by a maintainer.
由索引模型根据 Issue 内容生成。
描述
Installed-wheel CI installs wheels, then runs tests from a checkout that may still contain package sources. There is an obvious trap: an import check run from the repository root can find the installed wheel, while a later test run from inside a package directory may import checkout code. A green job could then tell us less about the wheel than we think. We have not identified a false pass; this is a preventive question.
#2892 explored skipping source-dependent tests when package sources are removed.
#2949 explored python -I -m pytest with an import-origin check inside each pytest process. -I keeps the working directory and PYTHONPATH off Python’s initial import path, addressing the most direct way checkout code can shadow a wheel while leaving source-tree tests available. However, this still falls short of isolation:
- pytest can alter
sys.pathafter Python starts, - tests can load checkout files directly, and
- child processes do not automatically inherit
-I.
What should an installed-wheel job guarantee, and are import checks sufficient, or should package sources be made unavailable during those tests?
- 主要语言
- Cython
- 星标
- 3.4k
- 派生
- 353
- 平均合并
- 2 天 3 小时
- 30 天内合并 PR
- 163
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
NVIDIA/cuda-python 的其他 Issue
-
[BUG]: the `__cuda_stream__` deprecation warning points to `Stream(obj)`, which always raises可能已有人在做 @Iamsohungrynow 于 5 天前认领。 未关闭bug cuda.core P1
难度 1/5 1 小时以内 新手友好度 86/100
NVIDIA/cuda-python#3505 · 3 条评论 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
[BUG]: ProcessInfo.used_gpu_memory returns the NVML_VALUE_NOT_AVAILABLE sentinel as a byte count未关闭triage
难度 2/5 1-3 小时 新手友好度 80/100
NVIDIA/cuda-python#3468 · 3 条评论 ·
维护者通常 1 天内回复
-
triage
难度 2/5 1-3 小时 新手友好度 68/100
NVIDIA/cuda-python#3409 ·
维护者通常 1 天内回复
-
[BUG]: cleanup-pr-previews never removes previews of deleted PRs可能重新可做 @rwgk 于 48 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
NVIDIA/cuda-python#2952 · 已指派 1 人 ·
维护者通常 1 天内回复
-
[BUG]: LocatedHeaderDir is mutable, so callers can poison the cached header-directory lookup可能已有人在做 @rwgk 于 63 天前认领。 未关闭triage
难度 2/5 1-3 小时 新手友好度 82/100
NVIDIA/cuda-python#2646 · 1 个 reaction ·
维护者通常 1 天内回复
查看 NVIDIA/cuda-python 的全部 Issue
相似的 Issue
-
Mend: dependency security vulnerability untriaged
难度 1/5 1 小时以内 新手友好度 72/100
opensearch-project/cross-cluster-replication#1801 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
scaleway/LandingZone#10 · 1 条评论 ·
-
e2e-failure ready-to-code
难度 2/5 1-3 小时 新手友好度 78/100
redhat-developer/rhdh-plugin-export-overlays#4905 · 1 条评论 ·
维护者通常 1 天内回复
-
[Enhancement] platform-engineer: a definition change does not re-render running Applications; say how to roll it out可能已有人在做 @anoop2811 今天认领。 未关闭needs-triage type/enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
Issue-Bug Need-Review
难度 1/5 1 小时以内 新手友好度 72/100
PowerShell/DSC#1831 ·
维护者通常 1 天内回复