[ ] π Sweep Needs Improvement
I created this PR to fix the failing GitHub Actions.## Description
This PR enhances the handling of GitHub Actions failures in the sweepai/api.py module. The changes aim to provide more informative and actionable logs and responses to users when a GitHub Actions run fails.
Changes include:
Refining the logic for downloading and cleaning logs to capture more detailed information about the failure.
Updating the messaging in the stack_pr function call to include suggestions for common fixes or links to documentation.
Enhancing the use of the tracking_id to track and reference the specific GitHub Actions run that failed.
Updating the ChatLogger initialization to include more context about the failure.
Refining the make_pr function call to ensure that the pull request contains comprehensive information about the failure.
Updating the use_faster_model parameter in the make_pr function call to be determined based on the complexity of the failure.
Summary
Enhanced the handling of GitHub Actions failures to provide more informative and actionable logs and responses.
Improved the use of the tracking_id to track and reference specific GitHub Actions runs.
Updated the ChatLogger and make_pr function calls to include more context and information about the failure.
Added comprehensive unit tests for the modified sections of sweepai/api.py.
PR Feedback (click)
sweepai/api.py
module. The changes aim to provide more informative and actionable logs and responses to users when a GitHub Actions run fails.Changes include:
stack_pr
function call to include suggestions for common fixes or links to documentation.tracking_id
to track and reference the specific GitHub Actions run that failed.ChatLogger
initialization to include more context about the failure.make_pr
function call to ensure that the pull request contains comprehensive information about the failure.use_faster_model
parameter in themake_pr
function call to be determined based on the complexity of the failure.Summary
tracking_id
to track and reference specific GitHub Actions runs.ChatLogger
andmake_pr
function calls to include more context and information about the failure.sweepai/api.py
.