Solution runner ignores non-zero exit codes
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
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
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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di techcsispit/code-corner
-
prime/solution.java doesn't compile: public class PrimeCheck in solution.java, README requires Solution.java with a Solution classForse già presa @tanujb03 l’ha presa 2 giorni fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
techcsispit/code-corner#35 ·
I maintainer di solito rispondono entro 1 giorno
-
Prime solution in C++ incorrectly returns true for some composite numbersForse già presa @paramsj l’ha presa 1 giorno fa. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 25/100
techcsispit/code-corner#38 ·
I maintainer di solito rispondono entro 1 giorno
-
Failed compilations always report 0.000 secondsForse già presa @Shivangi-singh18 l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 35/100
techcsispit/code-corner#37 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
run.py: Python solutions are skipped on Windows when run via python instead of python3Forse già presa @tanujb03 l’ha presa 2 giorni fa. Apertabug good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 15/100
techcsispit/code-corner#29 ·
I maintainer di solito rispondono entro 1 giorno
-
fibonacci/solution.c: prints negative numbers for n of 47 or more (F(90) prints -1581614984)Forse già presa @tanujb03 l’ha presa 2 giorni fa. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 25/100
techcsispit/code-corner#27 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di techcsispit/code-corner
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
huggingface/smolagents#2976 ·
I maintainer di solito rispondono entro 1 giorno
-
bug Triage-Needed
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
FuRongJun-1999/dsh-memory#170 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pgvector/pgvector-python#163 ·
-
[开源推荐] 打拼音就出篆书的输入法,附古文字创作小工具Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
521xueweihan/HelloGitHub#3940 ·