-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix blob creation in trino file system tests #19678
Conversation
Note: if the root location is not empty then |
6e33b90
to
9e95aec
Compare
I can also add the |
String bucket = RemoteStorageHelper.generateBucketName(); | ||
storage.create(BucketInfo.of(bucket)); | ||
this.rootLocation = Location.of("gs://%s/".formatted(bucket)); | ||
if (storage.get(bucket) == null) { |
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.
Should the bucket be created if it does not exist?
41b012e
to
08595cc
Compare
/test-with-secrets sha=08595ccc84d539eadba1fe012114f25181b79e6c |
The CI workflow run with tests that require additional secrets finished as failure: https://github.com/trinodb/trino/actions/runs/6807141951 |
08595cc
to
0ad8a4d
Compare
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.
We should go with the original approach of creating the bucket in the test, since we want to test that the code works with the root of the bucket. This is what we do for S3 and Azure.
Description
Additional context and related issues
Release notes
( ) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text: