~/talk

Use frameworks to test Apache Airflow data pipelines

Talkat Conf42 Python 2024 · on Thursday, 2024-02-29· [data-engineering, testing]
slides:none on file

A tiny demo project builds a two-task math DAG with a custom BasicMath operator that pulls a random number from an API and writes to local Postgres, and it runs locally with Astro CLI and VS Code debugging via dag.test(). CI runs astrod def pytest covering DAG validation, unit tests and integration tests; a deliberately broken catchup=true test fails, while an astrod def upgrade test reports no DAG errors upgrading to runtime 10.3.

AI-written summary · about

  1. 0:00intro
  2. 0:20preamble
  3. 0:31agenda
  4. 1:07what is airflow? who is astronomer?
  5. 9:33why test data pipelines?
  6. 10:53local development and testing
  7. 13:33astro cli and airflow cli testing features
  8. 16:23dag.test()
  9. 17:45ci/cd and testing
  10. 18:08from dev to staging
  11. 19:16dag validation testing
  12. 21:26unit tests with airflow
  13. 22:44integration tests with airflow
  14. 24:06the cf in ci/cd - our code on the way to the cloud
  15. 25:38code getting promoted to prod
  16. 26:26demo
  17. 45:49take home message
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.