Open sweep-ai[bot] opened 7 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
Review the CI/CD pipeline results for PR #28, identify the failing steps, and make necessary corrections to ensure all checks pass.
Description
The changes in this pull request address the following:
lint
job of the GitHub Actions workflow to match the version used in thetest
andrace_test
jobs (1.21).hash.go
file to make thecomputeHashes
function concurrent, using goroutines to process images in parallel and avoid race conditions.TestConcurrentFileHashing
inhash_test.go
to check for potential race conditions when hashing files concurrently.hash_test.go
are properly implemented and cover various scenarios.Summary
The key changes in this pull request include:
.github/workflows/go-tests.yaml
computeHashes
function inhash.go
hash_test.go
hash.go
fileFixes
29. Continue the conversation here: https://app.sweep.dev/c/eeba4848-1464-4de9-a0d0-c087913f8aaa.
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.