Accelerate testing in Apache Airflow through DAG versioning
Zalando's Performance Marketing team runs multiple isolated versions of its Airflow-orchestrated marketing ROI pipeline on one shared test server, one per pull request. Each branch is deployed as a packaged DAG zip named after the branch. A patched Airflow DAG class reads the zip name to inject the environment into DAG ids and tags and to add unpacked folders to the Jinja template search path. A cron job tears environments down when PRs close. Matching data environments are created from stored DDLs as suffixed Spark databases on S3, using views over test tables instead of copying data, so new environments spin up in under a minute versus up to 30 minutes for a new MWAA server.
Related posts
- Lessons Learned From Running Apache Airflow at Scale
Shopify Engineering mediumAdeptShopify runs Airflow 2.2 on Kubernetes with the Celery executor and MySQL 8, and its largest environment handles over 10,000 DAGs and 150,000 runs per day. Running at that scale meant replacing GCSFuse with an in-cluster NFS server synced from GCS, enforcing a 28-day metadata retention policy, and tracking ownership through a per-environment namespace manifest. That manifest feeds a cluster DAG policy that restricts queues, pools and Kubernetes namespaces. To smooth load spikes, Shopify uses deterministically randomized crontab schedules hashed from dag_id and manages contention with pools synced from a ConfigMap, priority weights and isolated Celery queues.
- How Grab built Scarlet: the AI teammate that turns a Slack message into a production data pipeline
Grab Engineering mediumAdeptGrab's ADW team rebuilt Scarlet, its Slack-based data-pipeline agent, around a short core prompt plus a versioned library of Markdown skills (platform, routing, repository, workflow) loaded on demand, shrinking the prompt about 25x and letting new teams onboard by adding one reviewed repository skill. Platform tools sit behind two-tool MCP bridges, data-platform actions run under the requester's short-lived token, and sign-in pauses use LangGraph interrupts to resume runs. Scarlet now validates the data its changes produce by comparing CI candidate output against production (schema, counts, keys, nulls, stats, row diffs), with inconclusive treated as failure and verdicts bound to commits. Deterministic scaffolds replaced model guesses for predictable config, and after rollout the merge rate rose from about 50% to over 85% while repositories served grew about fourfold.
- How SproutMe Cut Integration Test Time by 92.9% with DuckDB
DuckDB mediumAdeptSproutMe 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.
- Create a database branch with GitHub Actions
Turso mediumAdeptA GitHub Actions workflow triggered on branch creation can call the Turso Platform API to seed a new database from an existing one, giving each Git branch its own isolated database. The workflow stores the API token, organization, group and source database name as repository secrets and names the new database after `github.ref_name`. It uses `curl -f` with exit-code checks to fail the job on API errors, then extracts the returned Hostname with `jq` and exports it to `GITHUB_ENV` for later steps such as deployments. Branch names must contain only lowercase letters, numbers and hyphens to be valid database names, and the official `tursodatabase/create-database-action` wraps the same logic.
- Data Lineage at Slack
Slack Engineering mediumAdeptSlack 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.