Open dakotahNorth opened 1 day ago
Traceback (most recent call last):
File "/app/sweepai/handlers/on_ticket.py", line 236, in on_ticket
await fix_ci_failures(pull_request, tracking_id=tracking_id)
File "/app/sweepai/handlers/fix_ci.py", line 491, in fix_ci_failures
fix_issue_result = await fix_ci_failures_once(pull_request, tracking_id=f"{tracking_id}-ci-{i}", force=force)
File "/app/sweepai/handlers/fix_ci.py", line 249, in fix_ci_failures_once
pending_runs, successful_runs, error_runs = wait_for_ci_failures(pull_request)
ValueError: not enough values to unpack (expected 3, got 2)
not enough values to unpack (expected 3, got 2)
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.
Purpose
Refactor the enums in
Order.java
to separate files to improve code organization and maintainability.Description
Moveg each enum type (like
TimeInForce
,RejectReason
, etc.) fromOrder.java
into its own Java file.Summary
The changes in this pull request include:
src/main/java/com/coralblocks/coralme/
:TimeInForce.java
RejectReason.java
CancelRejectReason.java
CancelReason.java
ReduceRejectReason.java
Type.java
ExecuteSide.java
Side.java
Order.java
to the respective new filesOrder.java
to remove the enum definitions and add import statements for the newly created enum filesExtract Order Enums to Separate Files
Description:
Move each enum from
Order.java
into its own file to improve code organization and maintainability. Each enum will maintain its existing functionality while being housed in a dedicated file.Tasks:
Create new enum files in
src/main/java/com/coralblocks/coralme/
:TimeInForce.java
RejectReason.java
CancelRejectReason.java
CancelReason.java
ReduceRejectReason.java
Type.java
ExecuteSide.java
Side.java
In
Order.java
:For each new enum file:
CharEnum
,CharMap
,StringUtils
)Test: