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 — feat: add progress field to UpdateDatabaseDdlMetadata by parthea · Pull Request #361 · googleapis/python-spanner

This repository was archived by the owner on Jun 8, 2026. It is now read-only.

Conversation

@parthea

@parthea parthea commented Jun 3, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

This PR includes the latest generated client from googleapis-gen. I also modified the owlbot.py script to properly copy multiple versions from googleapis-gen here.

This PR also includes the following features and fixes:

feat: move import of CommitResponse
fix: add async client to %name_%version/init.py
chore: add autogenerated snippets
chore: remove auth, policy, and options from the reserved names list
feat: support self-signed JWT flow for service accounts
chore: enable GAPIC metadata generation
chore: sort subpackages in %namespace/%name/init.py

Sorry, something went wrong.

Uh oh!

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

All reactions
parthea added 2 commits June 3, 2021 12:07
@parthea
chore: fix owlbot.py to copy changes from googleapis-gen
3ab26c0
@parthea
feat(spanner): add progress field to UpdateDatabaseDdlMetadata
2df1f51
@parthea
parthea requested review from a team and larkee June 3, 2021 12:16
@parthea
parthea requested a review from a team as a code owner June 3, 2021 12:16
@parthea
parthea requested review from crwilcox and removed request for a team June 3, 2021 12:16
@product-auto-label product-auto-label Bot added the api: spanner Issues related to the googleapis/python-spanner API. label Jun 3, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Jun 3, 2021
@parthea

parthea commented Jun 3, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

The build has the following error: ImportError: cannot import name 'CommitResponse' . I'm looking into it.

==================================== ERRORS ====================================
_________________ ERROR collecting tests/system/test_system.py _________________
ImportError while importing test module '/home/runner/work/python-spanner/python-spanner/tests/system/test_system.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.8.10/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/system/test_system.py:33: in <module>
    from google.cloud.spanner_v1 import param_types
google/cloud/spanner_v1/__init__.py:37: in <module>
    from .types.spanner import CommitResponse
E   ImportError: cannot import name 'CommitResponse' from 'google.cloud.spanner_v1.types.spanner' (/home/runner/work/python-spanner/python-spanner/google/cloud/spanner_v1/types/spanner.py)
______________ ERROR collecting tests/system/test_system_dbapi.py ______________
ImportError while importing test module '/home/runner/work/python-spanner/python-spanner/tests/system/test_system_dbapi.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/opt/hostedtoolcache/Python/3.8.10/x64/lib/python3.8/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/system/test_system_dbapi.py:23: in <module>
    from google.cloud.spanner_v1 import BurstyPool
google/cloud/spanner_v1/__init__.py:37: in <module>
    from .types.spanner import CommitResponse
E   ImportError: cannot import name 'CommitResponse' from 'google.cloud.spanner_v1.types.spanner' (/home/runner/work/python-spanner/python-spanner/google/cloud/spanner_v1/types/spanner.py)
All reactions

Sorry, something went wrong.

Uh oh!

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

@parthea
parthea marked this pull request as draft June 3, 2021 12:20
parthea added 2 commits June 3, 2021 12:22
@parthea
use the latest owlbot post processor image
99b1df6
@parthea
chore: move import of CommitResponse
8a63516
@parthea

parthea commented Jun 3, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor Author

There is an issue with the docs. I was able to resolve the issue by removing the headings in this docstring .

sphinx.errors.SphinxWarning: /usr/local/google/home/partheniou/git/python-spanner/google/cloud/spanner_v1/types/transaction.py:docstring of google.cloud.spanner_v1.types.transaction.TransactionOptions:4:Unexpected section title.

I'll add a workaround in owlbot.py . I've suggested an update to the source proto to remove the headings based on AIP-192. Googlers see cl/377290854

Headings and tables must not be used, as these cause problems for several tools, and are unsuitable for client library reference documentation.

larkee and damonmitchellsr1 reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

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

parthea added 2 commits June 3, 2021 16:01
@parthea
add workarounds in owlbot.py
35b69b5
@parthea
run post processor
d6829df
@parthea
parthea marked this pull request as ready for review June 3, 2021 16:04
@parthea parthea assigned larkee Jun 3, 2021
@parthea parthea added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 3, 2021
@parthea

parthea commented Jun 4, 2021

Copy link
Copy Markdown
Contributor Author

I'm going to switch this back to draft. It should be ready for review tomorrow.

All reactions

Sorry, something went wrong.

Uh oh!

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

@parthea
parthea marked this pull request as draft June 4, 2021 00:03
@parthea
update owlbot.py to copy multiple folders/versions from googleapis-gen
0c87485
@parthea parthea removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 6, 2021
@parthea
parthea marked this pull request as ready for review June 6, 2021 12:13
larkee
larkee approved these changes Jun 7, 2021
View reviewed changes
@larkee
larkee merged commit 1c03dcc into master Jun 7, 2021
@larkee
larkee deleted the fix-owlbot-py branch June 7, 2021 04:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@crwilcox crwilcox Awaiting requested review from crwilcox
1 more reviewer
@larkee larkee larkee approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

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

Assignees

@larkee larkee

Labels

api: spanner Issues related to the googleapis/python-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.

2 participants

@parthea @larkee
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.