Skip to content

Commit

Permalink
Update max_allowed_runtime_seconds and max_tokens settings, adjust te…
Browse files Browse the repository at this point in the history
…st file print format
  • Loading branch information
mrT23 committed Nov 13, 2024
1 parent 8583cd5 commit 7a8d401
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cover_agent/Runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def run_command(command, cwd=None):
# Get the current time before running the test command, in milliseconds
command_start_time = int(round(time.time() * 1000))

max_allowed_runtime_seconds = get_settings().get("tests.max_allowed_runtime_seconds", 60)
max_allowed_runtime_seconds = get_settings().get("tests.max_allowed_runtime_seconds", 30)
# Ensure the command is executed with shell=True for string commands
try:
result = subprocess.run(
Expand Down
2 changes: 1 addition & 1 deletion cover_agent/lsp_logic/utils/utils_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async def analyze_context(test_file, context_files, args, ai_caller):
context_files_include = [f for f in context_files if f != file]

if source_file:
print(f"Test file: `{test_file}` is a unit test file for source file: `{source_file}`")
print(f"Test file: `{test_file}`,\nis a unit test file for source file: `{source_file}`")
else:
print(f"Test file: `{test_file}` is not a unit test file")
except Exception as e:
Expand Down
2 changes: 1 addition & 1 deletion cover_agent/settings/configuration.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[include_files]
limit_tokens=true
max_tokens=16000
max_tokens=20000

[tests]
max_allowed_runtime_seconds=30

0 comments on commit 7a8d401

Please sign in to comment.