Skip to content

Commit

Permalink
Merge pull request #206 from ServiceNow/tlsdc/the_big_fix
Browse files Browse the repository at this point in the history
trying to fix tests
  • Loading branch information
recursix authored Jan 17, 2025
2 parents 0819ae4 + 1d1af61 commit 57bf273
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
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

0 comments on commit 57bf273

Please sign in to comment.