Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ black[jupyter]>=24.2.0
blacken-docs
pre-commit
pytest==7.3.2
flaky
pytest-xdist
pytest-playwright
dask
Expand Down
3 changes: 2 additions & 1 deletion tests/experiments/test_launch_exp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from agentlab.agents.generic_agent.agent_configs import FLAGS_GPT_3_5, AGENT_4o_MINI
from agentlab.agents.generic_agent.generic_agent import GenericAgentArgs
from agentlab.analyze import inspect_results
from agentlab.experiments.launch_exp import find_incomplete, run_experiments, non_dummy_count
from agentlab.experiments.launch_exp import find_incomplete, non_dummy_count, run_experiments
from agentlab.experiments.study import Study
from agentlab.llm.chat_api import CheatMiniWoBLLMArgs

Expand Down Expand Up @@ -91,6 +91,7 @@ def test_launch_system_ray():
_test_launch_system(backend="ray")


@pytest.mark.pricy
def test_timeout_ray():
_test_launch_system(backend="ray", cause_timeout=True)

Expand Down
5 changes: 4 additions & 1 deletion tests/experiments/test_ray.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import bgym
import pytest
import ray
from agentlab.experiments.graph_execution_ray import execute_task_graph
from flaky import flaky

from agentlab.experiments.exp_utils import MockedExpArgs, add_dependencies
from agentlab.experiments.graph_execution_ray import execute_task_graph

TASK_TIME = 3


@flaky(max_runs=3, min_passes=1)
def test_execute_task_graph():
# Define a list of ExpArgs with dependencies
exp_args_list = [
Expand Down
Loading