wwzeng1 / CoralME

A simple, fast and garbage-free matching engine order book that you can use as a starting point for your matching engines.
Apache License 2.0
0 stars 0 forks source link

Sweep: add additional unit tests to linkedObjectpool #35

Closed wwzeng1 closed 3 weeks ago

wwzeng1 commented 3 weeks ago

Enhance LinkedObjectPool unit tests

Description:

Add additional unit tests to the LinkedObjectPoolTest class to improve test coverage and ensure robust functionality of the LinkedObjectPool implementation.

Tasks:

Test:

Additional tasks:

sweep-nightly[bot] commented 3 weeks ago

❌ Error

Traceback (most recent call last):
  File "/Users/williamzeng/Documents/GitHub/sweep-internal/sweepai/o11y/endpoint_wrapper.py", line 52, in wrapper
    result = func(*args, **kwargs)
  File "/Users/williamzeng/Documents/GitHub/sweep-internal/sweepai/backend/api.py", line 832, in create_pull
    new_branch = create_branch_and_push_changes(
  File "/Users/williamzeng/Documents/GitHub/sweep-internal/sweepai/backend/api.py", line 800, in create_branch_and_push_changes
    cloned_repo = ClonedRepo.from_repo_full_name(repo_full_name=repo_name, branch=new_branch)
  File "/Users/williamzeng/Documents/GitHub/sweep-internal/sweepai/core/github_utils.py", line 674, in from_repo_full_name
    return cls(
  File "<string>", line 9, in __init__
  File "/Users/williamzeng/Documents/GitHub/sweep-internal/sweepai/core/github_utils.py", line 643, in __post_init__
    raise Exception(f"Branch '{self.branch}' does not exist.")
Exception: Branch 'sweep/Refactor-LinkedObjectPoolTest-class' does not exist.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/Users/williamzeng/Documents/GitHub/sweep-internal/sweepai/handlers/on_ticket.py", line 200, in on_ticket
    fix_issue_result = await fix_issue(
  File "/Users/williamzeng/Documents/GitHub/sweep-internal/sweepai/backend/api.py", line 1388, in fix_issue
    repo_name=repo_full_name,
  File "/Users/williamzeng/Documents/GitHub/sweep-internal/sweepai/o11y/endpoint_wrapper.py", line 68, in wrapper
    raise HTTPException(
fastapi.exceptions.HTTPException: 500: An error occurred: Branch 'sweep/Refactor-LinkedObjectPoolTest-class' does not exist.

500: An error occurred: Branch 'sweep/Refactor-LinkedObjectPoolTest-class' does not exist.

Sweep has encountered a runtime error unrelated to your request. Please let us know via this link or at support@sweep.dev directly.

:book: For more information on how to use Sweep, please read our documentation.

Tracking ID: 55342e3cd5