feat: isolated beat testing, headless pipeline, and mock telemetry harness - #233
Open
IanEff wants to merge 6 commits into
Open
feat: isolated beat testing, headless pipeline, and mock telemetry harness#233IanEff wants to merge 6 commits into
IanEff wants to merge 6 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enables developers on resource-constrained laptops (or doing fast unit verification) to test and run
thump's binaries in isolation without running a Kubernetes cluster, Docker/OrbStack VM, or the 12GB+ dev substrate.What's included:
test/fixtures/):signal.Detection,proposal.Set, anddecision.Governedpayloads forcart-failure.internal/step):step.RunRattle,step.RunClank,step.RunHiss, andstep.RunThump.internal/pipeline):pipeline.Runchains detection -> proposal -> decision -> dry-run outcome in-memory in ~50ms.internal/mock):mock.TelemetryServer: In-process HTTP server answering Prometheus PromQL and Loki query APIs.mock.EmbeddedBroker: In-process NATS + JetStream server on ephemeral or configured ports.cmd/calipers,internal/calipers):calipers step <rattle|clank|hiss|thump>calipers pipeline --detection <path>calipers mock [--prom-port 9090] [--nats]Taskfile.yaml,docs/dev-environment.md):task beat:rattle,task beat:clank,task beat:hiss,task beat:thumptask dev:pipelinetask dev:mockdocs/dev-environment.md.Verification
task ci(format check, vet, lint, vulncheck, kubeconform CRD/chart linting, promtool SLO tests, config validation, race tests, integration tests, and binary build).internal/step,internal/pipeline,internal/mock,internal/calipers, andtest/fixtures.