Skip to content

Test/coverage push 3 - #28

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

Bihan-Banerjee merged 14 commits into
mainfrom
test/coverage-push-3

Conversation

@Bihan-Banerjee

Copy link
Copy Markdown
Owner

No description provided.

Bihan-Banerjee and others added 14 commits June 4, 2026 09:08
…t); ratchet gate to 79

Adds tests for guardops runtime-status (skip/error/clean/alerts + --fail-on CI gate, Loki mocked) and the four dashboard live providers (sync/metrics/quarantine/runtime) — each asserting graceful {available:false} degradation and the success path. Total coverage 78 to 81 percent; CI gate --cov-fail-under 76 to 79.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…et gate to 80

Adds tests for cli/utils/system (run_command, dependency checks, command output) and backend/pipeline/pusher (push orchestration failure branches + happy path, plus the boto3 account-id/ECR-repo/docker-auth helpers). boto3, docker, and subprocess mocked. CI gate --cov-fail-under 79 to 80.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…het gate to 83

Adds CliRunner tests for guardops deploy: local success, the --gitops/local guard, and the build/scan/push/deploy failure gates plus the prod ECR-push path. Every collaborator (build/scan/push/deploy/DAST/config) is mocked. deploy_cmd 19 to 66 percent; total coverage 82 to 85 percent; CI gate --cov-fail-under 80 to 83.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Close the final ~95 uncovered lines across deploy/quarantine/sqlite/wizard/
gitops/dashboard/falco/sonarqube/alertmanager and assorted command tails, and
fix a width-dependent Rich-wrap flake in the admission missing-dir test. Bump
the CI coverage gate from 83 to 100.

- deploy_cmd: build path, k3d-import failure, gitops commit exception/failure,
  ArgoCD sync failure + no-token skip, DAST step skip/blocked-rollback branches,
  >5-findings truncation (deploy_cmd 100%)
- quarantine_cmd: kubectl-error-with-output warns + direct _run_kubectl wrapper
- sqlite_store: project/image list filters, image latest_run_before, trends
  project/env filters, empty keep_last prune, prune exception guard
- _deploy_wizard: isatty-raises + parameter-source-unavailable gates, slot/build/
  trivy to_cli_args, confirm_plan slot row
- s3_store/_hydrate/_fetch_export, deployer _helm_available + extra_set_values,
  gitops_writer _run_git/_get_current_sha/_find_chart_dir fallback
- falco_reader unexpected-error + non-iterable tags; sonarqube unknown-gate status
- alertmanager failed-action error log; sync in-progress; dashboard serve auth +
  snapshot S3 upload failure; trends/findings read errors; runtime overflow note;
  scan medium-warnings status; cli group callback; init env.example skip
- snapshot.py: pragma the unreachable non-dict safe() default

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 11:54am

@Bihan-Banerjee
Bihan-Banerjee merged commit 563bc8e into main Jun 4, 2026
3 of 6 checks passed

This branch was successfully deployed

1 active deployment
Preview — 505e67d4 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