Open sweep-ai[bot] opened 6 hours ago
Traceback (most recent call last):
File "/app/sweepai/handlers/fix_ci.py", line 286, in fix_ci_failures_once
logs_list = get_ci_failure_logs(error_runs, pull_request)
File "/app/sweepai/handlers/fix_ci.py", line 182, in get_ci_failure_logs
raw_logs = unzip_and_extract_logs(raw_binary_logs)
File "/app/sweepai/handlers/fix_ci.py", line 137, in unzip_and_extract_logs
zip_file = zipfile.ZipFile(io.BytesIO(blob))
File "/usr/local/lib/python3.10/zipfile.py", line 1272, in __init__
self._RealGetContents()
File "/usr/local/lib/python3.10/zipfile.py", line 1339, in _RealGetContents
raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file
File is not a zip file
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
Add the ability to use a configuration file for the lrprev-extract-go tool, allowing users to specify default settings and avoid repetitive command-line arguments.
Description
The changes in this pull request include:
internal/config/config.go
to handle configuration file parsingcmd/lrprev-extract/main.go
to support reading from a config file-c
or--config
to specify the config file pathmain.go
to prioritize command-line arguments over config file settingsinternal/config/config_test.go
to test parsing of valid and invalid config files, as well as handling of missing or invalid config filesREADME.md
to include information about the new config file feature, including the supported config file format, an example config file, and documentation for the new-c
or--config
flagSummary
internal/config/config.go
andinternal/config/config_test.go
for configuration file handlingcmd/lrprev-extract/main.go
to support reading from a config fileREADME.md
with information about the new config file featureFixes
9. Continue the conversation here: https://app.sweep.dev/c/99476388-ca26-483b-9fa7-313fac80a55f.
To have Sweep make further changes, please add a comment to this PR starting with "Sweep:".
:book: For more information on how to use Sweep, please read our documentation.