This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new fcfc6f96df Mark sometimes failing heartbeat test and view test as
flaky (#43250)
fcfc6f96df is described below
commit fcfc6f96df8e3e22364952dc035b46dce840974f
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Oct 22 13:16:23 2024 +0200
Mark sometimes failing heartbeat test and view test as flaky (#43250)
---
tests/jobs/test_local_task_job.py | 1 +
tests/www/views/test_views_tasks.py | 1 +
2 files changed, 2 insertions(+)
diff --git a/tests/jobs/test_local_task_job.py
b/tests/jobs/test_local_task_job.py
index 574215e8c3..88c43ae562 100644
--- a/tests/jobs/test_local_task_job.py
+++ b/tests/jobs/test_local_task_job.py
@@ -290,6 +290,7 @@ class TestLocalTaskJob:
assert ti.pid != job1.task_runner.process.pid
job_runner.heartbeat_callback()
+ @pytest.mark.flaky(reruns=5)
@pytest.mark.skip_if_database_isolation_mode # Does not work in db
isolation mode
def test_heartbeat_failed_fast(self):
"""
diff --git a/tests/www/views/test_views_tasks.py
b/tests/www/views/test_views_tasks.py
index 034c6d5aab..c3d2827659 100644
--- a/tests/www/views/test_views_tasks.py
+++ b/tests/www/views/test_views_tasks.py
@@ -1060,6 +1060,7 @@ def test_graph_view_doesnt_fail_on_recursion_error(app,
dag_maker, admin_client)
assert resp.status_code == 200
[email protected](reruns=5)
def test_get_date_time_num_runs_dag_runs_form_data_graph_view(app, dag_maker,
admin_client):
"""Test the get_date_time_num_runs_dag_runs_form_data function."""
from airflow.www.views import get_date_time_num_runs_dag_runs_form_data