Open dakotahNorth opened 6 days ago
Traceback (most recent call last):
File "/app/sweepai/handlers/on_ticket.py", line 167, in on_ticket
await fix_ci_failures(pull_request, tracking_id)
File "/app/sweepai/handlers/fix_ci.py", line 242, in fix_ci_failures
cleaned_logs = clean_ci_logs(username=username, error_logs=logs_list[0])
File "/app/sweepai/modify/gha/cleanup_ci.py", line 58, in clean_ci_logs
raise ValueError("No CI/CD logs found")
ValueError: No CI/CD logs found
No CI/CD logs found
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.
Refactoring enums in
Order.java
to separate files involves moving each enum type (likeTimeInForce
,RejectReason
, etc.) into its own Java file. This change is meant to:Order.java
file, you can import only the specific enums you need, which can make the code cleaner.Steps to Implement:
Order.java
, create a new file in the same package (com.coralblocks.coralme
).Order.java
to the respective new file.Example:
If
TimeInForce
is an enum inOrder.java
, you'll move it to a new file namedTimeInForce.java
:Original in Order.java:
New File: TimeInForce.java:
Here are the enums defined within
Order.java
that need to be moved to separate files:TimeInForce
RejectReason
CancelRejectReason
CancelReason
ReduceRejectReason
Type
ExecuteSide
Side
Each of these enums should be placed in its own Java file within the same package (
com.coralblocks.coralme
).Benefits:
Order.java
becomes less cluttered.This approach results in a more modular and maintainable codebase, which is particularly beneficial as the project grows.
Refactor Enums in Order.java to Separate Files
Description:
Improve code organization and maintainability by moving each enum from
Order.java
into its own file within thecom.coralblocks.coralme
package. This change will reduce the size ofOrder.java
and make it easier to manage individual enums.Tasks:
Create new files for each enum in
src/main/java/com/coralblocks/coralme/
:TimeInForce.java
RejectReason.java
CancelRejectReason.java
CancelReason.java
ReduceRejectReason.java
Type.java
ExecuteSide.java
Side.java
Move each enum from
Order.java
to its respective new fileUpdate
Order.java
:Update references to enums throughout the codebase:
Test:
src/test/java/com/coralblocks/coralme/
still passAdditional Tasks:
Order.java
that may have become outdated due to the refactoring