test: add prerelease session to test with latest dependencies, separate compliance tests by tswast · Pull Request #401 · googleapis/python-bigquery-sqlalchemy · GitHub
Skip to content
This repository was archived by the owner on May 16, 2026. It is now read-only.

test: add prerelease session to test with latest dependencies, separate compliance tests#401

Merged
tswast merged 17 commits into
mainfrom
tswast-prerelease
Feb 17, 2022
Merged

test: add prerelease session to test with latest dependencies, separate compliance tests#401
tswast merged 17 commits into
mainfrom
tswast-prerelease

Conversation

@tswast

@tswast tswast commented Jan 18, 2022

Copy link
Copy Markdown
Contributor

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Towards googleapis/python-bigquery#1021 "Test connectors, such as pandas-gbq and sqlalchemy-bigquery with pre-release, make updates if needed."

Towards #413

Internal CL 422873148 to enable these test sessions in Kokoro.

@product-auto-label product-auto-label Bot added the api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API. label Jan 18, 2022
@tswast

tswast commented Jan 18, 2022

Copy link
Copy Markdown
Contributor Author

@tswast tswast changed the title test: add prerelease session to test with latest dependencies test: add prerelease session to test with latest dependencies, separate compliance tests Jan 19, 2022
Comment thread noxfile.py


@nox.session(python=DEFAULT_PYTHON_VERSION)
def prerelease(session):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note: Mostly taken straight from https://github.com/googleapis/python-bigquery-pandas/blob/d4539747848156446d8a3ccdb49661e72ae03109/noxfile.py#L176

googleapis/synthtool#1290 is open to add this to the templates, though it would need to be slightly templated to allow for customized prerelease dependencies.

@tswast tswast marked this pull request as ready for review January 19, 2022 20:47
@tswast tswast requested review from a team and steffnay January 19, 2022 20:47
@tswast tswast added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 19, 2022
@tswast

This comment has been minimized.

Comment thread noxfile.py Outdated
@tswast tswast removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jan 20, 2022
@tswast

tswast commented Feb 14, 2022

Copy link
Copy Markdown
Contributor Author

FYI: a pytest release in the past month broke the compliance test suite: #413

Edit: Fixed by capping pytest version to less than 7.

@tswast tswast 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 Feb 14, 2022

@parthea parthea left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, Added 1 observation

Comment thread noxfile.py Outdated
Comment on lines +196 to +199

@parthea parthea Feb 16, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These 4 don't appear in setup.py . Please could you add a comment to clarify the reason that they're included here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's a good point. Possibly we should add google-cloud-bigquery-storage to setup.py in a separate PR. It's an "extra" but one that'll raise a warning if not present. The others we get via transitive dependencies. I'll comment.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Mailed #414 which updates some of the dependencies in setup.py to better reflect reality.

Also, remove google-resumable-media from prerelease tests, as this package does
not use load jobs.
@tswast tswast merged commit 7f36628 into main Feb 17, 2022
@tswast tswast deleted the tswast-prerelease branch February 17, 2022 18:24
gcf-merge-on-green Bot pushed a commit that referenced this pull request Mar 22, 2022
…ing (#414)

The wrapped DB-API uses google-cloud-bigquery-storage to download query
results by default. It raises a warning and falls back to the REST API
if google-cloud-bigquery-storage is not installed.

The google-cloud-bigquery version 3.x library is tested in #401 and it does not include any breaking changes that should affect the SQLAlchemy connector.

deps: allow google-cloud-bigquery version 3.x

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-bigquery-sqlalchemy/issues/new/choose) before writing your code!  That way we can discuss the change, evaluate designs, and agree on the general idea
- [ ] Ensure the tests and linter pass
- [ ] Code coverage does not decrease (if any source code was changed)
- [ ] Appropriate docs were updated (if necessary)

Fixes #<issue_number_goes_here> 🦕
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigquery Issues related to the googleapis/python-bigquery-sqlalchemy API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants