-
Notifications
You must be signed in to change notification settings - Fork 79
chore: testing constraints target minimum supported versions #2590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
daniel-sanche
wants to merge
17
commits into
main
Choose a base branch
from
update_min_versions
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+103
−55
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
0d6dca0
chore: fix testing pins to target minimum supported versions
daniel-sanche dbbf80b
upgrade api-core version
daniel-sanche 3d121a2
attempt constraint modification
daniel-sanche 22f24bf
fixed constraints parsing
daniel-sanche 75d703f
updated goldens
daniel-sanche 628d730
Merge branch 'main' into update_min_versions
daniel-sanche e892758
use dict for new constraints
daniel-sanche d01d897
downgraded api-core
daniel-sanche c43c636
improved replacement logic
daniel-sanche 863b4aa
fixed variable name
daniel-sanche a9f35e7
fixed syntax
daniel-sanche fb5c1c3
use generated async-rest constraints files
daniel-sanche 6665b36
remove hard-code to 3.9 in rest constraint
daniel-sanche 096bc27
bump api_core requirements
daniel-sanche 31a2913
add grpc constraint
daniel-sanche 00a573a
updated grpcio constraint
daniel-sanche aa96b40
use higher grpcio for fragment tests
daniel-sanche File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| {% set rest_async_io_enabled = api.all_library_settings[api.naming.proto_package].python_settings.experimental_features.rest_async_io_enabled %} | ||
| {% if rest_async_io_enabled %} | ||
| # -*- coding: utf-8 -*- | ||
| {% from '_pypi_packages.j2' import pypi_packages %} | ||
| # This constraints file is used to check that lower bounds | ||
| # are correct in setup.py | ||
| # List all library dependencies and extras in this file, | ||
| # pinning their versions to their lower bounds. | ||
| # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # then this file should have google-cloud-foo==1.14.0 | ||
| google-api-core==2.21.0 | ||
| google-auth==2.35.0 | ||
| {% if api.requires_package(("google", "iam", "v1")) or api.naming.warehouse_package_name == 'google-fragment' %} | ||
| grpcio==1.44.0 # from grpc-google-iam-v1 | ||
| {% else %} | ||
| grpcio==1.33.2 # from google-api-core | ||
| {% endif %} | ||
| proto-plus==1.22.3 | ||
| protobuf==4.25.8 | ||
| {% for package_tuple, package_info in pypi_packages.items() %} | ||
| {# Quick check to make sure `package_info.package_name` is not the package being generated so we don't circularly include this package in its own constraints file. #} | ||
| {% if api.naming.warehouse_package_name != package_info.package_name %} | ||
| {% if api.requires_package(package_tuple) %} | ||
| {{ package_info.package_name }}=={{ package_info.lower_bound }} | ||
| {% endif %} | ||
| {% endif %} | ||
| {% endfor %} | ||
| {% endif %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/integration/goldens/redis/testing/constraints-3.9-async-rest.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # This constraints file is used to check that lower bounds | ||
| # are correct in setup.py | ||
| # List all library dependencies and extras in this file, | ||
| # pinning their versions to their lower bounds. | ||
| # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # then this file should have google-cloud-foo==1.14.0 | ||
| google-api-core==2.21.0 | ||
| google-auth==2.35.0 | ||
| grpcio==1.33.2 # from google-api-core | ||
| proto-plus==1.22.3 | ||
| protobuf==4.25.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/integration/goldens/redis_selective/testing/constraints-3.9-async-rest.txt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # -*- coding: utf-8 -*- | ||
| # This constraints file is used to check that lower bounds | ||
| # are correct in setup.py | ||
| # List all library dependencies and extras in this file, | ||
| # pinning their versions to their lower bounds. | ||
| # For example, if setup.py has "google-cloud-foo >= 1.14.0, < 2.0.0", | ||
| # then this file should have google-cloud-foo==1.14.0 | ||
| google-api-core==2.21.0 | ||
| google-auth==2.35.0 | ||
| grpcio==1.33.2 # from google-api-core | ||
| proto-plus==1.22.3 | ||
| protobuf==4.25.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has a bit of a risk where if there is another package that depends on a higher version of grpcio, and its not covered by the goldens, we would have an error
I had gemini do an analysis of our existing packages, and the only ones it could find were fully hand-written. Still, let me know if you have thoughts here. (Maybe we should leave the grpc part out?)