Hello, It is best to write unit tests that will check that the files are correct. https://airflow.readthedocs.io/en/latest/best-practices.html?highlight=testing#unit-tests https://github.com/apache/airflow/blob/4421f011eeec2d1022a39933e27f530fb9f9c1b1/tests/test_example_dags.py#L34
Best regards, Kamil On Fri, May 1, 2020 at 5:09 PM Chris Palmer <[email protected]> wrote: > > Hi all, > > I'm wondering if others have experience with testing of DAG parsing. We use > CircleCI to automate deployment of DAGs to our environments, and I'd like to > add some simple test steps to check things like can Airflow parse all the > DAGs without errors, i.e. running `airflow list_dags` without errors. > > I'm working with Airflow 1.10.6 at the moment. I was hoping that the CLI > would exit with useful return codes but that doesn't appear to be the case. > > Does that mean I'm stuck capturing the output of the command and looking for > strings like 'failed to import'? > > Anyone have experience with this? > > Thanks > Chris > >
