harperreed / lrprev-extract-go

0 stars 0 forks source link

Add unit tests for database operations in `internal/database/database.go` #5

Closed sweep-ai[bot] closed 3 hours ago

sweep-ai[bot] commented 5 hours ago

Purpose

Implement unit tests for the GetOriginalFilePath function in the internal/database/database.go file to ensure its functionality and reliability.

Description

The changes in this pull request include:

Summary

Fixes

2. Continue the conversation here: https://app.sweep.dev/c/9746de6e-6fbb-44a2-bf50-b78229e65c9e.

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.

Tracking ID: e722d50f93
sweep-ai[bot] commented 5 hours ago

❌ Error while fixing CI

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.

Tracking ID: e722d50f93-ci-0