Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Untested branches in telemetry, backend errors, and CLI error paths

Fechada
#64 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
72/100
Tipo de issue
Refatoração
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
django, python, redis
Domínio
backend, cli, testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

side quest test

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_telemetry has no test, although every other interface method has one. [threadmill/backends/base.py]
  • RedisTaskBackend.worker_telemetry has no test for the pub/sub streaming loop and the invalid-payload skip. [threadmill/backends/redis.py]
  • RedisTaskBackend has no test for the ValueError of a missing REDIS_URL or for the TaskResultDoesNotExist raise in get_result. [threadmill/backends/redis.py]
  • WorkerCommand has no test for the invalid-backend and unsupported-queue CommandError branches or for the KeyboardInterrupt shutdown 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.

Linguagem predominante
Python
Estrelas
21
Forks
2
Merge médio
12h 39min
PRs com merge (30d)
27

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.