Skip to content

Commit 54453c5

Browse files
authored
Remove @avoid_ci from test_steal (#6872)
1 parent c083790 commit 54453c5

File tree

2 files changed

+22
-5
lines changed

2 files changed

+22
-5
lines changed

distributed/tests/test_active_memory_manager.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,21 @@ async def tensordot_stress(c):
10851085
assert await c.compute(b) == 2134.398
10861086

10871087

1088+
@pytest.mark.slow
1089+
@pytest.mark.avoid_ci(reason="distributed#5371")
1090+
@gen_cluster(
1091+
client=True,
1092+
nthreads=[("", 1)] * 4,
1093+
Worker=Nanny,
1094+
config=NO_AMM_START,
1095+
)
1096+
async def test_noamm_stress(c, s, *nannies):
1097+
"""Test the tensordot_stress helper without AMM. This is to figure out if a
1098+
stability issue is AMM-specific or not.
1099+
"""
1100+
await tensordot_stress(c)
1101+
1102+
10881103
@pytest.mark.slow
10891104
@pytest.mark.avoid_ci(reason="distributed#5371")
10901105
@gen_cluster(
@@ -1148,6 +1163,8 @@ async def test_ReduceReplicas_stress(c, s, *nannies):
11481163
{"class": "distributed.active_memory_manager.ReduceReplicas"},
11491164
],
11501165
},
1166+
scheduler_kwargs={"transition_counter_max": 500_000},
1167+
worker_kwargs={"transition_counter_max": 500_000},
11511168
)
11521169
async def test_RetireWorker_stress(c, s, *nannies, use_ReduceReplicas):
11531170
"""It is safe to retire the best part of a cluster in the middle of a computation"""

distributed/tests/test_steal.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,18 @@ async def test_steal_cheap_data_slow_computation(c, s, a, b):
8585
assert abs(len(a.data) - len(b.data)) <= 5
8686

8787

88-
@pytest.mark.avoid_ci
89-
@gen_cluster(client=True, nthreads=[("127.0.0.1", 1)] * 2)
88+
@pytest.mark.slow
89+
@gen_cluster(client=True, nthreads=[("", 1)] * 2)
9090
async def test_steal_expensive_data_slow_computation(c, s, a, b):
9191
np = pytest.importorskip("numpy")
9292

93-
x = c.submit(slowinc, 100, delay=0.2, workers=a.address)
93+
x = c.submit(slowinc, 1, delay=0.2, workers=a.address)
9494
await wait(x) # learn that slowinc is slow
9595

96-
x = c.submit(np.arange, 1000000, workers=a.address) # put expensive data
96+
x = c.submit(np.arange, 1_000_000, workers=a.address) # put expensive data
9797
await wait(x)
9898

99-
slow = [c.submit(slowinc, x, delay=0.1, pure=False) for i in range(20)]
99+
slow = [c.submit(slowinc, x, delay=0.1, pure=False) for _ in range(20)]
100100
await wait(slow)
101101
assert len(s.tasks[x.key].who_has) > 1
102102

0 commit comments

Comments
 (0)