ENH: consistent reporting and exit codes for pytensor-cache clear and unlock
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Read the implementations of the clear, unlock, and cleanup commands, along with issue #2531 for the stderr reporting convention. Trace how each command determines what it changed and whether files remain; done means consistent outcome reports and exit codes that indicate partial failure. The issue does not name specific files or tests, so first locate the command entry points and their existing tests.
由索引模型根据 Issue 内容生成。
描述
Description
Observed behavior across the mutating commands:
clearprints nothing on success; it warns only whentmp*entries remain.unlockprints "Lock successfully removed!" even when no lock existed (verified: exit 0).clearandcleanupexit 0 even whendelete_if_problem=Trueleaves files behind.
So some commands report their outcome and some do not, and the exit code does not distinguish full success from partial success.
Proposal
Make outcome reporting consistent across commands:
- Every command reports what it did in the same style: action taken, count/bytes where applicable.
unlock: distinguish "no lock found" from "removed stale lock".- Exit codes reflect the outcome: nonzero on partial failure.
Reporting goes to stderr per #2531; data summaries on stdout.
- 主要语言
- Python
- 星标
- 655
- 派生
- 266
- 平均合并
- 3 天 23 小时
- 30 天内合并 PR
- 43
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pymc-devs/pytensor 的其他 Issue
-
BUG: cumsum and cumprod keep bool and small integer dtypes, so cumsum(x > 0) is wrong可能已有人在做 @rishabhsai 于 1 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
Docs of mode still mentions C/CVM as the default with FAST_RUN可能已有人在做 @ADITYASINGH1206 于 13 天前认领。 未关闭docs
难度 2/5 1-3 小时 新手友好度 62/100
pymc-devs/pytensor#2641 · 1 条评论 ·
维护者通常 1 天内回复
-
Update conditions page in docs可能已有人在做 @caxaxa 于 3 天前认领。 未关闭docs
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 1 天内回复
-
BUG: geomspace returns wrong sign for the endpoints when start and stop are negative可能已有人在做 @mayuriphad 于 32 天前认领。 未关闭
难度 2/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
Reciprocal.impl computes np.float32(1.0) / x: float32 precision for float64 scalars under NEP 50 (Python linker)可能重新可做 关联的 PR 已关闭且未合并。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
pymc-devs/pytensor#2430 · 1 条评论 ·
维护者通常 1 天内回复
查看 pymc-devs/pytensor 的全部 Issue
相似的 Issue
-
claude-subscription-directsdk: tool calls with raw control characters in string values are dropped未关闭
难度 2/5 1-3 小时 新手友好度 72/100
NousResearch/hermes-official-plugins#538 ·
维护者通常 3 天内回复
-
bug(qdiffusion): EnergyModel.score_visible_logits computes biased visible/hidden on-ratios when solver returns variable solution counts per candidate可能已有人在做 @houzhongyu 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 83/100
qboson/kaiwu-pytorch-plugin#2133 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 78/100
MakazhanAlpamys/Soup#3415 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 2 天内回复