-
Notifications
You must be signed in to change notification settings - Fork 188
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
Fixes and adds configurability to test_spark_sql_s3_with_privileges.py regtest #1060
base: main
Are you sure you want to change the base?
Conversation
|
||
rotate_credentials = rotate_api.rotate_credentials(principal_name=principal_name) | ||
return rotate_credentials | ||
except ApiException as e: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed since the catch block logic relies on rotate_client and rotate_client is only set in the try block so will generally be unset in the catch.
Used to provide a path prefix between the port number and the standard polaris endpoint paths | ||
:return: | ||
""" | ||
return os.getenv('POLARIS_PATH_PREFIX', '') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this is expected to begin with /
but to never end with it, while polaris_url_scheme
and polaris_host
are the opposite?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - you're right - there's some inconsistencies.
Polaris_Host => no leading or trailing /
AWS_Bucket_Prefix = > No leading or trailing /
URL Schema => Updated to not have leading or trailing /
POLARIS_PATH_PREFIX => Now also updated to not have a leading or trailing / (the callsites that use it can determine whether to add those)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, left one question about the new env vars
PR Achieves the following:
1.) Fixes tests that currently fail
2.) Makes the REGTEST_ROOT_BEARER_TOKEN able to be passed in vs. instantiated from root, which can be used for instance to execute this test on long standing instances
3.) Allows an optional AWS_BUCKET_BASE_LOCATION_PREFIX to be passed in as well. This can also be useful for running against a long standing instance.
Here's the failed output on main.

And the success after this PR:
