-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add docs comparing Python and YAML-based DAGs #327
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #327 +/- ##
==========================================
+ Coverage 93.31% 93.57% +0.25%
==========================================
Files 10 10
Lines 778 778
==========================================
+ Hits 726 728 +2
+ Misses 52 50 -2 ☔ View full report in Codecov by Sentry. |
Skipping 2.4 because: FAILED tests/test_example_dags.py::test_example_dag[example_hackernews_dagfactory] - ImportError: Pandas requires version '0.9.0' or newer of 'tabulate' (version '0.8.10' currently installed). FAILED tests/test_example_dags.py::test_example_dag[example_pypi_stats_dagfactory] - ImportError: Pandas requires version '0.9.0' or newer of 'tabulate' (version '0.8.10' currently installed). Skipping 2.3 because: ERROR tests/test_example_dags.py - AssertionError: assert not {'/home/runner/work/dag-factory/dag-factory/dev/dags/comparison/example_hackernews_plain_airflow.py': 'Traceback (most...ne, start_date=datetime(2022, 3, 4)) as dag:\nTypeError: __init__() got an unexpected keyword argument \'schedule\'\n'} + where {'/home/runner/work/dag-factory/dag-factory/dev/dags/comparison/example_hackernews_plain_airflow.py': 'Traceback (most...ne, start_date=datetime(2022, 3, 4)) as dag:\nTypeError: __init__() got an unexpected keyword argument \'schedule\'\n'} = Skipping 2.2 due to: same issue as 2.3
FAILED tests/test_example_dags.py::test_example_dag[example_hackernews_dagfactory] - ImportError: Pandas requires version '0.9.0' or newer of 'tabulate' (version '0.8.9' currently installed). FAILED tests/test_example_dags.py::test_example_dag[example_pypi_stats_dagfactory] - ImportError: Pandas requires version '0.9.0' or newer of 'tabulate' (version '0.8.9' currently installed).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with real world data analysis here :)
A couple of minor suggestions inline
Co-authored-by: Pankaj Koti <[email protected]>
Add documentation illustrating how two Airflow Python DAGs (one using traditional operators, another using TaskFlow API) are represented in Python (standard Airflow) and YAML (DAG Factory).
We use real-world data: one DAG uses Hacker News, and the other uses PyPI stats.
Before we merge this PR, I think we should merge #328 first and rebase this one. I isolated the tooling changes (mkdocs and others) in PR #328.
Close: #319