Closed wwzeng1 closed 3 weeks ago
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.
Enhance LinkedObjectPool unit tests
Description:
Add additional unit tests to the
LinkedObjectPoolTest
class to improve test coverage and ensure robust functionality of theLinkedObjectPool
implementation.Tasks:
src/test/java/com/coralblocks/coralme/util/LinkedObjectPoolTest.java
:Builder
implementationTest:
src/test/java/com/coralblocks/coralme/util/LinkedObjectPoolTest.java
, add the following test methods:testConcurrentGetAndRelease()
testPoolGrowthBeyondInitialCapacity()
testEdgeCases()
testCustomBuilder()
Additional tasks:
org.junit.Assert
class