Untested branches in telemetry, backend errors, and CLI error paths
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 72/100
Piste de recherche
Start by locating the existing tests for the interfaces in threadmill/backends/base.py and threadmill/backends/redis.py, then inspect threadmill/management/commands/threadmill.py and its command tests. Add coverage for both worker_telemetry paths, the Redis error raises, the invalid-backend and unsupported-queue errors, and KeyboardInterrupt shutdown. Done means these listed branches are exercised and the relevant coverage remains complete.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Deferred from the task-prefetching review (crew run). All four items predate that branch and the branch does not touch them. The review reported them instead of adding tests.
ThreadmillTaskBackend.worker_telemetryhas no test, although every other interface method has one. [threadmill/backends/base.py]RedisTaskBackend.worker_telemetryhas no test for the pub/sub streaming loop and the invalid-payload skip. [threadmill/backends/redis.py]RedisTaskBackendhas no test for theValueErrorof a missingREDIS_URLor for theTaskResultDoesNotExistraise inget_result. [threadmill/backends/redis.py]WorkerCommandhas no test for the invalid-backend and unsupported-queueCommandErrorbranches or for theKeyboardInterruptshutdown path. [threadmill/management/commands/threadmill.py]
The patch of the branch has 100% line and branch coverage. These items are the remaining coverage gaps in the files that the branch touches.
- Langage dominant
- Python
- Étoiles
- 21
- Forks
- 2
- Merge moyen
- 12 h 39 min
- PR mergées (30 j)
- 27
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Issues similaires
-
infrastructure
Difficulté 2/5 1-3 heures Accessibilité débutants 74/100
khuisman/mcp-gee-sweet#1152 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
backroom bug
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
ditto-assistant/ditto-subnet#3069 ·
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
open-webui/open-webui#32901 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
0.3.3 bug
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
Les mainteneurs répondent en général sous 1 jour