-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Labels
area:CIAirflow's tests and continious integrationAirflow's tests and continious integrationkind:bugThis is a clearly a bugThis is a clearly a bug
Description
Apache Airflow version:
2.0.0dev
Kubernetes version (if you are using kubernetes) (use kubectl version):
Environment:
- breeze used locally, Python 3.8
What happened:
It seems that TestCliDags and TestCliTasks depends on side effects. Both works on CI (see builds for #12704) but do not work locally when run separately from all other tests.
Running pytest tests/cli/commands/test_dag_command.py:
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_backfill - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it failed to p...
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_list_dag_runs - airflow.exceptions.AirflowException: Dag id example_bash_operator not found
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_list_dags - AssertionError: 'airflow/example_dags/example_complex.py' not found in "- dag_id: clear_subdag_test_dag\n filepath: test_clear_...
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_list_jobs_with_args - airflow.exceptions.AirflowException: Dag id example_bash_operator not found
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_report - AssertionError: 'airflow/example_dags/example_complex.py' not found in '[{"file": "/test_example_bash_operator.py", "duration": "0:...
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_dag_state - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it failed to ...
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_next_execution - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it faile...
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_show_dag_dave - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it failed...
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_show_dag_imgcat - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it fail...
FAILED tests/cli/commands/test_dag_command.py::TestCliDags::test_show_dag_print - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it faile...
==================================================================================== 10 failed, 9 passed, 4 warnings in 19.64s =====================================================================================
and running pytest tests/cli/commands/test_task_command.py
============================================================================================= short test summary info ==============================================================================================
SKIPPED [1] tests/conftest.py:311: The test is skipped because it has quarantined marker. And --include-quarantined flag is passed to pytest. <TestCaseFunction test_local_run>
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_list_tasks - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it fai...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it failed to ...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_invalid_raw_option_0__ignore_all_dependencies - AssertionError: "Option --raw does not work with some of the other options on this com...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_invalid_raw_option_1__ignore_depends_on_past - AssertionError: "Option --raw does not work with some of the other options on this comm...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_invalid_raw_option_2__ignore_dependencies - AssertionError: "Option --raw does not work with some of the other options on this command...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_invalid_raw_option_3__force - AssertionError: "Option --raw does not work with some of the other options on this command." does not ma...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_mutually_exclusive - AssertionError: "Option --raw and --local are mutually exclusive." does not match "dag_id could not be found: exa...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_test - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it failed to...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_test_with_env_vars - airflow.exceptions.AirflowException: dag_id could not be found: example_passing_params_via_test_command. Either the d...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_test_with_params - airflow.exceptions.AirflowException: dag_id could not be found: example_passing_params_via_test_command. Either the dag...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_parentdag_downstream_clear - airflow.exceptions.AirflowException: dag_id could not be found: example_subdag_operator.section-1. Either the dag...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_subdag_clear - airflow.exceptions.AirflowException: dag_id could not be found: example_subdag_operator. Either the dag did not exist or it fai...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_task_state - airflow.exceptions.AirflowException: dag_id could not be found: example_bash_operator. Either the dag did not exist or it failed ...
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_task_states_for_dag_run - KeyError: 'example_python_operator'
FAILED tests/cli/commands/test_task_command.py::TestCliTasks::test_test - airflow.exceptions.AirflowException: dag_id could not be found: example_python_operator. Either the dag did not exist or it failed to p...
FAILED tests/cli/commands/test_task_command.py::TestLogsfromTaskRunCommand::test_logging_with_run_task - AssertionError: 2 != 1
===================================================================================== 16 failed, 6 passed, 1 skipped in 39.03s =====================================================================================
What you expected to happen:
Each test case should be runnable on its own.
potiuk
Metadata
Metadata
Assignees
Labels
area:CIAirflow's tests and continious integrationAirflow's tests and continious integrationkind:bugThis is a clearly a bugThis is a clearly a bug