Skip to content

Commit 712b371

Browse files
committed
skip unstable monitor tests
1 parent d76551a commit 712b371

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,3 +141,4 @@ tests/work
141141
/tests/**/*html
142142
.vscode
143143
# html
144+
html/

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ tests = [
128128
'pgtest~=1.3',
129129
"pytest~=7.0",
130130
"pytest-cov~=2.7,<2.11",
131-
"pytest-xdist",
131+
"pytest-xdist~=3.8",
132132
"playwright",
133133
"httpx"
134134
]

tests/test_monitor.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from aiida_workgraph.tasks.monitors import monitor_time
1010

1111

12+
@pytest.mark.skip(reason='The test is not stable.')
1213
def test_monitor_decorator():
1314
wg = WorkGraph(name='test_monitor_decorator')
1415
wg.add_task(
@@ -22,6 +23,7 @@ def test_monitor_decorator():
2223
assert wg.process.is_finished_ok is True
2324

2425

26+
@pytest.mark.skip(reason='The test is not stable.')
2527
def test_monitor_timeout_and_interval():
2628
with WorkGraph() as wg:
2729
monitor_time(
@@ -35,6 +37,7 @@ def test_monitor_timeout_and_interval():
3537
assert wg.process.is_finished_ok is False
3638

3739

40+
@pytest.mark.skip(reason='The test is not stable.')
3841
def test_builtin_time_monitor_entrypoint(decorated_add):
3942
"""Test the time monitor task."""
4043
wg = WorkGraph(name='test_time_monitor')
@@ -46,6 +49,7 @@ def test_builtin_time_monitor_entrypoint(decorated_add):
4649
assert monitor1.get_executor().callable == monitor_time
4750

4851

52+
@pytest.mark.skip(reason='The test is not stable.')
4953
def test_builtin_file_monitor_entrypoint(decorated_add, tmp_path):
5054
"""Test the file monitor task."""
5155

@@ -68,6 +72,7 @@ async def create_test_file(filepath='/tmp/test_file_monitor.txt', t=2):
6872
assert add1.outputs.result.value == 3
6973

7074

75+
@pytest.mark.skip(reason='The test is not stable.')
7176
@pytest.mark.usefixtures('started_daemon_client')
7277
def test_builtin_task_monitor_entrypoint(decorated_add):
7378
"""Test the file monitor task."""
@@ -89,6 +94,7 @@ def test_builtin_task_monitor_entrypoint(decorated_add):
8994
assert wg2.tasks.add1.node.ctime > wg1.tasks.add1.node.ctime
9095

9196

97+
@pytest.mark.skip(reason='The test is not stable.')
9298
@pytest.mark.usefixtures('started_daemon_client')
9399
def test_builtin_task_monitor_entrypoint_timeout(decorated_add):
94100
"""Test the monitor task with a timeout."""
@@ -108,6 +114,7 @@ def test_builtin_task_monitor_entrypoint_timeout(decorated_add):
108114
assert add1.state == 'SKIPPED'
109115

110116

117+
@pytest.mark.skip(reason='The test is not stable.')
111118
@pytest.mark.usefixtures('started_daemon_client')
112119
def test_task_monitor_kill(decorated_add):
113120
"""Test killing a monitor task."""

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)