docling-studio/document-parser/tests
Pier-Jean Malandrino 09145206d2 fix: limit upload to 5 MB / 20 pages max and increase conversion timeout
Prevents PyTorch/Docling pipeline crashes on HF Spaces CPU by:
- Reducing max file size from 50 MB to 5 MB
- Adding configurable MAX_PAGE_COUNT setting (env var, default unlimited)
- Increasing conversion timeout from 600s to 900s
- Adding frontend upload validation with explicit error messages
- Exposing maxPageCount via /api/health for dynamic UI hints
2026-04-07 10:56:16 +02:00
..
__init__.py Add a stronger testing strategy 2026-03-18 14:46:37 +01:00
test_analysis_service.py Limit concurrent analyses with asyncio.Semaphore 2026-04-03 13:51:53 +02:00
test_api_endpoints.py fix: limit upload to 5 MB / 20 pages max and increase conversion timeout 2026-04-07 10:56:16 +02:00
test_bbox.py Move bbox.py from domain/ to infra/ and unify coordinate logic 2026-04-03 13:17:26 +02:00
test_chunking.py Add tests for ChunkBbox domain, schema, and API serialization 2026-04-02 14:47:40 +02:00
test_document_service.py fix: limit upload to 5 MB / 20 pages max and increase conversion timeout 2026-04-07 10:56:16 +02:00
test_models.py Add qualityt check and contributing doc 2026-03-21 15:34:54 +01:00
test_pipeline_options.py Skip pipeline options tests when docling is not installed 2026-04-03 15:42:14 +02:00
test_rate_limiter.py Add in-memory rate limiting middleware 2026-04-03 13:56:05 +02:00
test_repos.py Format backend codebase with ruff 2026-04-02 12:33:07 +02:00
test_schemas.py Format backend codebase with ruff 2026-04-02 12:33:07 +02:00
test_serve_converter.py Guard all docling-dependent tests for lightweight CI 2026-04-03 15:46:29 +02:00
test_settings.py fix: limit upload to 5 MB / 20 pages max and increase conversion timeout 2026-04-07 10:56:16 +02:00