Discover Packages
github.com/y-scope/metalog
test
directory
Version:
v0.0.0-...-c01bbe1
Opens a new window with list of versions in this module.
Published: Mar 19, 2026
License: Apache-2.0
Opens a new window with license information.
README
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:
Generates KV-IR files using clp-ffi-go
Uploads to MinIO (testcontainers)
Planner groups files and creates consolidation tasks
Worker downloads IR, compresses with real clp-s, uploads archive
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:
Fight-for-master: unassigned tables are claimed without double-claims
Single coordinator per table
Kafka JSON ingestion into the metadata table
Unique nodeIds from Docker HOSTNAME
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.
Expand ▾
Collapse ▴
Directories
¶
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.
Click to show internal directories.
Click to hide internal directories.