Skip to content

Commit

Permalink
Mark sometimes failing heartbeat test and view test as flaky (apache#…
Browse files Browse the repository at this point in the history
…43250) (apache#43257)

(cherry picked from commit fcfc6f9)
  • Loading branch information
potiuk authored Oct 23, 2024
1 parent 1e498d8 commit a6d0583
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/jobs/test_local_task_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ def test_localtaskjob_heartbeat_with_default_impersonation(self, psutil_mock, _,
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):
"""
Expand Down
1 change: 1 addition & 0 deletions tests/www/views/test_views_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1052,6 +1052,7 @@ def test_graph_view_doesnt_fail_on_recursion_error(app, dag_maker, admin_client)
assert resp.status_code == 200


@pytest.mark.flaky(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
Expand Down

0 comments on commit a6d0583

Please sign in to comment.