Test runner reports success when no solutions are executed
维护者通常 1 天内回复
@vivek-3728 已经在做这个了。
开始于 2026年10月20日。
评估
调研方向
从 run.py 开始,这里由问题和语言筛选器选择解答,并通过最终退出状态检查是否存在失败。运行 issue 中的两个示例命令,复现空运行却成功退出的情况。更新处理逻辑,使其在选择结果为空时给出提示并以非零状态退出;验证匹配的解答仍能正常运行。
由索引模型根据 Issue 内容生成。
描述
I noticed that the test runner reports a successful result even when the requested problem or language doesn't match any solutions.
For example, I tested:
python run.py does-not-exist
python run.py prime --lang rs
Both commands produced:
Summary: 0 passed, 0 failed, 0 skipped
The exit code was 0 in both cases. I repeated the tests twice and got the same results.
I expected the runner to report that no matching solutions were found and exit with a nonzero status, rather than treating an empty test run as successful.
Looking through run.py, the problem and language filters can exclude every available solution. However, the final exit status only checks whether any tests failed.
When nothing runs, the failure counter remains zero, so the runner reports success.
This could cause problems in automated verification. For example, a typo in a CI command or an incorrect language selection could skip every test while the pipeline still appears green.
A successful verification run should confirm that at least one matching solution was actually checked. If the selection is empty, the runner should report that explicitly instead of returning success.
- 主要语言
- Python
- 星标
- 1
- 派生
- 6
- 平均合并
- 22 小时 23 分钟
- 30 天内合并 PR
- 22
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
techcsispit/code-corner 的其他 Issue
-
feat(palindrome): add C solution可能已有人在做 @aadiitya2007 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
techcsispit/code-corner#58 · 1 条评论 ·
维护者通常 1 天内回复
-
prime/solution.java doesn't compile: public class PrimeCheck in solution.java, README requires Solution.java with a Solution class可能已有人在做 @tanujb03 于 10 天前认领。 未关闭bug good first issue
难度 1/5 1 小时以内 新手友好度 82/100
techcsispit/code-corner#35 ·
维护者通常 1 天内回复
-
feat(binary-search): add JavaScript solution可能已有人在做 @aadiitya2007 今天认领。 未关闭feature
techcsispit/code-corner#56 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
feat(roman-numerals): add C++ solution可能已有人在做 @aadiitya2007 今天认领。 未关闭feature
techcsispit/code-corner#54 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Failed compilations always report 0.000 seconds可能已有人在做 @Nik-2208 于 7 天前认领。 未关闭bug good first issue
难度 2/5 1-3 小时 新手友好度 35/100
techcsispit/code-corner#37 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 techcsispit/code-corner 的全部 Issue
相似的 Issue
-
documentation good first issue
难度 2/5 1-3 小时 新手友好度 82/100
selimfirat/pysad#379 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
open-webui/open-webui#32805 ·
维护者通常 1 天内回复
-
fix: [bug description] HTML CVE metric table shows only the last CVE for each product可能已有人在做 @Chris-wh233 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 66/100
ossf/cve-bin-tool#5976 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 72/100
gke-labs/kube-agents#3615 ·
维护者通常 1 天内回复
-
deferred
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复