8000 [DRAFT] chore: testing constraints target minimum supported versions by daniel-sanche · Pull Request #2590 · googleapis/gapic-generator-python · GitHub
[go: up one dir, main page]

Skip to content

[DRAFT] chore: testing constraints target minimum supported versions#2590

Draft
daniel-sanche wants to merge 5 commits intomainfrom
update_min_versions
Draft

[DRAFT] chore: testing constraints target minimum supported versions#2590
daniel-sanche wants to merge 5 commits intomainfrom
update_min_versions

Conversation

@daniel-sanche
Copy link
Contributor

Fixes #2568 (comment)

Currently, our constraints files are above the minimum-supported version. We should either get the tests working, or bump up the requirements

This is a DRAFT PR changing the requirements, and we can see what issues come up in tests

@product-auto-label product-auto-label bot added the size: xs Pull request size is extra small. label Mar 13, 2026
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request initiates testing against the minimum supported versions of project dependencies. It specifically adjusts the pinned versions of google-api-core and google-auth within the constraints-3.9.txt.j2 file. The primary goal is to identify and address compatibility issues that arise when running tests with these lower dependency versions, ultimately ensuring the project functions correctly across its defined support matrix.

Highlights

  • Dependency Version Lowering: Lowered the pinned versions of google-api-core and google-auth in constraints-3.9.txt.j2 to test against minimum supported versions.
  • Addressing Issue use google-auth2.14.1 in tests #2568: This change is part of an effort to resolve an issue where current constraints files exceed minimum supported versions, aiming to either fix tests or update requirements.
Changelog
  • gapic/templates/testing/constraints-3.9.txt.j2
    • Updated google-api-core from 2.21.0 to 2.11.0.
    • Updated google-auth from 2.35.0 to 2.14.1.
Activity
  • The pull request was opened by daniel-sanche as a DRAFT.
  • The author is testing the impact of lowering dependency constraints to minimum supported versions.
  • The PR aims to identify issues that arise from these changes.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor
@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request lowers the pinned versions for google-api-core and google-auth in the constraints file for Python 3.9, as part of an effort to test against minimum supported dependency versions. This is a good exploratory change. However, I noticed that the constraints files for Python 3.10, 3.11, and 3.12 currently use _default_constraints.j2, which results in testing against the latest compatible dependency versions rather than the minimums. To ensure consistent and comprehensive testing of the minimum requirements across all supported Python versions, I recommend extending this change to also pin the lower bounds in the constraints files for Python 3.10-3.12.

@product-auto-label product-auto-label bot added size: s Pull request size is small. and removed size: xs Pull request size is extra small. labels Mar 13, 2026
and not line.startswith("#")
and line.strip()
]
session.install("-e", f"{tmp_dir}[async_rest]", *constraints)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not super happy with this solution. But the other option is using a separate constraints file for async_rest, and that doesn't seem great either.

@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Mar 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

use google-auth2.14.1 in tests

1 participant

0