Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Solution runner ignores non-zero exit codes

Aperta
#18 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@jay23606 ci sta già lavorando.

Dal 10/10/2026.

  • #33 di @jay23606 — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
testing

Direzione di ricerca

The payload does not name the runner file, so start by locating the solution runner and the code that compares program output with the expected answer. Reproduce with a Python solution that prints the expected answer and then calls sys.exit(1), and confirm the test currently passes. Done when a non-zero exit code marks the test as failed even when the output matches, and the failure reports the exit code and any stderr output.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug good first issue

I noticed that the solution runner compares a program's output with the expected answer but doesn't check whether the program actually exited successfully.

For example, a Python solution could print the correct answer and then exit with status code 1. Since its output matches the expected result, the runner can still mark the solution as passing even though the program failed.

This makes the test results unreliable because runtime errors can go unnoticed, particularly when a program produces the expected output before crashing.

I expected the runner to treat a non-zero exit code as a failed test, even when the output matches, and provide useful error information to help identify the failure.

This can be reproduced by creating a solution that prints the expected answer and then calls sys.exit(1).

Lingua principale
Python
Stelle
1
Fork
6
Merge medio
17h 52m
PR unite (30g)
14

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di techcsispit/code-corner

Tutte le issue di techcsispit/code-corner

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.