How wesjchen/time-series-pytest-framework works
This repository provides a CLI-driven QA framework for a time-series data warehouse: generate partitioned synthetic Parquet data, ingest it into PostgreSQL raw tables, then validate both the landing zone and warehouse data. The graph preserves the documented validation domains and all indexed storage and warehouse implementation modules. Validation details are documented, but individual test implementations were not excerpted; those links use README evidence.
Main entry points: tests QA test suite · ingest_to_raw.py Raw ingestor · __init__.py Storage factory · main.py Pipeline CLI
Components 20
Pipeline workflow
- Pipeline CLI
src/main.py - Synthetic generator
src/generate_synthetic_data.py - Raw ingestor
src/ingest_to_raw.py
Landing storage
- Storage factory
src/cloud_storage/__init__.py - Local backend
src/cloud_storage/local.py - S3 backend
src/cloud_storage/s3.py - GCS backend
src/cloud_storage/gcs.py - Azure backend
src/cloud_storage/azure.py - Partitioned Parquet
Raw warehouse
- Raw schema setup
src/warehouse/schema.py - Postgres access
src/warehouse/connection.py - PostgreSQL raw tables
QA validation
- QA test suite
tests - Landing-zone checks
tests - Schema contracts
tests - Counts and grain
tests - Nulls and outliers
tests - Timestamp checks
tests - Business logic
tests
Other components
- Engineer
Connections 28
- Engineer → Pipeline CLI: runs
README.md - Pipeline CLI → Synthetic generator: dispatches
src/main.py - Pipeline CLI → Raw ingestor: dispatches
src/main.py - Pipeline CLI → QA test suite: runs tests
src/main.py - Synthetic generator → Storage factory: gets backend
src/generate_synthetic_data.py - Storage factory → Local backend: selects
src/cloud_storage/__init__.py - Storage factory → S3 backend: selects
src/cloud_storage/__init__.py - Storage factory → GCS backend: selects
src/cloud_storage/__init__.py - Storage factory → Azure backend: selects
src/cloud_storage/__init__.py - Synthetic generator → Partitioned Parquet: writes partitions
README.md - Raw ingestor → Storage factory: gets backend
src/ingest_to_raw.py - Raw ingestor → Partitioned Parquet: reads partitions
src/ingest_to_raw.py - Raw ingestor → Raw schema setup: ensures schema
src/ingest_to_raw.py - Raw schema setup → Postgres access: executes DDL
src/warehouse/schema.py - Raw ingestor → Postgres access: opens connection
src/ingest_to_raw.py - Raw ingestor → PostgreSQL raw tables: inserts rows
src/ingest_to_raw.py - QA test suite → Landing-zone checks: includes
README.md - QA test suite → Schema contracts: includes
README.md - QA test suite → Counts and grain: includes
README.md - QA test suite → Nulls and outliers: includes
README.md - QA test suite → Timestamp checks: includes
README.md - QA test suite → Business logic: includes
README.md - Landing-zone checks → Partitioned Parquet: validates
README.md - Schema contracts → PostgreSQL raw tables: validates
README.md - Counts and grain → PostgreSQL raw tables: validates
README.md - Nulls and outliers → PostgreSQL raw tables: validates
README.md - Timestamp checks → PostgreSQL raw tables: validates
README.md - Business logic → PostgreSQL raw tables: compares results
README.md