[ ] π 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 Sweep AI system. The changes focus on improving the process of downloading and cleaning logs, creating more informative and actionable PRs in response to failures, and ensuring robustness in assigning PRs to users and adding relevant labels.
Changes were made in the following files:
sweepai/api.py: Improved the process of downloading and cleaning logs, and enhanced the information included in the PR created in response to a failure.
sweepai/handlers/pr_utils.py: Enhanced the PR creation logic to ensure that the PRs are as informative and helpful as possible.
In addition, unit tests were created for the modified sections of the above files in sweepai/tests/api_test.py and sweepai/handlers/tests/pr_utils_test.py respectively.
Summary of Changes
Enhanced log downloading and cleaning in sweepai/api.py.
Improved the information included in the PR created in response to a GitHub Actions failure in sweepai/api.py.
Enhanced the PR creation logic in sweepai/handlers/pr_utils.py.
Created unit tests for the modified sections in sweepai/tests/api_test.py and sweepai/handlers/tests/pr_utils_test.py.
These changes aim to make the handling of GitHub Actions failures more robust, informative, and user-friendly.
PR Feedback (click)
Changes were made in the following files:
sweepai/api.py
: Improved the process of downloading and cleaning logs, and enhanced the information included in the PR created in response to a failure.sweepai/handlers/pr_utils.py
: Enhanced the PR creation logic to ensure that the PRs are as informative and helpful as possible.In addition, unit tests were created for the modified sections of the above files in
sweepai/tests/api_test.py
andsweepai/handlers/tests/pr_utils_test.py
respectively.Summary of Changes
sweepai/api.py
.sweepai/api.py
.sweepai/handlers/pr_utils.py
.sweepai/tests/api_test.py
andsweepai/handlers/tests/pr_utils_test.py
.These changes aim to make the handling of GitHub Actions failures more robust, informative, and user-friendly.