Skip to content

Fix selective checks to run all python version tests on env change - #27387

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-python-versions-when-environment-changed
Nov 1, 2022
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-python-versions-when-environment-changed

Conversation

@potiuk

@potiuk potiuk commented Oct 30, 2022

Copy link
Copy Markdown
Member

Selective checks for "environment files" changed had a small problem, where images were built for all python versions (all-python-versions) but tests were not run (python-versions). The "all" variant is foreseen for case where we have different set of Python versions in main and different in v2* branch.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Selective checks for "environment files" changed had a small problem,
where images were built for all python versions (all-python-versions)
but tests were not run (python-versions). The "all" variant is foreseen
for case where we have different set of Python versions in main and
different in v2* branch.
return (
CURRENT_PYTHON_MAJOR_MINOR_VERSIONS
if self.full_tests_needed
if self._run_everything or self.full_tests_needed

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It seems that _run_everything already checks for self.full_tests_needed. Is is or condition necessary ?

Same question for all_python_versions

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This is to handle the case where "run_everything = True" but "full_tests_needed = False" :)

@potiuk
potiuk merged commit 0a4d117 into apache:main Nov 1, 2022
@potiuk
potiuk deleted the fix-python-versions-when-environment-changed branch November 1, 2022 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants