fix(ci): add pytest-timeout, fix hanging test, split CI into quick + integration stages

- Add pytest-timeout>=2.3.0 to requirements-dev.txt with 120s global default
- Fix test_fallback_file_id_lookup: add missing _should_upload_* mocks that
  caused .delay() calls to hang on Redis broker connection
- Split CI test job into two stages:
  - Quick Tests (timeout: 10min, ~2min run): unit + basic integration
  - Integration Tests (timeout: 20min): Docker containers, external services
- Quick tests gate integration tests for fast-fail feedback
- Build job now depends on both test stages

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-01 16:43:56 +00:00
parent 069be988ab
commit 6c643e9962
4 changed files with 123 additions and 30 deletions
+1
View File
@@ -147,6 +147,7 @@ addopts = [
"--cov-report=term-missing",
"--cov-report=html",
"--cov-branch",
"--timeout=120",
]
markers = [
"unit: Unit tests for individual functions/methods",