~/talk

Testing Airflow workflows - ensuring your DAGs work before going into production

Talkat Airflow Summit 2020 · 2020-07-06..07-17· [testing]
links:none on file
slides:none on file

Walks through concrete tests and tools: unit tests that call operator.execute for Python and Bash operators (note xcom_push behavior), using pytest fixtures to supply tempdirs and contexts, a parameterized dag integrity test that imports every DAG and detects cycles, mocking hooks with pytest-mock and patching HttpHook.run, and spinning up a real Postgres via pytest-docker-tools with init SQL to validate a Postgres-to-local operator. Shows airflow test vs airflow tasks test, the debug executor and using ipdb for breakpoints.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:12Testing challenges in airflow
  3. 5:04Challenges of testing workflows
  4. 8:52Unit testing airflow components
  5. 12:55Testing operators and context
  6. 18:55Pytest fixtures for airflow
  7. 25:50Implementing helper functions
  8. 31:05Dag integrity and cycle tests
  9. 34:25Mocking external dependencies
  10. 38:23Dockerized testing environments
  11. 43:58Debugging airflow tasks
  12. 47:43Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.