Closed sweep-ai[bot] closed 4 months ago
This is an automated message generated by Sweep AI.
in
backend/custom_skills/write_and_save_program.py, line bucket_name = "my-bucket"
:
use user_variable_manager.get_by_key("AWS_BUCKET_NAME")
also update the tests in tests/unit/custom_skills/test_write_and_save_program.py to be up-to-date with the updated Tool code
β Failed to make changes:
The exception message is:not enough values to unpack (expected 4, got 3)
The stack trace is:Traceback (most recent call last): File "/app/sweepai/handlers/on_comment.py", line 370, in on_comment modify_files_dict, changesmade, , file_change_requests = handle_file_change_requests( ValueError: not enough values to unpack (expected 4, got 3)
Please join our Discourse to report this issue.
This is an automated message generated by Sweep AI.
Description
This pull request modifies the
File
class within thewrite_and_save_program.py
module to change the file storage mechanism from saving files locally in the/data
folder to uploading them to an AWS S3 bucket. This change involves integrating AWS S3 client viaboto3
and handling credentials securely.Summary
boto3
for AWS S3 interaction andbotocore.exceptions
for error handling.UserVariableManager
andUserVariableStorage
to securely fetch AWS credentials stored in user variables.my-bucket
) using the obtained AWS credentials.put_object
operation.Fixes #108.
π Latest improvements to Sweep:
π‘ To get Sweep to edit this pull request, you can:
This is an automated message generated by Sweep AI.