Uncovered pre-existing branches in the Redis backend
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 半日
- 初心者へのやさしさ
- 84/100
調査の方向性
threadmill/backends/redis.py の147-148行、445行、494-495行から始め、既存のRedisバックエンドのテストを確認します。uv run pytest を実行して未カバーの分岐を確認し、REDIS_URL の欠落、未知の結果ID、形式不正のテレメトリを直接カバーするテストを追加します。これらの行が未カバーのまま残らず、テストがパスすれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Found by testJoe while adding coverage for the fair multi-queue rotation (codingjoe-fair-multi-queue-scheduling), and confirmed pre-existing (untouched by that diff):
defer: pre-existing uncovered lines threadmill/backends/redis.py L147-148, L445, L494-495. Unrelated to this diff. [threadmill/backends/redis.py]
The four lines are:
L147-148— theValueErrorraised whenREDIS_URLis missing from the backend params.L445—raise TaskResultDoesNotExist(...)inget_result().L494-495— theexcept ValueError: continuethat drops malformed pub/sub payloads inworker_telemetry().
None are reachable from the current test suite, so uv run pytest reports them as missing. Add direct tests (a backend without REDIS_URL, an unknown result id, a malformed telemetry message) or delete the branches that no caller can reach.
- 主要言語
- Python
- スター
- 12
- フォーク
- 1
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 10
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
codingjoe/threadmill のほかの issue
-
WorkerProcess passes None poll intervals to the backend, breaking acquire in the consumer thread オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
codingjoe/threadmill#53 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
codingjoe/threadmill#51 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
codingjoe/threadmill#47 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
codingjoe/threadmill#55 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
codingjoe/threadmill#54 ·
codingjoe/threadmill の issue をすべて見る
似ている issue
-
documentation help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
simonw/sqlite-utils#872 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100