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

feat: add support for spanner copy backup feature #600

Merged
merged 13 commits into from
Mar 25, 2022

Conversation

asthamohta
Copy link
Contributor

@asthamohta asthamohta commented Sep 29, 2021

Adding support for Cloud Spanner Cross-Region Backups. This feature allows customers to copy the backup to instances in different regions after creating a backup of the database. The following PR adds the following functionalities:

  1. Support for copy_backup in python CL
  2. Tests for copy_backup

@asthamohta asthamohta requested a review from a team as a code owner September 29, 2021 22:36
@product-auto-label product-auto-label bot added the api: spanner Issues related to the googleapis/python-spanner API. label Sep 29, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 29, 2021
@asthamohta asthamohta added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 29, 2021
@larkee
Copy link
Contributor

larkee commented Nov 17, 2021

Also, PR titles should follow the Commit Message Guidelines.

The rest LGTM 👍

@asthamohta asthamohta requested a review from a team as a code owner November 18, 2021 14:39
@tseaver tseaver changed the title feat: Adding support for spanner copy backup feature feat: add support for spanner copy backup feature Nov 18, 2021
@@ -289,6 +363,36 @@ def test_backup_create_w_invalid_version_time_future(
op.result() # blocks indefinitely


def test_copy_backup_create_w_invalid_expire_time(
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: prefer to include this case in test_copy_backup_workflow in order to reuse the created source backup and minimize the number of created backups.

@asthamohta asthamohta force-pushed the spanner-copy-backup branch 2 times, most recently from 6fd58af to 8c1c404 Compare December 24, 2021 13:35
@asthamohta asthamohta requested a review from a team as a code owner March 10, 2022 04:50
@snippet-bot
Copy link

snippet-bot bot commented Mar 10, 2022

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

asthamohta and others added 5 commits March 15, 2022 13:45
* Synchronize new proto/yaml changes.

PiperOrigin-RevId: 436114471

Source-Link: googleapis/googleapis@6379d5f

Source-Link: googleapis/googleapis-gen@a59984b
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTU5OTg0YjRjYjcxMWVlYjE4NmJjYTRmNWIzNWFkYmZlNjA4MjVkZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
@vi3k6i5 vi3k6i5 added do not merge Indicates a pull request not ready for merge, due to either quality or timing. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Mar 24, 2022
@asthamohta asthamohta removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Mar 24, 2022
@asthamohta asthamohta force-pushed the spanner-copy-backup branch 6 times, most recently from d8aa15d to eacd97c Compare March 25, 2022 05:25
@asthamohta asthamohta merged commit 97faf6c into googleapis:main Mar 25, 2022
vi3k6i5 pushed a commit to vi3k6i5/python-spanner that referenced this pull request Mar 29, 2022
* changes for copy backup feature

* changes to test case

* changes to documenttation

* feat: changes as per review, adding shared_backup

* changes for cross region backup

* samples: changes to list backup operations

* chore(deps): update all dependencies (googleapis#689)

* chore(deps): update dependency pytest to v7.1.1 (googleapis#690)

* feat: add support for Cross region backup proto changes (googleapis#691)

* Synchronize new proto/yaml changes.

PiperOrigin-RevId: 436114471

Source-Link: googleapis/googleapis@6379d5f

Source-Link: https://github.com/googleapis/googleapis-gen/commit/a59984b4cb711eeb186bca4f5b35adbfe60825df
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTU5OTg0YjRjYjcxMWVlYjE4NmJjYTRmNWIzNWFkYmZlNjA4MjVkZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* feat: adding samples

* linting

Co-authored-by: WhiteSource Renovate <[email protected]>
Co-authored-by: gcf-owl-bot[bot] <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: spanner Issues related to the googleapis/python-spanner API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants