Uncovered pre-existing branches in the Redis backend

オープン 初心者向け
#52 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
半日
初心者へのやさしさ
84/100
issue の種類
リファクタリング
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, redis

調査の方向性

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 — the ValueError raised when REDIS_URL is missing from the backend params.
  • L445raise TaskResultDoesNotExist(...) in get_result().
  • L494-495 — the except ValueError: continue that drops malformed pub/sub payloads in worker_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

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

codingjoe/threadmill のほかの issue

codingjoe/threadmill の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。