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

fix: fix BidiBlobWriteSessionConfig to respect preconditions #2481

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

BenWhitehead
Copy link
Collaborator

No description provided.

@BenWhitehead BenWhitehead added the owlbot:ignore instruct owl-bot to ignore a PR label Apr 1, 2024
@BenWhitehead BenWhitehead requested a review from a team as a code owner April 1, 2024 18:23
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: storage Issues related to the googleapis/java-storage API. labels Apr 1, 2024
@Override
public Mapper<BidiWriteObjectRequest.Builder> bidiWriteObject() {
return b -> {
b.getObjectChecksumsBuilder().setCrc32C(val);
Copy link
Member

Choose a reason for hiding this comment

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

How did this get past tests? (unless it was part of the JUnit test issue you're working on)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The tests that were added for bidi specifically didn't tests any preconditions. I'm adding some tests that will run for every BlobWriteSessionConfig to verify they all handle semantics similarly.

Copy link
Member

Choose a reason for hiding this comment

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

It's subtle i would likely make the same mistake implementing options; thanks ben!

@BenWhitehead BenWhitehead changed the title fix: fix BidiBlobWriteSessionConfigs to respect preconditions fix: fix BidiBlobWriteSessionConfig to respect preconditions Apr 1, 2024
@BenWhitehead BenWhitehead merged commit 955d78a into main Apr 1, 2024
22 checks passed
@BenWhitehead BenWhitehead deleted the fix-bidi-options branch April 1, 2024 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. owlbot:ignore instruct owl-bot to ignore a PR size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants