Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

Solution runner ignores non-zero exit codes

Ouverte
#18 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@jay23606 y travaille déjà.

Depuis le 10/10/2026.

  • #33 par @jay23606 — ouverte

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
62/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
Active
Stack technique
python
Domaine
testing

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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).

Langage dominant
Python
Étoiles
1
Forks
6
Merge moyen
17 h 52 min
PR mergées (30 j)
14

Préparer son environnement

  • Aucun Dockerfile ni fichier Docker Compose
  • Propose un modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de techcsispit/code-corner

Toutes les issues de techcsispit/code-corner

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.