Skip to content

[BUG] review报错超时了 #24

Description

@azvvv

MR中的文件比较多,review几个文件后报错,看起来是超时了

请帮忙确认:

  • 600秒超时是ollama的配置吗?
  • 如果不能改变ollama的600超时,是否可以:
    • 在CR中增加处理线程?为每个CR的文件分配一个线程
    • 拆分大文件
2025-03-17 06:28:48.549 ERROR | [ThreadPoolExecutor-5_21] chat [59] | default_handler.py generate_review_note | GPT error:litellm.APIConnectionError: OllamaException - litellm.Timeout: Connection timed out after 600.0 seconds.
2025-03-17 06:28:48.630 ERROR | [ThreadPoolExecutor-5_22] chat [59] | default_handler.py generate_review_note | GPT error:litellm.APIConnectionError: OllamaException - litellm.Timeout: Connection timed out after 600.0 seconds.
2025-03-17 06:28:48.648 ERROR | [ThreadPoolExecutor-5_2] chat [59] | default_handler.py generate_review_note | GPT error:litellm.APIConnectionError: OllamaException - litellm.Timeout: Connection timed out after 600.0 seconds.
2025-03-17 06:28:48.649 ERROR | [ThreadPoolExecutor-5_15] chat [59] | default_handler.py generate_review_note | GPT error:litellm.APIConnectionError: OllamaException - litellm.Timeout: Connection timed out after 600.0 seconds.
Exception in thread Thread-15:
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
  File "/workspace/review_engine/handler/default_handler.py", line 66, in merge_handle
    self.default_handle(changes, merge_info, hook_info, reply, model)
  File "/workspace/review_engine/handler/default_handler.py", line 72, in default_handle
    review_info = chat_review(changes, generate_review_note, model)
  File "/workspace/review_engine/handler/default_handler.py", line 33, in chat_review
    return "\n\n".join(review_results) if review_results else ""
TypeError: sequence item 19: expected str instance, NoneType found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    will_fixwe got your idea ,we will fix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions