test/

directory
v0.0.0-...-c01bbe1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Apache-2.0

README

Integration Tests

Which test should I run?

Directory What it tests How to run Requirements
pipeline/ Consolidation data path (IR → archive) go test -tags integration ./test/pipeline/... Docker (testcontainers), clp-s (auto-built)
coordination/ Multi-node HA, fight-for-master, Kafka ingestion ./test/coordination/test-multi-node.sh Docker Compose
benchmarks/ingestion/ Ingestion throughput (gRPC, Kafka) go run ./test/benchmarks/ingestion Docker (testcontainers), CGO
benchmarks/task-queue-scalability/ Task queue scalability matrix go run ./test/benchmarks/task-queue-scalability Docker (testcontainers)
stacks/presto/ Presto-CLP query integration ./test/stacks/presto/start.sh Docker Compose, clp-core .deb

Test descriptions

pipeline/ — Consolidation pipeline

Go test that exercises the full consolidation data path in a single process:

  1. Generates KV-IR files using clp-ffi-go
  2. Uploads to MinIO (testcontainers)
  3. Planner groups files and creates consolidation tasks
  4. Worker downloads IR, compresses with real clp-s, uploads archive
  5. Planner finalizes: marks ARCHIVE_CLOSED, deletes source IR

Uses testcontainers (MariaDB + MinIO) — no Docker Compose needed.

coordination/ — Multi-node coordination

Bash script that spins up a full Docker Compose stack with 2 coordinator replicas and validates:

  1. Fight-for-master: unassigned tables are claimed without double-claims
  2. Single coordinator per table
  3. Kafka JSON ingestion into the metadata table
  4. Unique nodeIds from Docker HOSTNAME
  5. Periodic reconciliation picks up newly registered tables
benchmarks/

Self-contained Go binaries that start their own infrastructure via testcontainers.

stacks/presto/

Full Presto-CLP integration stack for manual testing and demos.

Directories

Path Synopsis
benchmarks
ingestion command
Package main implements a unified ingestion benchmark for the metalog coordinator.
Package main implements a unified ingestion benchmark for the metalog coordinator.
task-queue-scalability command
Command benchmark-taskqueue sweeps a matrix of node counts × workers-per-node to find the throughput ceiling of the _task_queue table under concurrent load.
Command benchmark-taskqueue sweeps a matrix of node counts × workers-per-node to find the throughput ceiling of the _task_queue table under concurrent load.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL