[ ] 👎 Sweep Needs Improvement
I created this PR to fix the failing GitHub Actions.## Description
This PR introduces improvements to the error handling for GitHub Actions (GHA) runs within Sweep. The changes aim to provide more informative feedback when GHA runs fail, making it easier to diagnose and fix issues.
The main changes include:
A new utility module gha_log_parser.py that contains functions for parsing and filtering GHA logs to extract error messages.
Modifications to the create_gha_pr function in create_pr.py to use the new log parsing utility and provide more detailed error feedback in PR comments.
Summary of Changes
Created sweepai/utils/gha_log_parser.py with a function extract_error_logs that parses GHA logs and extracts error messages.
Modified sweepai/handlers/create_pr.py to import and use extract_error_logs in the create_gha_pr function. Enhanced the error handling to provide more detailed feedback in PR comments when GHA runs fail.
These changes should improve Sweep's ability to handle and report errors from GitHub Actions, aiding in the diagnosis and resolution of issues that cause GHA runs to fail.
PR Feedback (click)
The main changes include:
gha_log_parser.py
that contains functions for parsing and filtering GHA logs to extract error messages.create_gha_pr
function increate_pr.py
to use the new log parsing utility and provide more detailed error feedback in PR comments.Summary of Changes
sweepai/utils/gha_log_parser.py
with a functionextract_error_logs
that parses GHA logs and extracts error messages.sweepai/handlers/create_pr.py
to import and useextract_error_logs
in thecreate_gha_pr
function. Enhanced the error handling to provide more detailed feedback in PR comments when GHA runs fail.These changes should improve Sweep's ability to handle and report errors from GitHub Actions, aiding in the diagnosis and resolution of issues that cause GHA runs to fail.