Skip to content

fix(storage): copy metadata when using Copier with grpc#12919

Merged
BrennaEpp merged 3 commits intogoogleapis:mainfrom
BrennaEpp:fix-copier
Oct 14, 2025
Merged

fix(storage): copy metadata when using Copier with grpc#12919
BrennaEpp merged 3 commits intogoogleapis:mainfrom
BrennaEpp:fix-copier

Conversation

@BrennaEpp
Copy link
Contributor

We need to not set destination on the request unless the user specifies attrs. Since the struct is not a pointer, we have to check if it is empty to determine if it has not been set.

We need to not set `destination` on the request unless the
user specifies attrs. Since the struct is not a pointer,
we have to check if it is empty to determine if it has not been set.
@BrennaEpp BrennaEpp requested review from a team September 19, 2025 09:25
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Sep 19, 2025
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

Looks like a good approach but Copier retry tests seem to be failing now in the CI. Can you look into this?

@BrennaEpp BrennaEpp requested a review from a team October 3, 2025 18:22
@BrennaEpp BrennaEpp added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 3, 2025
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 3, 2025
@BrennaEpp BrennaEpp requested a review from tritone October 3, 2025 21:15
tritone
tritone previously approved these changes Oct 7, 2025
Copy link
Contributor

@tritone tritone left a comment

Choose a reason for hiding this comment

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

Nice approach, thanks for the changes.

@BrennaEpp BrennaEpp merged commit 57a2e80 into googleapis:main Oct 14, 2025
10 checks passed
krishnamd-jkp pushed a commit that referenced this pull request Oct 29, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.57.1](storage/v1.57.0...storage/v1.57.1)
(2025-10-28)


### Bug Fixes

* **storage:** Takeover idempotence.
([#13230](#13230))
([cc5d2a1](cc5d2a1))
* **storage:** Copy metadata when using Copier with grpc
([#12919](#12919))
([57a2e80](57a2e80))
* **storage:** Fix takeover response handling.
([#13239](#13239))
([26d75bc](26d75bc))
* **storage:** Remove default timeout for gRPC operations
([#13022](#13022))
([b94c3ba](b94c3ba))
* **storage:** Skip download of file outside of target dir
([#12945](#12945))
([6259aee](6259aee))
* **storage:** Upgrade gRPC service registration func
([8fffca2](8fffca2))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Brenna N Epp <[email protected]>
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 Cloud Storage API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants