This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/v2-10-test by this push:
new a6d05836e14 Mark sometimes failing heartbeat test and view test as
flaky (#43250) (#43257)
a6d05836e14 is described below
commit a6d05836e146613ac3842b29df5e3005379abace
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Oct 23 16:45:42 2024 +0200
Mark sometimes failing heartbeat test and view test as flaky (#43250)
(#43257)
(cherry picked from commit fcfc6f96df8e3e22364952dc035b46dce840974f)
---
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 a4e7c4f3877..cd2c27556d2 100644
--- a/tests/jobs/test_local_task_job.py
+++ b/tests/jobs/test_local_task_job.py
@@ -285,6 +285,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 0c947c75532..0c5b43508e2 100644
--- a/tests/www/views/test_views_tasks.py
+++ b/tests/www/views/test_views_tasks.py
@@ -1052,6 +1052,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