chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part II#14231
Draft
XrossFox wants to merge 4 commits into
Draft
chore(several samples) Updating all instances of Pytest up to version 9.0.3 Part II#14231XrossFox wants to merge 4 commits into
XrossFox wants to merge 4 commits into
Conversation
… 9.0.3 Part II to close security alerts from dependabot. Directories that start from C to F. Extra: modified versions on which pipelines are wllowed to rune, since python 9.0.3 only support Python 3.10 onwards, so pipelines will only run 3.10 and 3.14 versions, which are the older and latest versions that are still maintained. Some surrounding packages had it's versions updated to avoid building issues with pip.
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the pytest dependency to version 9.0.3 (requiring Python 3.10+) across numerous sample directories and adjusts noxfile_config.py configurations to target Python 3.10 by ignoring other versions. It also updates several Airflow constraints files. The review feedback highlights a critical compatibility issue where upgrading constraints to Airflow 3 in composer/airflow_1_samples will break the Airflow 1.x samples. Additionally, several noxfile_config.py files contain outdated comments referencing older Python versions (such as 3.8, 3.9, or 3.11) as the active test targets, which should be updated to accurately reflect the new Python 3.10 testing environment.
…re a dockerfile update to be fully updated.
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
to close security alerts from dependabot.
Directories that start from C to F.
Extra: modified versions on which pipelines are wllowed to rune, since python 9.0.3 only support Python 3.10 onwards, so pipelines will only run 3.10 and 3.14 versions, which are the older and latest versions that are still maintained.
Some surrounding packages had it's versions updated to avoid building issues with pip.
Notes for specific samples (will be socumented on b/514353082):
Composer samples should be addressed on a different PR, it appears most samples cannot simply be updated due to how Airflow works.
dataflow/custom-containers have docker images that must be updated to run python 3.10, otherwise will only run python 3.9 internally anyways.
dataflow/flex-templates/streaming_beam: same as custom-containers.
Description
Fixes #
Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google.
Checklist
nox -s py-3.9(see Test Environment Setup)nox -s lint(see Test Environment Setup)