Test runner reports success when no solutions are executed
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 76/100
Direção de pesquisa
Comece em run.py, onde os filtros de problema e idioma selecionam as soluções e o status de saída final verifica falhas. Execute os dois comandos de exemplo da issue para reproduzir as execuções vazias que terminam com sucesso. Atualize o tratamento para que uma seleção vazia seja informada e o processo termine com um código diferente de zero; verifique se as soluções correspondentes continuam sendo executadas normalmente.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
I noticed that the test runner reports a successful result even when the requested problem or language doesn't match any solutions.
For example, I tested:
python run.py does-not-exist
python run.py prime --lang rs
Both commands produced:
Summary: 0 passed, 0 failed, 0 skipped
The exit code was 0 in both cases. I repeated the tests twice and got the same results.
I expected the runner to report that no matching solutions were found and exit with a nonzero status, rather than treating an empty test run as successful.
Looking through run.py, the problem and language filters can exclude every available solution. However, the final exit status only checks whether any tests failed.
When nothing runs, the failure counter remains zero, so the runner reports success.
This could cause problems in automated verification. For example, a typo in a CI command or an incorrect language selection could skip every test while the pipeline still appears green.
A successful verification run should confirm that at least one matching solution was actually checked. If the selection is empty, the runner should report that explicitly instead of returning success.
- Linguagem predominante
- Python
- Estrelas
- 1
- Forks
- 6
- Merge médio
- 22h 41min
- PRs com merge (30d)
- 27
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de techcsispit/code-corner
-
prime/solution.java doesn't compile: public class PrimeCheck in solution.java, README requires Solution.java with a Solution classTalvez já em andamento @tanujb03 assumiu há 13 dias. Abertabug good first issue
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
techcsispit/code-corner#35 ·
Mantenedores costumam responder em até 1 dia
-
feat(anagram): add C solutionTalvez já em andamento @aadiitya2007 assumiu hoje. Aberta
techcsispit/code-corner#68 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
feat(binary-search): add C solutionTalvez já em andamento @aadiitya2007 assumiu há 1 dia. Aberta
techcsispit/code-corner#64 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
test(palindrome): add test cases for single-char, numeric, and punctuation edge casesTalvez já em andamento @aadiitya2007 assumiu há 1 dia. Aberta
techcsispit/code-corner#62 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
test(anagram): add edge cases for case sensitivity, single-char, and multi-word anagramsTalvez já em andamento @aadiitya2007 assumiu há 4 dias. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 25/100
techcsispit/code-corner#61 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de techcsispit/code-corner
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
aws-samples/sample-per-model-bedrock#464 ·
Mantenedores costumam responder em até 1 dia
-
lesson-submission pending-review
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
Ikalus1988/MisakaNet#3789 ·
Mantenedores costumam responder em até 1 dia
-
Python Volcengine provider returns failures instead of raising themTalvez já em andamento @Ricardo-M-L assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 79/100
agent-infra/sandbox#248 ·
-
[Bug] cloud JSON directory loading assumes a Key field in fsspec listingsTalvez já em andamento @Ricardo-M-L assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 88/100
hiyouga/LlamaFactory#10910 ·
Mantenedores costumam responder em até 1 dia
-
Bundled uv is never updated and trusts the compromised eMudhra certificatesTalvez já em andamento @FabienDanieau assumiu hoje. Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100