Solution runner ignores non-zero exit codes
Les mainteneurs répondent en général sous 1 jour
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 62/100
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
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
- 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.
Autres issues de techcsispit/code-corner
-
prime/solution.java doesn't compile: public class PrimeCheck in solution.java, README requires Solution.java with a Solution classPeut-être pris @tanujb03 l’a pris il y a 2 jours. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
techcsispit/code-corner#35 ·
Les mainteneurs répondent en général sous 1 jour
-
Prime solution in C++ incorrectly returns true for some composite numbersPeut-être pris @paramsj l’a pris il y a 1 jour. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 25/100
techcsispit/code-corner#38 ·
Les mainteneurs répondent en général sous 1 jour
-
Failed compilations always report 0.000 secondsPeut-être pris @Shivangi-singh18 l’a pris il y a 1 jour. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 35/100
techcsispit/code-corner#37 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
run.py: Python solutions are skipped on Windows when run via python instead of python3Peut-être pris @tanujb03 l’a pris il y a 2 jours. Ouvertebug good first issue
Difficulté 1/5 Moins d'une heure Accessibilité débutants 15/100
techcsispit/code-corner#29 ·
Les mainteneurs répondent en général sous 1 jour
-
fibonacci/solution.c: prints negative numbers for n of 47 or more (F(90) prints -1581614984)Peut-être pris @tanujb03 l’a pris il y a 2 jours. Ouvertebug good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 25/100
techcsispit/code-corner#27 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de techcsispit/code-corner
Issues similaires
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100
huggingface/smolagents#2976 ·
Les mainteneurs répondent en général sous 1 jour
-
pulp-cli 0.41 break username password auth in older configs (cert and key present but empty)Ouvertebug Triage-Needed
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
FuRongJun-1999/dsh-memory#170 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
pgvector/pgvector-python#163 ·
-
[开源推荐] 打拼音就出篆书的输入法,附古文字创作小工具Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
521xueweihan/HelloGitHub#3940 ·