Airflow CI/CD: Github to Cloud Composer (safely)
summary
Opinionated mono-repo pattern deploys Airflow DAGs, SQL, jars and Dataflow artifacts to Cloud Composer with automated checks: static linting (flake8), dag parsing (<2s), unit/integration tests, BigQuery dry-runs and a final list_dags check using the gcs fuse worker data directory. A small deploy_dags golang app compares a checked-in runningdags.txt, hashes files, and concurrently unpauses DAGs with retry for the GCS→worker sync. Example run deploys 22 DAGs via Cloud Build to CI Composer; tooling is open source and works in practice.
AI-written summary · about
chapters (12)
- 0:00Introduction to Composer
- 0:41Understanding GCS buckets
- 4:22Testing data pipelines
- 6:47DAG sanity checks
- 12:03Environment consistency
- 13:44Deploying DAGs safely
- 16:52Automating unpausing
- 20:20CI/CD with Cloud Build
- 26:07Production release process
- 27:21Demo and workflow review
- 36:36Future goals and Q&A
- 41:45Audience Q&A continued
