Skip to content

feat: add Dependabot and backend unit test CI with coverage - #866

Merged
pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:orchestrate/ci
Mar 9, 2026
Merged

pdettori merged 3 commits into
rossoctl:mainfrom
pdettori:orchestrate/ci

Conversation

@pdettori

@pdettori pdettori commented Mar 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Add .github/dependabot.yml covering 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/*)
  • Add backend-tests job to CI workflow running pytest with pytest-cov coverage reporting and artifact upload
  • Add pytest-cov>=6.0.0 to backend dev dependencies with [tool.coverage] configuration

Test plan

  • Verify Dependabot creates initial PRs for each ecosystem after merge
  • Verify backend-tests job passes in CI (runs uv sync --frozen --extra dev + pytest --cov)
  • Verify coverage.xml artifact is uploaded
  • Verify existing build and tui CI jobs are unaffected

Closes #842

🤖 Generated with Claude Code

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]>
@pdettori pdettori added safe-to-test Maintainer reviewed - safe to run E2E tests Ready for Review! labels Mar 9, 2026

@cwiklik cwiklik left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread .github/dependabot.yml Resolved
Comment thread .github/dependabot.yml Resolved
Comment thread kagenti/backend/pyproject.toml Resolved
Comment thread .github/workflows/ci.yaml Resolved
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]>
@github-actions github-actions Bot removed the safe-to-test Maintainer reviewed - safe to run E2E tests label Mar 9, 2026
@github-actions

github-actions Bot commented Mar 9, 2026

Copy link
Copy Markdown

New Commits Detected

The safe-to-test label has been automatically removed because new commits were pushed.

New HEAD: 06fbe26

For maintainers: Please review the new changes and comment /run-e2e to trigger E2E tests.

Security checklist

Before running E2E tests, verify the PR does NOT contain:

  • Changes to .github/workflows/ that bypass security
  • Changes to .github/scripts/ that could exfiltrate secrets
  • curl, wget, or nc commands to external URLs in scripts
  • Base64 encoding of environment variables
  • Printing secrets to logs (echo $SECRET)
  • Suspicious package installations

This is an automated security measure to prevent TOCTOU attacks

@pdettori
pdettori merged commit 9f96a9d into rossoctl:main Mar 9, 2026
18 of 19 checks passed
@pdettori
pdettori deleted the orchestrate/ci branch March 9, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Orchestration: Add Dependabot, pytest-cov, CODEOWNERS, and Playwright CI

2 participants