Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat: Add S3 support for artifacts #556

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

samueljohnsiby
Copy link

Added s3 support to manage artifacts using boto3. Written tests for the same under test artifact service file.
resolves : #555

…torage client for improved testability; update tests to cover S3
@samueljohnsiby samueljohnsiby changed the title Add S3 support for artifacts; refactor GCS artifact class to accept s… feat: Add S3 support for artifacts; refactor GCS artifact class to accept s… May 5, 2025
@samueljohnsiby samueljohnsiby changed the title feat: Add S3 support for artifacts; refactor GCS artifact class to accept s… feat: Add S3 support for artifacts May 5, 2025
@Axibord
Copy link

Axibord commented May 15, 2025

Added s3 support to manage artifacts using boto3. Written tests for the same under test artifact service file. resolves : #555

I didn't see your PR, I opened a discussion about that.

Are you done with it? Why it isn't merged yet?

Comment on lines +19 to +30
def __init__(self, bucket_name: str,s3_client: Optional[BaseClient], **kwargs):
"""Initializes the S3ArtifactService.

Args:
bucket_name: The name of the S3 bucket to use.
**kwargs: Optional parameters for boto3 client configuration.
"""
self.bucket_name = bucket_name
if s3_client is None:
self.s3 = boto3.client("s3", **kwargs)
else:
self.s3 = s3_client
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we giving the choice to not pass an S3 client directly but use **kwargs ? I think enforcing it is better.

@d3banjan
Copy link

d3banjan commented Jul 18, 2025

Hi @samueljohnsiby thanks for implementing this PR. I am very interested in S3 compatibility.

Do you plan to continue working on this? Given that you have already gotten the vast majority of functionality in here, I volunteer to take this forward for the last mile if you are otherwise occupied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add S3 support to manage artifacts.
3 participants