Uncovered pre-existing branches in the executor and worker command

未关闭
#54 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
72/100
Issue 类型
重构
描述清晰度
描述清楚
活跃度
活跃
技术栈
django, python
领域
backend, cli, testing

调研方向

先阅读 executor.py:278-280 以及 management/commands/threadmill.py 的第 114、122-123、125、153-156 和 176-177 行。运行 uv run pytest 以复现缺失的覆盖率,然后为每个分支添加直接测试,或确认哪些不可达分支可以删除。相关分支已被覆盖或删除且测试套件通过,即视为完成。

由索引模型根据 Issue 内容生成。

描述

Found by testJoe while adding coverage for the fair multi-queue rotation (codingjoe-fair-multi-queue-scheduling). All pre-existing, all untouched by that diff. Filed as one item because none of them is worth its own tracker entry.

  • executor.py:278-280 — the Empty/TimeoutError handler in WorkerThread.run. Currently shadowed by the redis.py:297 thread crash (see the sibling issue about None poll intervals), so it never runs in the suite.
  • management/commands/threadmill.py:114 — invalid-backend CommandError.
  • management/commands/threadmill.py:122-123,125 — invalid-log-format CommandError.
  • management/commands/threadmill.py:153-156KeyboardInterrupt shutdown branch.
  • management/commands/threadmill.py:176-177 — missing-inspector-dependency CommandError.

Add direct tests for each, or delete the branches no caller can reach. uv run pytest reports them as missing today.

主要语言
Python
星标
12
派生
1
平均合并
1 天 1 小时
30 天内合并 PR
10

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

codingjoe/threadmill 的其他 Issue

查看 codingjoe/threadmill 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。