Skip to content

Commit

Permalink
Mark two scheduler tests as flaky
Browse files Browse the repository at this point in the history
These have been seen to be flaky but will pass on retries. Rerunning
instead of tuning the timing requirements will keep the timing
requirements easier to understand.
  • Loading branch information
berland committed Jan 22, 2024
1 parent 8f25646 commit 0cd2cc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/unit_tests/scheduler/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

import pytest
from cloudevents.http import CloudEvent, from_json
from flaky import flaky

from ert.constant_filenames import CERT_FILE
from ert.ensemble_evaluator._builder._realization import Realization
Expand Down Expand Up @@ -346,6 +347,7 @@ async def wait(iens):
assert killed_iens == [6, 7, 8, 9]


@flaky(max_runs=5, min_passes=1)
@pytest.mark.parametrize(
"submit_sleep, iens_stride, realization_runtime",
[(0, 1, 0.1), (0.1, 1, 0.1), (0.1, 1, 0), (0.1, 2, 0)],
Expand Down Expand Up @@ -388,6 +390,7 @@ async def wait():
assert max(deltas) <= submit_sleep + 0.1


@flaky(max_runs=5, min_passes=1)
@pytest.mark.parametrize(
"submit_sleep, realization_max_runtime, max_running",
[
Expand Down

0 comments on commit 0cd2cc4

Please sign in to comment.