Skip to content

Recover #24/#25 onto main + extend test coverage (56→68%) - #26

Merged
Bihan-Banerjee merged 4 commits into
mainfrom
test/coverage-push-2
Jun 4, 2026
Merged

Bihan-Banerjee merged 4 commits into
mainfrom
test/coverage-push-2

Conversation

@Bihan-Banerjee

Copy link
Copy Markdown
Owner

Summary

Recovers the orphaned #24 (docs) and #25 (audit/coverage) onto main and extends test coverage further.

⚠️ Why this re-includes #24/#25

The earlier stacked PRs merged into each other's branches instead of main: when #23 merged (and its branch was deleted), #24 merged into the feature branch and #25 into the docs branch — so GitHub marked them "MERGED" but their content never reached main. Those commits are cherry-picked here (no rebase/data loss), so this single PR brings everything to main cleanly. In future, merge stacked PRs top-down, or don't delete the base branch until the children retarget.

Contents

Coverage

56% → 68%. CI gate ratcheted --cov-fail-under 55 → 66.

Verification

  • pytest passing, coverage 68.23% ≥ 66 gate
  • ruff check cli/ backend/ clean; all new test files clean

Still 0% (next iteration)

alertmanager_handler.py (214 stmts), quarantine_cmd (190), switch_cmd (167) — targeting these next would push past ~76%.

🤖 Generated with Claude Code

Bihan-Banerjee and others added 4 commits June 4, 2026 07:37
New docs/SELF_HOSTING.md (host the dashboard cheaply on Fly.io/Render/Cloud Run with no cluster). changelog gets the [1.0.0] Unreleased entry; README status moves to v1.0.0 (Phase 14 current), adds a post-1.0 roadmap, the self-hosting doc index entry, and doctor/admission/snapshot command examples. INSTALL + ARCHITECTURE reference self-hosting and the admission command; SPA footer shows v1.0.0. Package __version__ stays 0.13.0 until the formal tag/PyPI cut (RELEASE.md).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Both Dockerfile.dashboard and Dockerfile.webhook still pinned fastapi==0.111.0, so the in-cluster containers shipped the Starlette CVEs already fixed in pyproject. Bump both to fastapi>=0.136,<0.137 + starlette>=1.2,<1.3, matching the [dashboard] extra.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Adds CliRunner tests for main (smoke + all commands wired), rollback, verify-image, sbom, status, and logs — previously 0% covered. Total coverage 56 to 66 percent; the CI gate moves to --cov-fail-under=64.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…); ratchet gate to 66

Adds tests for two previously-0% security runners (syft SBOM, cosign verify — skip/timeout/failure/success paths) and guardops init (scaffold, name validation, missing deps, no-clobber). Total coverage 66 to 68 percent; CI gate --cov-fail-under 64 to 66.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
guard-ops Ready Ready Preview, Comment Jun 4, 2026 2:12am

@Bihan-Banerjee
Bihan-Banerjee merged commit c55373d into main Jun 4, 2026
11 of 12 checks passed

This branch was successfully deployed

1 active deployment
Preview — 774ff3d8 Deployed Jun 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant