Skip to content
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

add minio client helper #25

Merged
merged 1 commit into from
Jun 6, 2024
Merged

add minio client helper #25

merged 1 commit into from
Jun 6, 2024

Conversation

Tianhao-Gu
Copy link
Collaborator

No description provided.

Copy link

codecov bot commented Jun 6, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 61.66%. Comparing base (7af2979) to head (58d3166).

Files Patch % Lines
src/minio_utils/minio_utils.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #25      +/-   ##
==========================================
+ Coverage   60.71%   61.66%   +0.95%     
==========================================
  Files           2        3       +1     
  Lines          56       60       +4     
==========================================
+ Hits           34       37       +3     
- Misses         22       23       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

:return: A Minio client object
"""
return Minio(
os.environ['MINIO_URL'].replace("http://", ""),
Copy link
Member

Choose a reason for hiding this comment

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

here I'm wondering why we're just not excluding http:// in the env var in rancher. Is there a reason for that?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

tested removing http:// from docker-compose file. When I tried to read delta files, it took 10 minutes without returning anything. I am guessing it's needed for spark custom s3 endpoint config.

@Tianhao-Gu Tianhao-Gu merged commit b483155 into main Jun 6, 2024
9 checks passed
@Tianhao-Gu Tianhao-Gu deleted the dev_load_helper_funcs branch June 6, 2024 18:42
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.

2 participants