static del frontend estratti con CRLF su Windows: test_offline rosso e librerie del setup diverse da quelle validate #81
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
FILE: src/frontend/flask_app/tests/test_offline.py:169 (test_the_shipped_libraries_are_the_ones_that_were_checked).
COSA SI ROMPE: con core.autocrlf=true (daitarn, runner windows:host) i 32 file di testo in src/frontend/flask_app/static escono con CRLF (git ls-files --eol: i/lf w/crlf). Le impronte sha256 di VERSIONS.md non tornano per alpinejs-3.15.12.min.js, pdf-3.11.174.min.js, pdf.worker-3.11.174.min.js, plotly-2.32.0.min.js. build.ps1 copia static/ nel pacchetto: il setup v3.0.0-rc1 contiene le versioni CRLF.
CORREZIONE: .gitattributes alla radice con 'src/frontend/flask_app/static/** text=auto eol=lf' (stesso schema di TieVision-Studio#9), poi nuova estrazione dei file. Nessun cambio nell'indice (gia' LF).
TEST: test_offline.py verde su daitarn; git ls-files --eol -> w/lf per static.
Soluzione
ESITO: fatto
FILE: .gitattributes (nuovo) — src/frontend/flask_app/static/** text=auto eol=lf.
COMMIT:
62b5e41(lavoro/daitarn-tmf-81), merged652891in V3.0.0.PROVA: dopo nuova estrazione git ls-files --eol static -> w/lf; test_offline.py -> 9 passed. PROVA: ramo integrato V3.0.0
d652891su daitarn, Python 3.13: pytest -n 8 src/backend/tests src/frontend/flask_app/tests packaging/windows/tests -> 911 passed, 4 skipped, 0 failed. Tag v3.0.0-rc2.NOTA: il setup v3.0.0-rc1 contiene le librerie CRLF; v3.0.0-rc2 e' il primo con quelle validate.