Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

Grade partial 0 - con test PASSED - HW4

d
davidefr (230 points)
0 2 3
in HW1 opzionale by (230 points)
reshown by

Salve, ho sottomesso l'HW4 con program01.py e algoritmo.txt e ho ricevuto l'email di conferma sulla consegna. Il codice consegnato presenta tutte le annotazioni tipo delle funzioni originali, ed eseguendo il codice in locale con pytest ottengo 8 test passati e 6 falliti per timeout. Tuttavia, in seguito alla consegna l'HW risulta con un program state "Tested", Numero di test superati "-", tempo di esecuzione dei test "-" e Grade partial 0. Inoltre nella sezione Correttezza ottengo questo log:

python  -m pytest  -v -s  --durations 0 -rA --import-mode=append --tb=short -l --profile --json program01.log.json -p no=hypothesispytest -p no=hypothesis --timeout=2  test_01.py
============================= test session starts ==============================
platform linux -- Python 3.9.13, pytest-7.2.0, pluggy-1.0.0 -- /home/andrea/micromamba/bin/python
cachedir= .pytest_cache
rootdir= /home/andrea/AA22/repo/AA22-HW4-req-it/students/1786279/homework04
plugins= timeout-2.1.0, cov-4.0.0, profiling-1.7.0, typeguard-2.13.3, json-0.4.0
timeout= 2.0s
timeout method= signal
timeout func_only= False
collecting ... collected 15 items

test_01.py==Test==test_example PASSED
test_01.py==Test==test_intricacy PASSED
test_01.py==Test==test_single_01___test02_bullfight_txt____poternusakesness__ PASSED
test_01.py==Test==test_single_02___test03_woodchuck_txt____aanreeaseesable__ PASSED
test_01.py==Test==test_single_03___test04_pampers_txt____ceeelieessseds__ PASSED
test_01.py==Test==test_single_04___test05_avocados_txt____sereeieeesssssncy__ PASSED
test_01.py==Test==test_single_05___test06_strums_txt____sereeeeesssssssynssm__ FAILED
test_01.py==Test==test_single_06___test07_sinew_txt____すひびずじぞぜぃけそみきおょぇどべしこしこれれあねきゞ_ぷ__ PASSED
test_01.py==Test==test_single_07___test08_boilings_txt______________________________________________ FAILED
test_01.py==Test==test_single_08___test09_meddles_txt____ᛢᚦᛝᛡᚤᚬᚬᛍᚸᛘᚣᚢᛜᛥᚳᛜᛖᛄᚢᛊᚬᛟᛈᛅᛞᚹᛯᚼᛁᚺ__ FAILED
test_01.py==Test==test_single_09___test10_aileron_txt____ᛠᚣᚻᛝᚧᛜ_くᚻᛝᚭᛈᚺᛦᚩᛞᛏᚽᛪᚢᚰᚯひᛃだᚯᚨろᚷᚦᛕᚸᛯᛄᛩᛂᚲᛆᛏᚰᛨぼゆᛇᛮᛚᚯᛓやᚼかᚯᚨᛦ_ᚩᚲᛋᚽ__ぜ_ゔ_______ /bin/bash= line 8= 338460 Killed                  python -m pytest -v -s --durations 0 -rA --import-mode=append --tb=short -l --profile --json program01.log.json -p no=hypothesispytest -p no=hypothesis --timeout=2 test_01.py
MAX TEST TIME (42s) REACHED

Mentre nella sezione efficenza ho il seguente messaggio di errore:

Not timed because some test did not PASS due to some Error.

Le mie domande sono le seguenti:
1. Da cosa è dovuta questo risultato dell'HW?
2. Potrò partecipare al peer assessment e avere fino a mercoledì per migliorare il mio codice e quindi renderlo più efficiente?
3. è un problema dovuto alla VM? Immagino che in queste ore sia messa duramente alla prova.
4. Il grade partial 0 è dovuto al fatto che ho passato 7 test su 15 non raggiungendo la sufficienza di 16 corrispondente a 8/15?

293 views

3 Answers

Fabiana Manzella (2590 points)
9 26 38
by (2.6k points)
Hai inserito 'encoding=utf-8'? quando apri il file? Io avevo lo stesso problema, passavo solo 8 test ma dopo averlo scritto, ho superato tutti i test
d
davidefr (230 points)
0 2 3
by (230 points)
si quando apro i file con open, gli passo come encoding='utf-8', non penso sia legato a questo il problema ma grazie!
SyncroIT (8690 points)
11 30 98
by (8.7k points)
Il fatto che non ti esca il grade partial nonostante i test siano stati già eseguiti è strano e probabilmente è dovuto ad un bug su Q2A.
Dovresti poter partecipare al peer assessment.
Non credo sia un problema dovuto dalla VM dato che questa ha svolto correttamente i test come puoi vedere anche tu nella tab correttezza.
 
Il fatto che nella tab Efficienza tu non veda nulla è normale.
I risultati dell'efficienza appaiono solo quando passi tutti i test.
Shangry_ (9930 points)
7 25 76
by (9.9k points)

2.dovresti poter partecipare al peer-assessement

per risolvere il problema di quei test failati:

L'encode non è 'utf-8' ma 'utf8'