Uh oh!
There was an error while loading. Please reload this page.
chore: Release v2.0.0 - #64
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Three issues causing the samples to fail:
Update: Update 2: I don't yet know what the deal with that namespace import is - |
Re namespace: The theory you raised in the chat thread seems to be correct. It looks like this is a result of For comparison (env) busunkim@busunkim:~/github/python-workflows$ python3Python3.8.3 (default, Jun152020, 16:29:21)
[GCC9.3.0] onlinuxType"help", "copyright", "credits"or"license"formoreinformation.
>>>fromgoogle.cloudimportbigquery>>>bigquery<module'google.cloud.bigquery'from'/usr/local/google/home/busunkim/github/python-workflows/env/lib/python3.8/site-packages/google/cloud/bigquery/__init__.py'>>>>fromgoogle.cloud.bigqueryimportconnection>>>bigquery<module'google.cloud.bigquery'from'/usr/local/google/home/busunkim/github/python-workflows/env/lib/python3.8/site-packages/google/cloud/bigquery/__init__.py'>>>>connection<module'google.cloud.bigquery.connection'from'/usr/local/google/home/busunkim/github/python-workflows/env/lib/python3.8/site-packages/google/cloud/bigquery/connection/__init__.py'> |
Now I remember, the same question popped up when migrating If we want to use the @tswast came up with the idea of moving BigQuery 2.0 code into |
@plamut Thanks for digging through and reproducing the issue. Ways forward:
Pro (1):
Con (1):
or
Pro (2):
Con (2):
|
tswast
commented
Sep 24, 2020
Edit I meant that I lean towards (2) -- rename the less-used packages. |
busunkim96
commented
Sep 24, 2020
I'd also lean towards changing the namespace of the less used packages. The two problematic packages |
Namespace packages can only contain modules and subpackages, but no content on their own (setuptools docs). Namespace package's If we want I can adjust the import paths in BQ Storage (yet again) to Update: BTW, is |
TL;DR - I managed to get the samples tests pass locally without restructuring the import hacks and without dubious hacks. If somebody can verify these fix(es) locally, we can probably release BQ Storage 2.0 with broken samples and then immediately follow with a BigQuery 2.0 release that will fix them. The steps that had to be made:
I added the changes UPDATE
|
This avoids import errors from google.cloud.bigquery.* namespace.
Namespacing: Bazel config will have to be updated, @busunkim96 (or someone else), can you do that internally? Thanks! Samples: FWIW, the BigQuery adjustments that are needed for the BQ Storage samples to pass can be found in the BigQuery 2.0 preview PR (first commit). |
tswast
commented
Sep 29, 2020
It's in the "allowed" environment variables: value must match regex I see that it's set here: https://github.com/googleapis/python-bigquery-storage/blob/master/.kokoro/samples/python3.8/presubmit.cfg but from the build failures, I'm not sure that it's actually getting set. |
busunkim96
commented
Sep 29, 2020
The logs seem to show bigquery storage being installed from source. (see the last line) nox>Runningsessionpy-3.8nox>Creatingvirtualenvironment (virtualenv) usingpython3.8in .nox/py-3-8nox>pipinstall-rrequirements.txtnox>pipinstall-rrequirements-test.txtnox>pipinstall-e/tmpfs/src/github/python-bigquery-storage. |
plamut
commented
Sep 29, 2020
Merging. The samples test pass locally, but they require the upcoming version of BigQuery, which has not yet been merged and released. |
yoshi-automation
commented
Sep 29, 2020
The release build has started, the log can be viewed here. 🌻 |
🥚 You hatched a release! The release build finished successfully! 💜 |
This pull request was generated using releasetool.