ci: GitHub Actions for backend, UI, and Docker build#6
Merged
Conversation
- Several rag-chat endpoint tests didn't mock enqueue_memory_refresh, a fire-and-forget outbox write. They only passed locally because the (gitignored) .env pointed at a real Supabase project; in CI there's no such project, so the write failed. Mock it by default in conftest.py; tests that care about the call still patch/assert it explicitly. - Backend Test step now sets dummy SUPABASE_URL/SECRET_KEY/JWKS_URL env vars so Settings' "is this configured" checks pass without a real project. example.com is used because it actually resolves via DNS (unlike a fabricated *.supabase.co host), even though invalid JWTs fail parsing before any network call is made.
_execute_research_run schedules Neo4j persistence via asyncio.create_task, intentionally decoupled from run completion. The test asserted on it right after asyncio.run() returned, racing the background task — it usually won locally but lost more often on the slower/loaded GitHub Actions runner. Drain pending tasks before asserting so the test is deterministic.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/ci.yml: backend job (ruff + pytest, mypy non-blocking), ui job (eslint + tsc + vitest), docker build job (main only)Test plan