GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Spanner Beta by lukesneeringer · Pull Request #4028 · googleapis/google-cloud-python

Conversation

@lukesneeringer

@lukesneeringer lukesneeringer commented Sep 22, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This shall be the "root" PR for getting Spanner to beta. Multiple PRs are going to be made using it as a base.

The remaining to-do items are:

  • Re-generate the autogen libraries for the data and admin APIs.
    • Spanner Admin Database (Move the admin database GAPIC to source delivery. #4029)
    • Spanner Admin Instance (Move the Spanner Admin Instance GAPIC. #4030)
    • Regular ol' Spanner, yo (Update Spanner auto-gen layer. #4033)
  • Update documentation to include autogen API reference. (superceded by Update Spanner auto-gen layer. #4033)
  • Bit flip setup.py and appropriate documentation to claim beta status. (Bitflip to beta. #4034)
  • Pin gRPC to < 1.6 (superceded by Move the admin database GAPIC to source delivery. #4029)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bjwatson reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Luke Sneeringer
Version number bump.
b6500e4
@lukesneeringer
lukesneeringer requested a review from tseaver as a code owner September 22, 2017 14:21
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 22, 2017
@lukesneeringer lukesneeringer self-assigned this Sep 22, 2017
@lukesneeringer lukesneeringer changed the title Version number bump. Spanner Beta Sep 22, 2017
@lukesneeringer lukesneeringer added api: spanner Issues related to the Spanner API. spanner beta and removed api: spanner Issues related to the Spanner API. labels Sep 22, 2017
@tseaver

tseaver commented Sep 22, 2017

Copy link
Copy Markdown
Contributor

From #4027, which this PR supersedes:


Draft release notes:

google-cloud-spanner 0.27.1

  • Pin dependency google-auth >= 1.1.0 to fix use of google.cloud.spanner on GCE. (PR Pin google-auth >= 1.1.0. #3950, issue Cannot create a spanner session when running in compute engine #3933)
  • Fix merge of partial timestamp and date field values. (PR Merge dates and timestamps properly. #4015, issue Spanner should know how to merge chunk data of TIMESTAMP and DATE type #3981, Google cloud spanner client fails when reading large columns #3998)
  • Restart streaming iterators from read / execute_sql operations after resumable error (PR Retry streaming exceptions (this time for sure, Rocky!) #4016, issue Cloud spanner client does not seem to be retrying broken streams #3775).

Internal housekeeping not included in release notes:

  • Suppress instance creation tests by default on CI (PR Suppress instance creation tests by default on CI #3951)
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tseaver tseaver mentioned this pull request Sep 22, 2017
Bump release to 0.27.1. #4027
Closed
tseaver
tseaver approved these changes Sep 22, 2017
View reviewed changes
@lukesneeringer lukesneeringer mentioned this pull request Sep 22, 2017
Move the admin database GAPIC to source delivery. #4029
Merged
@lukesneeringer
Move the admin database GAPIC to source delivery. (#4029)
2281ed3
@lukesneeringer lukesneeringer mentioned this pull request Sep 22, 2017
Move the Spanner Admin Instance GAPIC. #4030
Merged
@lukesneeringer
Move the Spanner Admin Instance GAPIC. (#4030)
01bee70
This was referenced Sep 22, 2017
Update Spanner auto-gen layer. #4033
Merged
Bitflip to beta. #4034
Merged
@bjwatson

bjwatson commented Sep 22, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

@lukesneeringer @jonparrott We also want a quick review of the API Reference docs to make sure it's reasonably in sync with the client library. This is just for the manual docs; the autogen docs should be fine.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 22, 2017

Copy link
Copy Markdown
Contributor

@lukesneeringer is this ready for me to review the docs?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lukesneeringer added 2 commits September 22, 2017 12:25
@lukesneeringer
Update Spanner auto-gen layer. (#4033)
5d48ced
@lukesneeringer
Bitflip to beta. (#4034)
8be1d74
@lukesneeringer

lukesneeringer commented Sep 22, 2017

Copy link
Copy Markdown
Contributor Author

@jonparrott Yes.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjwatson

bjwatson commented Sep 22, 2017

Copy link
Copy Markdown

Thanks @lukesneeringer, @tseaver, and @jonparrott.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 22, 2017 •
edited by lukesneeringer
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Non-documentation issues/concerns

  • google.cloud.spanner is not just an alias to google.cloud.spanner_v1. This is inconsistent with the approach we took with pubsub.

Documentation issues (these may be deferred by moving them into their own bugs):

  • The landing page is... not useful
    • Improve the Spanner landing page. #4060
  • Instance usage: says that list_instance_configs and list_instances returns a token, but these return iterators.
    • Correct documentation about instance iterators. #4044
    • Also see Correctly iterate over list_databases. #4047
  • Instance usage: references the old operation interface, there is no finished() in the new one. It should just reference result().
    • Provide correct API for monitoring an LRO (instances). #4045
  • Database usage: Spanner does not have its own Operation class.
    • Just refer to operations as being like Future. #4046
  • Database usage: has an issue similar to (2)
    • Provide correct API for monitoring an LRO (database). #4048
  • Database usage: the sample here has a typo (and seems to be formatted strangely)
    • Improve the session pool documentation. #4049
  • The sidebar for spanner is totally whack. The low-level gapic stuff is mixed in with the high-level wrappers, and one page's sub-titles are treated as separate pages.
    • Fix up the documentation nav for Spanner. #4054
  • The page titles mostly end with "API" which is totally weird and overloaded in this context.
    • @lukesneeringer: I am happier with this one in a post-Fix up the documentation nav for Spanner. #4054 world.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjwatson

bjwatson commented Sep 22, 2017

Copy link
Copy Markdown

Thanks for your detailed review @jonparrott!

@lukesneeringer is the "Non-documentation issues/concern" a breaking change to fix later. I'm assuming consistency is important here; what do you think?

@tseaver It seems like documentation items 2-6 (shown as 1-5 due to the graphic) should be fixed before the Beta release. The other presentation and organizational concerns can be fixed before GA. Do you agree @jonparrott and @lukesneeringer?

FYI @vkedia

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 22, 2017 •
edited by lukesneeringer
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Item 6 should really be fixed ASAP.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjwatson

bjwatson commented Sep 22, 2017

Copy link
Copy Markdown

@jonparrott I see what you're saying with that. The Python API Reference combines manual and GAPIC at the same level, whereas the Ruby docs (and those for other languages) puts it another level below under v1.

@lukesneeringer Is this particularly difficult to fix with the current docs setup? I don't think we want to create a lot of work to finalize docs for Beta, but I do see the usability concern that Jon is raising.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lukesneeringer lukesneeringer mentioned this pull request Sep 23, 2017
Correct documentation about instance iterators. #4044
Merged
@lukesneeringer

lukesneeringer commented Sep 23, 2017

Copy link
Copy Markdown
Contributor Author

Putting in PRs for these.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 23, 2017
Correctly iterate over list_databases. #4047
Merged
Provide correct API for monitoring an LRO (database). #4048
Merged
@lukesneeringer lukesneeringer removed the spanner beta label Sep 23, 2017
@lukesneeringer lukesneeringer added this to the Spanner Beta milestone Sep 23, 2017
@lukesneeringer lukesneeringer mentioned this pull request Sep 23, 2017
Improve the session pool documentation. #4049
Merged
Luke Sneeringer
Merge branch 'public-master' into spanner-beta
4c084cf
@lukesneeringer lukesneeringer mentioned this pull request Sep 25, 2017
Fix up the documentation nav for Spanner. #4054
Merged
@lukesneeringer

lukesneeringer commented Sep 25, 2017 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

Okay, I fixed all of these except the spanner alias (the item without a PR number in the comment above is waiting on #4054 to be approved, because it needs it as a baseline).

@jonparrott, I am having trouble deciding what to do about the spanner_v1 thing. I actually considered moving it, and decided against it because doing so would break people in a few cases (e.g. anyone who typed from google.cloud.spanner.client import Client, which the documentation previously recommended in one spot, now corrected).

With Pub/Sub, we were breaking everyone anyway, so it was an obvious decision. Additionally, since Pub/Sub was a thin client, it was quite necessary to do this.

I am willing to do it here also, but due to the potential customer randomization, as well as the thicker client, it is less clear to me that it is the correct path. Please advise. :-)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 25, 2017

Copy link
Copy Markdown
Contributor

I think we need to make a firm decision on the api -> api_{version} going forwards - either it's a direct alias or it adds functionality. Either spanner or pubsub will need to change. I strongly think we should follow what pubsub did - spanner is transitioning into beta so breaking is allowed (although less than ideal, sure).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Sep 25, 2017

Copy link
Copy Markdown
Contributor

fwiw, the pubsub samples use google.cloud.pubsub_v1 explicitly.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lukesneeringer

lukesneeringer commented Sep 25, 2017

Copy link
Copy Markdown
Contributor Author

Okay, I am happy to change it then. :-)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjwatson

bjwatson commented Sep 25, 2017

Copy link
Copy Markdown

Thanks, @lukesneeringer for fixing just about everything. I agree that I'm happier with all the API suffixes in a post-4054 world, too.

What's the PR for the alias fix?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

lukesneeringer added 7 commits September 25, 2017 13:23
@lukesneeringer
Fix up the documentation nav for Spanner. (#4054)
2459682
@lukesneeringer
Improve the session pool documentation. (#4049)
24c22b2
@lukesneeringer
Provide correct API for monitoring an LRO (database). (#4048)
f7947f1
@lukesneeringer
Correctly iterate over list_databases. (#4047)
3828d28
@lukesneeringer
Just refer to operations as being like Future. (#4046)
03a2efe
@lukesneeringer
Provide correct API for monitoring an LRO (instances). (#4045)
7ca0721
@lukesneeringer
Correct documentation about instance iterators. (#4044)
d799751
@lukesneeringer

lukesneeringer commented Sep 25, 2017

Copy link
Copy Markdown
Contributor Author

What's the PR for the alias fix?

There is not one yet. I had wall-to-wall meetings followed by lunch. :-)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjwatson

bjwatson commented Sep 25, 2017

Copy link
Copy Markdown

Understood. Must be Monday. Lots of meetings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lukesneeringer
Improve the Spanner landing page. (#4060)
c49b33a
@lukesneeringer lukesneeringer mentioned this pull request Sep 26, 2017
Move to google.cloud.spanner_v1 #4064
Merged
6 tasks done
@lukesneeringer

lukesneeringer commented Sep 26, 2017

Copy link
Copy Markdown
Contributor Author

@jonparrott @bjwatson Okay, #4064 exists.

This is probably a breaking change at the margins. In other words, most users will not be affected, but some might be. In particular, we did have at least one doc that told users to from google.cloud.spanner.client import Client, and that will break.

Do we need any kind of migration guide?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bjwatson

bjwatson commented Sep 26, 2017

Copy link
Copy Markdown

@lukesneeringer We should at least have release notes that explain this breaking change.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lukesneeringer
Move to google.cloud.spanner_v1 (#4064)
bdae20d
@lukesneeringer

lukesneeringer commented Sep 26, 2017

Copy link
Copy Markdown
Contributor Author

@bjwatson We will have release notes either way. :-)

bjwatson reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@lukesneeringer
lukesneeringer merged commit 716c2f9 into master Sep 26, 2017
@lukesneeringer
lukesneeringer deleted the spanner-beta branch September 26, 2017 20:44
@bjwatson

bjwatson commented Sep 26, 2017

Copy link
Copy Markdown

Woo hoo! Great job @lukesneeringer, @tseaver, and @jonparrott!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@tseaver tseaver tseaver approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@lukesneeringer lukesneeringer

Labels

api: spanner Issues related to the Spanner API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@lukesneeringer @tseaver @bjwatson @theacodes @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.