chore: add unit tests for pure functions + CI test job #11

Merged
jcabillot merged 7 commits from chore/add-tests into main 2026-06-12 08:50:32 -04:00

7 Commits

Author SHA1 Message Date
cloudix_mcp_server 30ac4ae9ca fix: correct integration test assertions for semantic search
Docker Build and Push / test (pull_request) Successful in 14s
Docker Build and Push / integration-test (pull_request) Successful in 1m44s
Docker Build and Push / build (pull_request) Successful in 1m12s
- test_search_by_content: format_search_result() does not include
  body_text, so check for the expected message_id instead.
- test_search_no_results: vector cosine similarity always returns
  nearest neighbors; use a date filter far in the future to
  guarantee zero results instead.
2026-06-12 08:25:52 -04:00
cloudix_mcp_server d784cd9fba fix: share job container network with Qdrant
Docker Build and Push / test (pull_request) Successful in 13s
Docker Build and Push / integration-test (pull_request) Failing after 1m49s
Docker Build and Push / build (pull_request) Has been skipped
docker run -d publishes ports to the Docker bridge network, but the
job container runs on a different Gitea Actions network. This causes
Connection refused when tests try http://localhost:6333.

Use --network container:$(hostname) so Qdrant shares the job container's
network stack, making localhost reachable.
2026-06-12 08:14:35 -04:00
cloudix_mcp_server 14650619ad fix: replace Gitea services container with manual docker run for Qdrant
Docker Build and Push / test (pull_request) Successful in 1m33s
Docker Build and Push / integration-test (pull_request) Failing after 2m23s
Docker Build and Push / build (pull_request) Has been skipped
The Gitea Actions runner v1.0.8 fails to start the Qdrant service container
with 'exec: ./entrypoint.sh: no such file or directory'. This is a runner bug
with how it handles service container entrypoints/CMD.

Bypass the service container mechanism by starting Qdrant manually with
docker run -d and a health check wait loop.
2026-06-12 08:10:51 -04:00
cloudix_mcp_server 655af15121 fix: replace Gitea services container with manual docker run for Qdrant
The Gitea Actions runner v1.0.8 fails to start the Qdrant service container
with 'exec: ./entrypoint.sh: no such file or directory'. This is a runner bug
with how it handles service container entrypoints/CMD.

Bypass the service container mechanism by starting Qdrant manually with
docker run -d and a health check wait loop.
2026-06-12 08:08:18 -04:00
opencodecabilloteu 07e7de2811 chore: add integration tests with real Qdrant instance
Docker Build and Push / test (pull_request) Successful in 13s
Docker Build and Push / integration-test (pull_request) Failing after 8s
Docker Build and Push / build (pull_request) Has been skipped
- Integration tests for search_emails and read_email against live Qdrant
- Indexes 3 test emails, tests search by content/participant/date
- CI: new 'integration-test' job with qdrant service, runs before build
- Unit test job ignores integration test file
2026-06-11 12:30:59 +00:00
opencodecabilloteu 78ce84f4ff fix: set QDRANT_URL/COLLECTION_NAME env vars for test import
Docker Build and Push / test (pull_request) Successful in 1m30s
Docker Build and Push / build (pull_request) Successful in 1m11s
2026-06-11 12:24:46 +00:00
opencodecabilloteu 1700877918 chore: add unit tests for pure functions + CI test job
Docker Build and Push / test (pull_request) Failing after 1m35s
Docker Build and Push / build (pull_request) Has been skipped
- Unit tests for normalize_email_address, payload_matches_participant,
  format_search_result (9 test cases across 3 test classes)
- New 'test' job in CI workflow (runs before build)
- pytest.ini for pythonpath config
2026-06-11 12:18:20 +00:00