Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

docs(samples): explicitly add bq to samples reqs, upgrade grpc to fix bug on m1 - #1290

Merged
loferris merged 3 commits into
mainfrom
update_samples_requirements
Jul 19, 2022
Merged

docs(samples): explicitly add bq to samples reqs, upgrade grpc to fix bug on m1#1290
loferris merged 3 commits into
mainfrom
update_samples_requirements

Conversation

@leahecole

Copy link
Copy Markdown
Contributor

Related to #1260 and #1262

Can confirm these linked issues definitely happen with M1, but is fixed if you specifically add grpc as an explicit dependency

@leahecole
leahecole requested a review from a teamJuly 15, 2022 19:14
@leahecole
leahecole requested a review from a team as a code ownerJuly 15, 2022 19:14
@leahecole
leahecole requested review from a team, dandhlee and shollymanJuly 15, 2022 19:14
@product-auto-labelproduct-auto-labelBot added size: xs Pull request size is extra small. api: bigquery Issues related to the googleapis/python-bigquery API. samples Issues that are directly related to samples. labels Jul 15, 2022
@leahecole
leahecole requested a review from loferrisJuly 15, 2022 19:14
@leahecoleleahecole changed the title explicitly add bq to samples reqs, upgrade grpc to fix bug on m1fix: explicitly add bq to samples reqs, upgrade grpc to fix bug on m1Jul 15, 2022
@conventional-commit-lint-gcf

Copy link
Copy Markdown

🤖 I detect that the PR title and the commit message differ and there's only one commit. To use the PR title for the commit history, you can use Github's automerge feature with squashing, or use automerge label. Good luck human!

-- conventional-commit-lint bot
https://conventionalcommits.org/

@leahecole
leahecoleforce-pushed the update_samples_requirements branch from b94dff5 to 3058a2bCompareJuly 15, 2022 19:14

@loferrisloferris 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.

Hi @leahecole, looking at the system test failures, I think we can fix this if we update the required versions in setup.py (project root) and the constraint files for at least 3.8 and 3.10 in the testing folder (project root).

@partheaparthea changed the title fix: explicitly add bq to samples reqs, upgrade grpc to fix bug on m1docs(samples): explicitly add bq to samples reqs, upgrade grpc to fix bug on m1Jul 16, 2022
@parthea
parthea requested a review from loferrisJuly 16, 2022 15:00
@parthea

Copy link
Copy Markdown
Contributor

Should we also update the grpc requirements in setup.py ? https://github.com/googleapis/python-bigquery/blob/main/setup.py#L32

@leahecole

Copy link
Copy Markdown
ContributorAuthor

Hi @leahecole, looking at the system test failures, I think we can fix this if we update the required versions in setup.py (project root) and the constraint files for at least 3.8 and 3.10 in the testing folder (project root).

To clarify, the constraint being the grpc version, not the BQ version we also added, right, @loferris?

@loferrisloferris 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.

Looking at the Kokoro failures, I'm seeing a flag to update the 3.7 constraints file (in the testing folder) to have the correct grpcio version.
Screen Shot 2022-07-18 at 1 33 21 PM
.

@loferris

Copy link
Copy Markdown
Contributor

Hi @leahecole, looking at the system test failures, I think we can fix this if we update the required versions in setup.py (project root) and the constraint files for at least 3.8 and 3.10 in the testing folder (project root).

To clarify, the constraint being the grpc version, not the BQ version we also added, right, @loferris?

From what I can tell from the Kokoro test failures, that seems right to me!!

@loferris

Copy link
Copy Markdown
Contributor

@leahecole double-checked, and you probably want to update the grpcio dependency version in constraints-3.6.txt as well as in constraints-3.7.txt just to be on the safe side.

@parthea

Copy link
Copy Markdown
Contributor

testing/constraints-3.6.txt could be deleted since we're no longer supporting python 3.6

@leahecole

Copy link
Copy Markdown
ContributorAuthor

Ok! I'll make those changes. Thanks for the explanation - I've never touched these constraints files before so I wanted to be super sure I was doing the right thing 😁

@product-auto-labelproduct-auto-labelBot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Jul 19, 2022
@leahecole
leahecole requested a review from loferrisJuly 19, 2022 15:24
@@ -0,0 +1 @@
grpcio==1.47.0

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.

I suggest we remove this line as we still want to test the latest version of grpcio in one of the constraints files.

Suggested change
grpcio==1.47.0

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.

I think we had to add this explicitly to get the system tests (if not, would be happy to delete!!), but I'd suggest I make a follow up issue to clean up the versioning across different versions.

@loferrisloferris 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.

I'm going to approve and merge, but I do want to follow up with @parthea about versioning overall.

@loferris
loferris merged commit 9b7e3e4 into mainJul 19, 2022
@loferris
loferris deleted the update_samples_requirements branch July 19, 2022 16:49
@release-pleaserelease-pleaseBot mentioned this pull request Jul 19, 2022
@leahecole

Copy link
Copy Markdown
ContributorAuthor

SGTM - let me know what you end up deciding!

waltaskew pushed a commit to waltaskew/python-bigquery that referenced this pull request Jul 20, 2022
… bug on m1 (googleapis#1290)
* fix: explicitly add bq to samples reqs, upgrade grpc to fix bug on m1
* update grpc in setup.py
* fix: rm 3.6 constraints, add grpcio to 3.7-3.10 constraints
abdelmegahedgoogle pushed a commit to abdelmegahedgoogle/python-bigquery that referenced this pull request Apr 17, 2023
… bug on m1 (googleapis#1290)
* fix: explicitly add bq to samples reqs, upgrade grpc to fix bug on m1
* update grpc in setup.py
* fix: rm 3.6 constraints, add grpcio to 3.7-3.10 constraints
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: bigqueryIssues related to the googleapis/python-bigquery API.samplesIssues that are directly related to samples.size: sPull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@leahecole@parthea@loferris