You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/08 14:09:50 UTC

[GitHub] [airflow] eladkal commented on issue #12753: Remove side effects from TestCliDags and TestCliTasks

eladkal commented on issue #12753:
URL: https://github.com/apache/airflow/issues/12753#issuecomment-938674059


   Seems to be fixed:
   `pytest tests/cli/commands/test_dag_command.py`:
   
   ```
   tests/cli/commands/test_dag_command.py::TestCliDags::test_backfill PASSED                                                                                                                          [  5%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_backfill_depends_on_past PASSED                                                                                                      [ 10%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_backfill_depends_on_past_backwards PASSED                                                                                            [ 15%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_list_dag_runs PASSED                                                                                                                 [ 20%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_list_dags PASSED                                                                                                                     [ 25%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_list_jobs PASSED                                                                                                                     [ 30%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_list_jobs_with_args PASSED                                                                                                           [ 35%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_cli_report PASSED                                                                                                                        [ 40%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_dag_state PASSED                                                                                                                         [ 45%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_dag_test PASSED                                                                                                                          [ 50%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_dag_test_show_dag PASSED                                                                                                                 [ 55%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_delete_dag PASSED                                                                                                                        [ 60%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_delete_dag_existing_file PASSED                                                                                                          [ 65%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_next_execution PASSED                                                                                                                    [ 70%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_pause PASSED                                                                                                                             [ 75%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_show_dag_dave PASSED                                                                                                                     [ 80%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_show_dag_imgcat PASSED                                                                                                                   [ 85%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_show_dag_print PASSED                                                                                                                    [ 90%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_trigger_dag PASSED                                                                                                                       [ 95%]
   tests/cli/commands/test_dag_command.py::TestCliDags::test_trigger_dag_invalid_conf PASSED                                                                                                          [100%]
   ==================================================================================== 20 passed, 53 warnings in 35.12s ====================================================================================
   
   ```
   
   And
   
   `pytest tests/cli/commands/test_task_command.py`:
   ```
   
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_list_tasks PASSED                                                                                                                  [  3%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_invalid_raw_option_0__ignore_all_dependencies PASSED                                                                           [  7%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_invalid_raw_option_1__ignore_depends_on_past PASSED                                                                            [ 11%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_invalid_raw_option_2__ignore_dependencies PASSED                                                                               [ 15%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_invalid_raw_option_3__force PASSED                                                                                             [ 19%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_mutually_exclusive PASSED                                                                                                      [ 23%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_run_when_pickle_and_dag_cli_method_selected PASSED                                                                                 [ 26%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_test_with_env_vars PASSED                                                                                                          [ 30%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_cli_test_with_params PASSED                                                                                                            [ 34%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_parentdag_downstream_clear PASSED                                                                                                      [ 38%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_run_raises_when_theres_no_dagrun PASSED                                                                                                [ 42%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_run_with_existing_dag_run_id PASSED                                                                                                    [ 46%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_subdag_clear PASSED                                                                                                                    [ 50%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_task_render PASSED                                                                                                                     [ 53%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_task_state PASSED                                                                                                                      [ 57%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_task_states_for_dag_run PASSED                                                                                                         [ 61%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_task_states_for_dag_run_when_dag_run_not_exists PASSED                                                                                 [ 65%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_test PASSED                                                                                                                            [ 69%]
   tests/cli/commands/test_task_command.py::TestCliTasks::test_test_with_existing_dag_run PASSED                                                                                                      [ 73%]
   tests/cli/commands/test_task_command.py::TestLogsfromTaskRunCommand::test_disable_handler_modifying SKIPPED (The test is skipped because it has quarantined marker. And --include-quarantined ...) [ 76%]
   tests/cli/commands/test_task_command.py::TestLogsfromTaskRunCommand::test_external_executor_id_present_for_fork_run_task SKIPPED (The test is skipped because it has quarantined marker. And -...) [ 80%]
   tests/cli/commands/test_task_command.py::TestLogsfromTaskRunCommand::test_external_executor_id_present_for_process_run_task SKIPPED (The test is skipped because it has quarantined marker. An...) [ 84%]
   tests/cli/commands/test_task_command.py::TestLogsfromTaskRunCommand::test_log_file_template_with_run_task SKIPPED (The test is skipped because it has quarantined marker. And --include-quaran...) [ 88%]
   tests/cli/commands/test_task_command.py::TestLogsfromTaskRunCommand::test_logging_with_run_task SKIPPED (The test is skipped because it has quarantined marker. And --include-quarantined flag...) [ 92%]
   tests/cli/commands/test_task_command.py::TestLogsfromTaskRunCommand::test_logging_with_run_task_subprocess SKIPPED (The test is skipped because it has quarantined marker. And --include-quara...) [ 96%]
   tests/cli/commands/test_task_command.py::TestLogsfromTaskRunCommand::test_root_logger_restored SKIPPED (The test is skipped because it has quarantined marker. And --include-quarantined flag ...) [100%]
   ======================================================================================== short test summary info =========================================================================================
   SKIPPED [1] tests/conftest.py:306: The test is skipped because it has quarantined marker. And --include-quarantined flag is passed to pytest. <TestCaseFunction test_disable_handler_modifying>
   SKIPPED [1] tests/conftest.py:306: The test is skipped because it has quarantined marker. And --include-quarantined flag is passed to pytest. <TestCaseFunction test_external_executor_id_present_for_fork_run_task>
   SKIPPED [1] tests/conftest.py:306: The test is skipped because it has quarantined marker. And --include-quarantined flag is passed to pytest. <TestCaseFunction test_external_executor_id_present_for_process_run_task>
   SKIPPED [1] tests/conftest.py:306: The test is skipped because it has quarantined marker. And --include-quarantined flag is passed to pytest. <TestCaseFunction test_log_file_template_with_run_task>
   SKIPPED [1] tests/conftest.py:306: The test is skipped because it has quarantined marker. And --include-quarantined flag is passed to pytest. <TestCaseFunction test_logging_with_run_task>
   SKIPPED [1] tests/conftest.py:306: The test is skipped because it has quarantined marker. And --include-quarantined flag is passed to pytest. <TestCaseFunction test_logging_with_run_task_subprocess>
   SKIPPED [1] tests/conftest.py:306: The test is skipped because it has quarantined marker. And --include-quarantined flag is passed to pytest. <TestCaseFunction test_root_logger_restored>
   ============================================================================== 19 passed, 7 skipped, 55 warnings in 55.27s ===============================================================================
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org