Repository navigation
feat: add Dependabot and backend unit test CI with coverage - #866
Conversation
Add Dependabot configuration covering all ecosystems: github-actions, pip (root + backend), npm (ui-v2), gomod (tui), and docker (8 Dockerfiles). Add a dedicated backend-tests job to the CI workflow that runs pytest with coverage reporting via pytest-cov, uploading coverage.xml as an artifact. Configure [tool.coverage] in backend pyproject.toml. Closes rossoctl#842 Signed-off-by: Paolo Dettori <[email protected]>
test_migration.py imports from the root kagenti package (kagenti.tools.migrate_agents) which is not available in the backend venv. Exclude it from the backend-tests CI job since it belongs to the root package's test scope. Signed-off-by: Paolo Dettori <[email protected]>
cwiklik
left a comment
There was a problem hiding this comment.
Review Summary
Clean, well-structured PR that adds Dependabot for all 6 ecosystems and a backend unit test CI job with coverage. All Dockerfile directories and ecosystem roots verified to exist. All GitHub Actions are SHA-pinned matching existing repo patterns. Both commits are properly signed off with good commit messages. No security concerns found.
Areas reviewed: CI/GitHub Actions, YAML, Python, Lock file
Commits: 2, all signed-off
CI status: All passing
The only actionable suggestions are adding Dependabot groups to reduce future PR volume, adding auto-labels for Dependabot PRs, and increasing fail_under as coverage grows.
Address review feedback: - Add `labels: [dependencies]` to all ecosystem entries for easier triage and filtering of Dependabot PRs. - Add `groups.minor-and-patch` to batch minor/patch updates into a single PR per ecosystem, reducing PR noise. Signed-off-by: Paolo Dettori <[email protected]> Assisted-By: Claude (Anthropic AI) <[email protected]> Signed-off-by: Paolo Dettori <[email protected]>
New Commits DetectedThe New HEAD: For maintainers: Please review the new changes and comment Security checklistBefore running E2E tests, verify the PR does NOT contain:
This is an automated security measure to prevent TOCTOU attacks |
Summary
.github/dependabot.ymlcovering all 6 ecosystems: github-actions, pip (root + backend), npm (ui-v2), gomod (tui), and docker (8 Dockerfiles across.github/dockerfiles/,kagenti/backend/,kagenti/ui-v2/,kagenti/auth/*)backend-testsjob to CI workflow running pytest withpytest-covcoverage reporting and artifact uploadpytest-cov>=6.0.0to backend dev dependencies with[tool.coverage]configurationTest plan
backend-testsjob passes in CI (runsuv sync --frozen --extra dev+pytest --cov)buildandtuiCI jobs are unaffectedCloses #842
🤖 Generated with Claude Code