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

DM-38742: Enable use of Ceph multi-tenant bucket names. #54

Merged
merged 3 commits into from Apr 19, 2023

Conversation

ktlim
Copy link
Contributor

@ktlim ktlim commented Apr 17, 2023

Checklist

  • ran Jenkins
  • added a release note for user-visible changes to doc/changes

@ktlim ktlim force-pushed the tickets/DM-38742 branch 2 times, most recently from 830c6db to 389d5a1 Compare April 18, 2023 00:25
@codecov
Copy link

codecov bot commented Apr 18, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.10 🎉

Comparison is base (aebfb71) 85.74% compared to head (4d321a1) 85.84%.

❗ Current head 4d321a1 differs from pull request most recent head a66e49d. Consider uploading reports for the commit a66e49d to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #54      +/-   ##
==========================================
+ Coverage   85.74%   85.84%   +0.10%     
==========================================
  Files          27       27              
  Lines        3816     3836      +20     
  Branches      785      789       +4     
==========================================
+ Hits         3272     3293      +21     
  Misses        426      426              
+ Partials      118      117       -1     
Impacted Files Coverage Δ
python/lsst/resources/s3utils.py 64.86% <100.00%> (+3.32%) ⬆️
tests/test_s3utils.py 85.48% <100.00%> (+3.85%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ktlim ktlim force-pushed the tickets/DM-38742 branch 4 times, most recently from 81e6383 to 7e0c225 Compare April 18, 2023 01:22
Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

Looks okay in theory but I'd like a different name and I worry about env var existence vs truth/false value.

@@ -147,6 +148,10 @@ def getS3Client() -> boto3.client:
-----
The endpoint URL is from the environment variable S3_ENDPOINT_URL.
If none is specified, the default AWS one is used.

If the environment variable LSST_CEPH_BUCKETS exists (with any value),
Copy link
Member

Choose a reason for hiding this comment

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

I'm concerned that CEPH is not the only reason that someone would want to do this. How about calling it something like LSST_S3_DISABLE_VALIDATION ? Also, I'm not sure I like it that we don't have to set it to a truthy value.

@@ -82,6 +85,16 @@ def testBucketExists(self):
self.assertTrue(bucketExists(f"{self.bucketName}"))
self.assertFalse(bucketExists(f"{self.bucketName}_no_exist"))

def testCephBucket(self):
Copy link
Member

Choose a reason for hiding this comment

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

Does this test fail if someone has set the environment variable in the shell?

Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

Looks okay. Thanks.

@ktlim ktlim merged commit 51de4dd into main Apr 19, 2023
15 checks passed
@ktlim ktlim deleted the tickets/DM-38742 branch April 19, 2023 22:54
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.

None yet

2 participants