generated from astronomer/airflow-provider-sample
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Remove pytest durations from tests #102
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Even though the --durations flag can be very helpful in debugging and troubleshooting test durations, to have it in a permanent basis adds overhead to the tests and obfuscates us seeing more relevant data, such as coverage report, since the last lines look like this: ``` ================================ slowest durations ================================ 2.01s call tests/test_hooks.py::TestRayHook::test_wait_for_load_balancer_timeout 1.01s call tests/test_triggers.py::TestRayJobTrigger::test_run_with_log_streaming 1.01s call tests/test_triggers.py::TestRayJobTrigger::test_run_job_succeeded 1.01s call tests/test_triggers.py::TestRayJobTrigger::test_run_job_failed 1.01s call tests/test_triggers.py::TestRayJobTrigger::test_run_job_stopped 1.01s call tests/test_hooks.py::TestRayHook::test_wait_for_load_balancer_service_not_found 0.19s call tests/test_hooks.py::TestRayHook::test_get_connection_form_widgets 0.06s setup tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[SUCCEEDED-None] 0.05s call tests/test_decorators.py::TestRayDecoratedOperator::test_initialization 0.01s teardown tests/test_triggers.py::TestRayJobTrigger::test_run_job_succeeded 0.01s call tests/test_triggers.py::TestRayJobTrigger::test_run_with_exception 0.01s call tests/test_triggers.py::TestRayJobTrigger::test_run_no_job_id 0.00s call tests/test_hooks.py::TestRayHook::test_load_yaml_content 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_run_job_failed 0.00s call tests/test_triggers.py::TestRayJobTrigger::test_stream_logs 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_run_with_log_streaming 0.00s call tests/test_hooks.py::TestRayHook::test_delete_ray_cluster_exception 0.00s call tests/test_triggers.py::TestRayJobTrigger::test_poll_status 0.00s call tests/test_hooks.py::TestRayHook::test_setup_kubeconfig_content 0.00s call tests/test_hooks.py::TestRayHook::test_setup_ray_cluster_exception 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait_and_defer 0.00s call tests/test_hooks.py::TestRayHook::test_get_daemon_set 0.00s call tests/test_triggers.py::TestRayJobTrigger::test_cleanup_with_cluster_yaml 0.00s call tests/test_hooks.py::TestRayHook::test_delete_ray_cluster_success 0.00s call tests/test_hooks.py::TestRayHook::test_validate_yaml_file_success 0.00s call tests/test_hooks.py::TestRayHook::test_setup_ray_cluster_success 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_stream_logs 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_defer[http://dashboard.url] 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[RUNNING-defer] 0.00s call tests/test_decorators.py::TestRayDecoratedOperator::test_execute_decorated_function 0.00s call tests/test_hooks.py::TestRayHook::test_delete_daemon_set_exception 0.00s call tests/test_hooks.py::TestRayHook::test_validate_yaml_file_invalid_yaml 0.00s call tests/test_hooks.py::TestRayHook::test_delete_daemon_set_not_found 0.00s call tests/test_hooks.py::TestRayHook::test_create_daemon_set 0.00s call tests/test_decorators.py::TestRayDecoratedOperator::test_execute_failure 0.00s call tests/test_hooks.py::TestRayHook::test_is_port_open 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_run_with_log_streaming 0.00s call tests/test_hooks.py::TestRayHook::test_get_daemon_set_not_found 0.00s call tests/test_hooks.py::TestRayHook::test_delete_daemon_set 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_job_unexpected_state 0.00s call tests/test_hooks.py::TestRayHook::test_create_daemon_set_exception 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[SUCCEEDED-None] 0.00s call tests/test_hooks.py::TestRayHook::test_install_kuberay_operator 0.00s setup tests/test_hooks.py::TestRayHook::test_wait_for_load_balancer_service_not_found 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_defer[None] 0.00s setup tests/test_hooks.py::TestRayHook::test_create_or_update_cluster_update 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[PENDING-defer] 0.00s call tests/test_decorators.py::TestRayDecoratedOperator::test_execute_with_entrypoint 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[STOPPED-raise] 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_exception_handling 0.00s call tests/test_operators.py::TestSetupRayCluster::test_hook_property 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_cluster_setup_exception 0.00s setup tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_with_ingress 0.00s call tests/test_hooks.py::TestRayHook::test_uninstall_kuberay_operator 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_run_job_stopped 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[FAILED-raise] 0.00s call tests/test_hooks.py::TestRayHook::test_delete_ray_job 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_run_job_failed 0.00s setup tests/test_hooks.py::TestRayHook::test_validate_yaml_file_success 0.00s call tests/test_hooks.py::TestRayHook::test_wait_for_load_balancer_success 0.00s call tests/test_hooks.py::TestRayHook::test_get_ray_job_status 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_without_wait_no_cleanup 0.00s call tests/test_hooks.py::TestRayHook::test_get_ray_job_logs 0.00s call tests/test_hooks.py::TestRayHook::test_run_bash_command_exception 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_run_job_stopped 0.00s call tests/test_hooks.py::TestRayHook::test_setup_kubeconfig_path 0.00s call tests/test_hooks.py::TestRayHook::test_create_daemon_set_no_body 0.00s setup tests/test_hooks.py::TestRayHook::test_check_load_balancer_readiness_ip 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_without_wait 0.00s setup tests/test_hooks.py::TestRayHook::test_ray_client 0.00s call tests/test_operators.py::TestSubmitRayJob::test_on_kill 0.00s call tests/test_hooks.py::TestRayHook::test_create_or_update_cluster_update 0.00s setup tests/test_hooks.py::TestRayHook::test_ray_client_exception 0.00s setup tests/test_hooks.py::TestRayHook::test_run_bash_command_exception 0.00s call tests/test_hooks.py::TestRayHook::test_setup_kubeconfig_invalid_config 0.00s setup tests/test_hooks.py::TestRayHook::test_wait_for_load_balancer_timeout 0.00s call tests/test_hooks.py::TestRayHook::test_submit_ray_job 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[RUNNING-defer] 0.00s call tests/test_hooks.py::TestRayHook::test_validate_yaml_file_not_found 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_complete_cleanup_on_exception 0.00s call tests/test_operators.py::TestSetupRayCluster::test_execute 0.00s setup tests/test_hooks.py::TestRayHook::test_validate_yaml_file_not_exists 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait_and_defer 0.00s call tests/test_hooks.py::TestRayHook::test_validate_yaml_file_invalid_extension 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_stream_logs 0.00s setup tests/test_hooks.py::TestRayHook::test_submit_ray_job 0.00s setup tests/test_hooks.py::TestRayHook::test_create_or_update_cluster_exception 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_complete[FAILED-raise] 0.00s call tests/test_operators.py::TestSubmitRayJob::test_setup_cluster 0.00s call tests/test_operators.py::TestDeleteRayCluster::test_execute 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_defer[None] 0.00s setup tests/test_hooks.py::TestRayHook::test_validate_yaml_file_invalid_yaml 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[FAILED-raise] 0.00s setup tests/test_hooks.py::TestRayHook::test_delete_ray_cluster_exception 0.00s setup tests/test_hooks.py::TestRayHook::test_check_load_balancer_readiness_hostname 0.00s setup tests/test_hooks.py::TestRayHook::test_setup_ray_cluster_exception 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_complete_with_cleanup 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_run_no_job_id 0.00s setup tests/test_hooks.py::TestRayHook::test_delete_ray_cluster_success 0.00s setup tests/test_hooks.py::TestRayHook::test_get_service_not_found 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[STOPPED-raise] 0.00s setup tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_no_ingress 0.00s call tests/test_operators.py::TestSubmitRayJob::test_delete_cluster 0.00s call tests/test_operators.py::TestSubmitRayJob::test_delete_cluster_exception 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_cluster_setup_exception 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_without_wait_no_cleanup 0.00s setup tests/test_hooks.py::TestRayHook::test_check_load_balancer_readiness_not_ready 0.00s call tests/test_operators.py::TestSubmitRayJob::test_setup_cluster_exception 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[PENDING-defer] 0.00s setup tests/test_hooks.py::TestRayHook::test_get_service_success 0.00s call tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_with_ingress 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_job_unexpected_state 0.00s setup tests/test_hooks.py::TestRayHook::test_wait_for_load_balancer_success 0.00s call tests/test_hooks.py::TestRayHook::test_ray_client 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_defer[http://dashboard.url] 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_exception_handling 0.00s setup tests/test_hooks.py::TestRayHook::test_setup_ray_cluster_success 0.00s call tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_with_hostname 0.00s setup tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_with_hostname 0.00s setup tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_no_ip_or_hostname 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_complete[STOPPED-raise] 0.00s call tests/test_decorators.py::TestRayDecoratedOperator::test_invalid_config_raises_exception 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_run_no_job_id 0.00s call tests/test_operators.py::TestDeleteRayCluster::test_hook_property 0.00s call tests/test_triggers.py::TestRayJobTrigger::test_cleanup_without_cluster_yaml 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_without_wait 0.00s call tests/test_decorators.py::TestRayDecoratedOperator::test_extract_function_body 0.00s call tests/test_hooks.py::TestRayHook::test_get_service_success 0.00s call tests/test_hooks.py::TestRayHook::test_ray_client_exception 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_complete[SUCCEEDED-None] 0.00s call tests/test_hooks.py::TestRayHook::test_get_service_not_found 0.00s setup dev/tests/dags/test_dag_example.py::test_file_imports[None-None] 0.00s setup tests/test_operators.py::TestSetupRayCluster::test_execute 0.00s call tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_no_ip_or_hostname 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_xcom_variants[task.key-task-key] 0.00s teardown tests/test_hooks.py::TestRayHook::test_wait_for_load_balancer_timeout 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_xcom_variants[single_key-None-single_key] 0.00s setup tests/test_operators.py::TestDeleteRayCluster::test_execute 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_complete[UNEXPECTED-raise] 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_on_kill 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_cleanup_with_cluster_yaml 0.00s call tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_xcom_variants[task.key-task-key] 0.00s call tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_with_xcom 0.00s call tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_xcom_variants[single_key-None-single_key] 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_run_with_exception 0.00s call tests/test_operators.py::TestSubmitRayJob::test_execute_complete_unexpected_status 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_run_with_exception 0.00s call tests/test_hooks.py::TestRayHook::test_create_or_update_cluster_exception 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_run_job_succeeded 0.00s call tests/test_decorators.py::TestRayDecoratedOperator::test_initialization_defaults 0.00s call tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_no_ingress 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_poll_status 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_serialize 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_cleanup_with_cluster_yaml 0.00s call tests/test_hooks.py::TestRayHook::test_check_load_balancer_readiness_hostname 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_setup_cluster_exception 0.00s call tests/test_hooks.py::TestRayHook::test_check_load_balancer_readiness_ip 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_poll_status 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_complete[SUCCEEDED-None] 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_with_xcom 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_complete[UNEXPECTED-raise] 0.00s call tests/test_operators.py::TestSubmitRayJob::test_init 0.00s call tests/test_hooks.py::TestRayHook::test_validate_yaml_file_not_exists 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_complete[STOPPED-raise] 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_setup_cluster 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_without_xcom 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_complete[FAILED-raise] 0.00s call tests/test_hooks.py::TestRayHook::test_check_load_balancer_readiness_not_ready 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_complete_with_cleanup 0.00s setup tests/test_triggers.py::TestRayJobTrigger::test_cleanup_without_cluster_yaml 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_complete_unexpected_status 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[SUCCEEDED-None] 0.00s call tests/test_triggers.py::TestRayJobTrigger::test_serialize 0.00s call tests/test_operators.py::TestSetupRayCluster::test_init 0.00s teardown tests/test_hooks.py::TestRayHook::test_delete_ray_cluster_exception 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_complete[UNEXPECTED-raise] 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_execute_complete_cleanup_on_exception 0.00s call tests/test_operators.py::TestSubmitRayJob::test_init_no_timeout 0.00s setup tests/test_decorators.py::TestRayDecoratedOperator::test_initialization 0.00s setup tests/test_operators.py::TestSetupRayCluster::test_hook_property 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_daemon_set_not_found 0.00s setup tests/test_operators.py::TestDeleteRayCluster::test_hook_property 0.00s call tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_without_xcom 0.00s teardown tests/test_hooks.py::TestRayHook::test_validate_yaml_file_invalid_yaml 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_cleanup_without_cluster_yaml 0.00s call tests/test_operators.py::TestDeleteRayCluster::test_init 0.00s call tests/test_operators.py::TestDeleteRayCluster::test_init_default_gpu_plugin 0.00s call tests/test_operators.py::TestSetupRayCluster::test_init_default_values 0.00s teardown dev/tests/dags/test_dag_example.py::test_dag_retries[dag_id0-dag0-fileloc0] 0.00s setup tests/test_hooks.py::TestRayHook::test_setup_kubeconfig_content 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_defer[http://dashboard.url] 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_job_unexpected_state 0.00s teardown tests/test_triggers.py::TestRayJobTrigger::test_serialize 0.00s teardown dev/tests/dags/test_dag_example.py::test_file_imports[None-None] 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[STOPPED-raise] 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait_and_defer 0.00s teardown tests/test_hooks.py::TestRayHook::test_check_load_balancer_readiness_not_ready 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_exception_handling 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[RUNNING-defer] 0.00s setup tests/test_hooks.py::TestRayHook::test_load_yaml_content 0.00s setup dev/tests/dags/test_dag_example.py::test_dag_tags[dag_id0-dag0-fileloc0] 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[FAILED-raise] 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_xcom_variants[task.key-task-key] 0.00s teardown tests/test_hooks.py::TestRayHook::test_wait_for_load_balancer_service_not_found 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_complete[FAILED-raise] 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_without_wait_no_cleanup 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_defer[None] 0.00s call tests/test_decorators.py::TestRayTaskDecorator::test_ray_task_decorator_with_config 0.00s teardown tests/test_hooks.py::TestRayHook::test_create_or_update_cluster_exception 0.00s teardown tests/test_hooks.py::TestRayHook::test_wait_for_load_balancer_success 0.00s setup tests/test_decorators.py::TestRayDecoratedOperator::test_initialization_defaults 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_cluster_setup_exception 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_with_wait[PENDING-defer] 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_template_fields 0.00s call tests/test_decorators.py::TestRayTaskDecorator::test_ray_task_decorator 0.00s call tests/test_operators.py::TestSubmitRayJob::test_template_fields 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_complete_cleanup_on_exception 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_xcom_variants[single_key-None-single_key] 0.00s setup tests/test_operators.py::TestSetupRayCluster::test_init 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_without_wait 0.00s teardown tests/test_decorators.py::TestRayDecoratedOperator::test_initialization_defaults 0.00s setup tests/test_decorators.py::TestRayDecoratedOperator::test_execute_decorated_function 0.00s setup tests/test_hooks.py::TestRayHook::test_get_daemon_set 0.00s call tests/test_decorators.py::TestRayTaskDecorator::test_ray_task_decorator_with_multiple_outputs 0.00s call dev/tests/dags/test_dag_example.py::test_file_imports[None-None] 0.00s setup tests/test_hooks.py::TestRayHook::test_create_daemon_set 0.00s setup tests/test_hooks.py::TestRayHook::test_delete_ray_job 0.00s setup tests/test_decorators.py::TestRayDecoratedOperator::test_invalid_config_raises_exception 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_service_success 0.00s teardown tests/test_hooks.py::TestRayHook::test_setup_ray_cluster_exception 0.00s setup tests/test_decorators.py::TestRayDecoratedOperator::test_extract_function_body 0.00s call tests/test_hooks.py::TestRayHook::test_get_ui_field_behaviour 0.00s setup tests/test_hooks.py::TestRayHook::test_get_daemon_set_not_found 0.00s teardown tests/test_hooks.py::TestRayHook::test_ray_client_exception 0.00s setup tests/test_decorators.py::TestRayDecoratedOperator::test_execute_with_entrypoint 0.00s teardown tests/test_operators.py::TestDeleteRayCluster::test_execute 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_complete[STOPPED-raise] 0.00s teardown tests/test_hooks.py::TestRayHook::test_validate_yaml_file_success 0.00s setup tests/test_decorators.py::TestRayTaskDecorator::test_ray_task_decorator_with_config 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_complete[SUCCEEDED-None] 0.00s teardown tests/test_decorators.py::TestRayDecoratedOperator::test_invalid_config_raises_exception 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_setup_cluster_exception 0.00s setup tests/test_hooks.py::TestRayHook::test_delete_daemon_set_exception 0.00s teardown tests/test_hooks.py::TestRayHook::test_validate_yaml_file_not_exists 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_on_kill 0.00s teardown tests/test_hooks.py::TestRayHook::test_delete_daemon_set_exception 0.00s teardown tests/test_hooks.py::TestRayHook::test_run_bash_command_exception 0.00s setup tests/test_hooks.py::TestRayHook::test_validate_yaml_file_not_found 0.00s setup tests/test_operators.py::TestDeleteRayCluster::test_init 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_complete_with_cleanup 0.00s setup tests/test_hooks.py::TestRayHook::test_delete_daemon_set_not_found 0.00s teardown tests/test_decorators.py::TestRayDecoratedOperator::test_initialization 0.00s teardown tests/test_hooks.py::TestRayHook::test_setup_ray_cluster_success 0.00s teardown tests/test_hooks.py::TestRayHook::test_create_or_update_cluster_update 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_init 0.00s setup tests/test_decorators.py::TestRayDecoratedOperator::test_execute_failure 0.00s setup tests/test_hooks.py::TestRayHook::test_get_ui_field_behaviour 0.00s setup tests/test_hooks.py::TestRayHook::test_create_daemon_set_no_body 0.00s setup tests/test_hooks.py::TestRayHook::test_get_ray_job_logs 0.00s setup tests/test_hooks.py::TestRayHook::test_install_kuberay_operator 0.00s setup tests/test_hooks.py::TestRayHook::test_setup_kubeconfig_path 0.00s setup tests/test_hooks.py::TestRayHook::test_is_port_open 0.00s setup tests/test_hooks.py::TestRayHook::test_validate_yaml_file_invalid_extension 0.00s setup tests/test_hooks.py::TestRayHook::test_setup_kubeconfig_invalid_config 0.00s teardown tests/test_operators.py::TestSetupRayCluster::test_execute 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_without_xcom 0.00s teardown tests/test_hooks.py::TestRayHook::test_delete_ray_cluster_success 0.00s teardown tests/test_hooks.py::TestRayHook::test_ray_client 0.00s setup tests/test_operators.py::TestDeleteRayCluster::test_init_default_gpu_plugin 0.00s setup tests/test_hooks.py::TestRayHook::test_uninstall_kuberay_operator 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_delete_cluster_exception 0.00s setup tests/test_operators.py::TestSetupRayCluster::test_init_default_values 0.00s teardown tests/test_hooks.py::TestRayHook::test_check_load_balancer_readiness_ip 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_init_no_timeout 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_connection_form_widgets 0.00s setup tests/test_decorators.py::TestRayTaskDecorator::test_ray_task_decorator 0.00s teardown tests/test_decorators.py::TestRayDecoratedOperator::test_execute_failure 0.00s teardown tests/test_hooks.py::TestRayHook::test_check_load_balancer_readiness_hostname 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_setup_cluster 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_get_dashboard_url_with_xcom 0.00s setup tests/test_hooks.py::TestRayHook::test_get_ray_job_status 0.00s teardown tests/test_hooks.py::TestRayHook::test_setup_kubeconfig_content 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_ui_field_behaviour 0.00s setup tests/test_hooks.py::TestRayHook::test_delete_daemon_set 0.00s setup tests/test_hooks.py::TestRayHook::test_get_connection_form_widgets 0.00s setup tests/test_hooks.py::TestRayHook::test_create_daemon_set_exception 0.00s setup tests/test_decorators.py::TestRayTaskDecorator::test_ray_task_decorator_with_multiple_outputs 0.00s teardown tests/test_hooks.py::TestRayHook::test_submit_ray_job 0.00s teardown tests/test_hooks.py::TestRayHook::test_setup_kubeconfig_invalid_config 0.00s teardown tests/test_hooks.py::TestRayHook::test_delete_daemon_set_not_found 0.00s teardown tests/test_decorators.py::TestRayDecoratedOperator::test_execute_with_entrypoint 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_with_ingress 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_daemon_set 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_service_not_found 0.00s teardown tests/test_decorators.py::TestRayDecoratedOperator::test_execute_decorated_function 0.00s teardown tests/test_hooks.py::TestRayHook::test_load_yaml_content 0.00s teardown tests/test_decorators.py::TestRayTaskDecorator::test_ray_task_decorator_with_config 0.00s teardown tests/test_operators.py::TestDeleteRayCluster::test_hook_property 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_with_hostname 0.00s teardown tests/test_hooks.py::TestRayHook::test_setup_kubeconfig_path 0.00s teardown tests/test_hooks.py::TestRayHook::test_install_kuberay_operator 0.00s setup tests/test_operators.py::TestSubmitRayJob::test_delete_cluster 0.00s setup dev/tests/dags/test_dag_example.py::test_dag_retries[dag_id0-dag0-fileloc0] 0.00s teardown tests/test_operators.py::TestSetupRayCluster::test_hook_property 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_execute_complete_unexpected_status 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_no_ip_or_hostname 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_load_balancer_details_no_ingress 0.00s teardown tests/test_hooks.py::TestRayHook::test_delete_daemon_set 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_init 0.00s teardown tests/test_hooks.py::TestRayHook::test_create_daemon_set 0.00s teardown tests/test_hooks.py::TestRayHook::test_create_daemon_set_no_body 0.00s teardown tests/test_decorators.py::TestRayDecoratedOperator::test_extract_function_body 0.00s teardown tests/test_hooks.py::TestRayHook::test_create_daemon_set_exception 0.00s teardown tests/test_hooks.py::TestRayHook::test_is_port_open 0.00s teardown tests/test_decorators.py::TestRayTaskDecorator::test_ray_task_decorator_with_multiple_outputs 0.00s teardown dev/tests/dags/test_dag_example.py::test_dag_tags[dag_id0-dag0-fileloc0] 0.00s teardown tests/test_operators.py::TestDeleteRayCluster::test_init_default_gpu_plugin 0.00s teardown tests/test_hooks.py::TestRayHook::test_validate_yaml_file_invalid_extension 0.00s teardown tests/test_hooks.py::TestRayHook::test_uninstall_kuberay_operator 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_delete_cluster_exception 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_template_fields 0.00s teardown tests/test_hooks.py::TestRayHook::test_validate_yaml_file_not_found 0.00s teardown tests/test_operators.py::TestSetupRayCluster::test_init_default_values 0.00s teardown tests/test_hooks.py::TestRayHook::test_delete_ray_job 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_ray_job_logs 0.00s teardown tests/test_operators.py::TestSetupRayCluster::test_init 0.00s teardown tests/test_operators.py::TestDeleteRayCluster::test_init 0.00s teardown tests/test_hooks.py::TestRayHook::test_get_ray_job_status 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_delete_cluster 0.00s teardown tests/test_operators.py::TestSubmitRayJob::test_init_no_timeout 0.00s teardown tests/test_decorators.py::TestRayTaskDecorator::test_ray_task_decorator ``` I suggest we remove them and re-enable if we need to troubleshoot test durations, as needed.
pankajastro
approved these changes
Nov 29, 2024
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #102 +/- ##
=======================================
Coverage 97.74% 97.74%
=======================================
Files 6 6
Lines 576 576
=======================================
Hits 563 563
Misses 13 13 ☔ View full report in Codecov by Sentry. |
This was referenced Nov 29, 2024
Merged
tatiana
added a commit
that referenced
this pull request
Nov 29, 2024
**Breaking changes** * Removal of ``SubmitRayJob.terminal_states``. The same values are now available at ``ray_provider.constants.TERMINAL_JOB_STATUSES``. * Simplify the project structure and debugging by @tatiana in #93 In order to improve the development and troubleshooting DAGs created with this provider, we introduced breaking changes to the folder structure. It was flattened and the import paths to existing decorators, hooks, operators and trigger changed, as documented in the table below: | Type | Previous import path | Current import path | |-----------|---------------------------------------------|-----------------------------------------| | Decorator | ray_provider.decorators.ray.ray | ray_provider.decorators.ray | | Hook | ray_provider.hooks.ray.RayHook | ray_provider.hooks.RayHook | | Operator | ray_provider.operators.ray.DeleteRayCluster | ray_provider.operators.DeleteRayCluster | | Operator | ray_provider.operators.ray.SetupRayCluster | ray_provider.operators.SetupRayCluster | | Operator | ray_provider.operators.ray.SubmitRayJob | ray_provider.operators.SubmitRayJob | | Trigger | ray_provider.triggers.ray.RayJobTrigger | ray_provider.triggers.RayJobTrigger | **Features** * Support using callable ``config`` in ``@ray.task`` by @tatiana in #103 * Support running Ray jobs indefinitely without timing out by @venkatajagannath and @tatiana in #74 **Bug fixes** * Fix integration test and bug in load balancer wait logic by @pankajastro in #85 * Bugfix: Better exception handling and cluster clean up by @venkatajagannath in #68 * Stop catching generic ``Exception`` in operators by @tatiana in #100 * Stop catching generic ``Exception`` in trigger by @tatiana in #99 **Docs** * Add docs to deploy project on Astro Cloud by @pankajastro in #90 * Fix dead reference in docs index page by @pankajastro in #87 * Cloud Auth documentation update by @venkatajagannath in #58 * Improve main docs page by @TJaniF in #71 **Others** Local development * Fix the local development environment and update documentation by @tatiana in #92 * Enable secret detection precommit check by @pankajastro in #91 * Add astro cli project + kind Raycluster setup instruction by @pankajastro in #83 * Remove pytest durations from tests by @tatiana in #102 * Fix running make docker-run when there is a new version by @tatiana in #99 and #101 * Improve Astro CLI DAGs test so running hatch test-cov locally doesn't fail by @tatiana in #97 CI * CI improvement by @venkatajagannath in #73 * CI fix related to broken coverage upload artifact by @pankajkoti in #60 * Allow tests to run for PRs from forked repos by @venkatajagannath in #72 * Update CODEOWNERS by @tatiana in #84 * Add Airflow 2.10 (released in August 2024) to tests by @tatiana in #96
This was referenced Dec 3, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Even though the --durations flag can be very helpful in debugging and troubleshooting test durations, to have it in a permanent basis adds overhead to the tests and obfuscates us seeing more relevant data, such as coverage report, since the last lines look like this:
I suggest we remove them and re-enable if we need to troubleshoot test durations, as needed.