Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Vinted Engineering 7 min read Case study mediumAdept

Test Smarter, Not Harder: Risk-Based Data Quality Without Pipeline Paralysis

Vinted's finance data team saw strict shift-left dbt tests on carrier invoice sources (CSV, JSON, Parquet, Excel) drive daily pipeline success sharply down as upstream schemas changed. Borrowing the accounting concept of materiality, they classified data quality tests by impact and frequency: high-impact tests (missing invoice amounts, duplicate tracking IDs) stay blocking in the main run, low-impact high-frequency checks run in a separate daily alerting job, and low-impact low-frequency issues go to weekly review. Implementation uses dbt test tags plus --exclude/--select flags, wired through Airflow orchestration. Alerts must also be actionable to avoid alert fatigue and preserve stakeholder trust.

Assumes: dbt tests and tagsdata pipeline orchestration

Related posts

  • Data quality testing

    incident.io mediumAdept

    incident.io runs data quality tests with dbt's native testing and tackled two problems: flaky relationship tests and slow debugging of failures. Relationship tests failed spuriously because transformations ran mid-ingestion, so a child table could reference rows not yet loaded into its parent. The fix overrides dbt's should_store_failures, relationships and get_test_sql macros so a missing foreign key only fails when it recurs across two consecutive hourly runs. For debugging, a Python step parses run_results.json and manifest.json to find failed tests and their stored-failure tables, then sends ready-made SELECT queries in the incident API payload so responders can see failing rows directly.

  • Updating our data stack

    incident.io mediumAdept

    incident.io's two-person data team reworked its BigQuery/dbt analytics stack as the company grew from 10 to 30 people. Fivetran moved to a separate BigQuery project after dbt tests in CI timed out because concurrent interactive queries exceeded BigQuery's 100-query quota. A CircleCI queue orb now serialises overlapping dbt runs that were creating and dropping the same tables. Unreliable GOOGLEFINANCE FX rates were replaced with a version-controlled seed plus a daily APILayer pull, checked by uniqueness and gaplessness tests. Models now materialise as tables rather than views, intermediate models sit between staging and fact/dimension models to avoid duplicated logic, SQLFluff enforces formatting, and Metabase folders separate sandbox work from locked-down core dashboards.

  • Data stack 2024

    incident.io mediumAdept

    incident.io's 2024 data stack runs Fivetran and Segment into BigQuery, dbt (run via Docker on CircleCI) for transforms, and Hightouch for reverse ETL. Analysis is split across Omni for internal BI, Explo for customer-facing embedded insights, and Hex for ad-hoc notebook work. Omni was chosen for its layered schema, shared and workbook models, which balance governance with flexibility. Local dbt development got faster by uploading each production manifest.json to GCS and wrapping `--defer --state` in bash aliases. Data pipeline failures, including flaky retries, now declare incidents and page responders automatically through incident.io's own On-call product, with urgency based on customer impact.

  • Data Lineage at Slack

    Slack Engineering mediumAdept

    Slack built a central Data Lineage Service that automatically captures table- and column-level lineage by hooking Airflow success callbacks and dashboard audit logs, then parsing the submitted SQL with ANTLR (backed by a large unit-test suite). Raw lineage lands in RDS MySQL, and a daily Spark job uses Pregel to traverse the dependency graph and write a flattened Hive table with a 'layer' column, so transitive downstream dependencies come back from a single query. A Data Portal notify feature uses this lineage to message downstream owners in Slack about deprecations and retention changes. Lineage for non-SQL Spark jobs, a graph database and automated schema-change alerts are listed as future work.

  • How SproutMe Cut Integration Test Time by 92.9% with DuckDB

    DuckDB mediumAdept

    SproutMe runs its Dagster + dbt ad-analytics pipeline against a local DuckDB file for development and CI while keeping BigQuery in production, switching targets via environment variables (including forcing TZ=UTC to match BigQuery timestamp semantics). Across 88 CI runs the per-merge integration test step dropped from a median 639 s to 45.6 s (92.9%), and local dbt backfill and incremental builds were 42–60% faster. CI builds the whole dbt project on DuckDB from committed fixtures and compares selected models to golden files. The gains are scoped to the dev/test workflow and are not a general engine comparison; production migration would need separate evaluation.

The quest for software engineering knowledge.

Look:
Layout: