6 Commits

Author SHA1 Message Date
Matthieu B
06d8c94734 Merge pull request #1204 from wizarrrr/fix/tests-linting-types
fix: resolve all test failures, linting errors, and type errors
2026-03-29 16:24:36 +02:00
Matthieu B
73c29458fe fix: resolve all test failures, linting errors, and type errors
- Fix 55 test failures caused by missing request contexts and incorrect
  session_transaction() usage across 8 test files
- Fix ruff import sorting errors and unused imports
- Fix 122 type errors: rename method override parameters to match base
  classes, add None guards for fetchone()/datetime, widen dict type
  annotations, add type: ignore for SQLAlchemy stub limitations
- Add [tool.ty.rules] config to suppress unsupported-base warnings
- Fix _ variable shadowing gettext in wizard routes
- Add noqa: ARG002 for unused method arguments required by base class
2026-03-29 16:20:23 +02:00
Matthieu B
e5360491be fix: remove corrupt 0-byte session cache files instead of logging forever
Overrides cachelib's _remove_expired to delete empty/truncated session
files that cause endless "Exception raised while handling cache file"
warnings. Also cleans up corrupt files at startup.

Fixes #1180
2026-03-29 15:56:33 +02:00
Matthieu B
9b5aa0972a refactor: remove slop from media and new linting rules 2025-10-23 18:33:50 +02:00
Matthieu B
95a7ccc071 fix: enhance RobustFileSystemCache set method to support management element and improve stale file handle error handling 2025-08-09 20:56:35 +02:00
Matthieu B
000dc024b3 feat: implement robust session cache to handle stale file handle errors
fix: enhance scheduler initialization to skip during migrations
chore: update docker entrypoint to skip scheduler during migrations
docs: add detailed explanation for session cache stale file handle fix
2025-08-09 20:22:51 +02:00