Skip to content

feat: add opdev e2e command for local k3d testing - #14

Merged
tonyferrell merged 2 commits into
mainfrom
feat/e2e-command
Mar 28, 2026
Merged

feat: add opdev e2e command for local k3d testing#14
tonyferrell merged 2 commits into
mainfrom
feat/e2e-command

Conversation

@tonyferrell

Copy link
Copy Markdown
Contributor

Summary

  • Adds opdev e2e subcommand with up|build|seed|status|teardown for managing a local k3d cluster
  • Mirrors production: same Helm charts, same Kubernetes, just k3d instead of k3s
  • Builds API + web Docker images locally, imports into k3d, deploys via Helm
  • Seeds test data (15 weight records over 90 days, 10 heart rate records) for chart verification
  • Requires values-local.yaml files in the ownpulse repo (added in separate PR)

Usage

opdev e2e             # full setup: cluster + build + deploy + seed
opdev e2e build       # rebuild images and redeploy
opdev e2e seed        # re-seed test data only  
opdev e2e status      # show pods, services, health checks
opdev e2e teardown    # delete the cluster

Supports --dry-run for all operations.

Test plan

  • go build ./src/ compiles cleanly
  • go test ./... passes (1 test file, all existing tests pass)
  • opdev e2e --help shows correct usage
  • opdev e2e up --dry-run prints expected steps without side effects
  • opdev e2e up creates cluster, deploys, seeds data (requires Docker + k3d)
  • opdev e2e status shows healthy pods and passing health checks
  • opdev e2e teardown cleans up completely

🤖 Generated with Claude Code

tonyferrell and others added 2 commits March 27, 2026 23:12
Adds a new subcommand to manage a local k3d Kubernetes cluster that
mirrors production. Supports: up, build, seed, status, teardown.

Builds Docker images, deploys via Helm with values-local.yaml overrides,
and seeds test data (weight, heart rate) for E2E verification.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The previous commit included local-only changes to cleanCmd that
referenced a 4-param CleanSessions not yet on main.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@tonyferrell
tonyferrell merged commit e4f27a1 into main Mar 28, 2026
1 check passed
@tonyferrell
tonyferrell deleted the feat/e2e-command branch March 28, 2026 06:17
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