Skip to content

Proper Python Host output from composite tasks in CI - #28254

Merged
potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-output-from-composite-tasks
Dec 10, 2022
Merged

potiuk merged 1 commit into
apache:mainfrom
potiuk:fix-output-from-composite-tasks

Conversation

@potiuk

@potiuk potiuk commented Dec 9, 2022

Copy link
Copy Markdown
Member

When we separated actions into composite workflows in #27369 and the #27371 we missed the fact that there was a step passing the host python version to static checks - to make sure we start with a fresh cache every time new python version is changed (this caused problems in the past)

The "host-python-version" was therefore empty and not really used in the cache key determining.

This has no bad effect when Python version does not change but when there is an upgrade of Python, the symbolic links in stored cache get broken, and next time new Python version is used in the AMIs, we might get them broken, so better to fix it now.


^ 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.

@potiuk

potiuk commented Dec 9, 2022

Copy link
Copy Markdown
Member Author

Still something is missing :(

@potiuk

potiuk commented Dec 9, 2022

Copy link
Copy Markdown
Member Author

re-running with debugging (debugging shows outputs)

@potiuk
potiuk force-pushed the fix-output-from-composite-tasks branch from 7577c1c to d40d78b Compare December 9, 2022 22:22
When we separated actions into composite workflows in apache#27369 and
the apache#27371 we missed the fact that there was a step passing the
host python version to static checks - to make sure we start with
a fresh cache every time new python version is changed (this
caused problems in the past)

The "host-python-version" was therefore empty and not really used
in the cache key determining.

This has no bad effect when Python version does not change but
when there is an upgrade of Python, the symbolic links in stored
cache get broken, and next time new Python version is used in
the AMIs, we might get them broken, so better to fix it now.
@potiuk
potiuk force-pushed the fix-output-from-composite-tasks branch from d40d78b to 9fb1754 Compare December 9, 2022 23:02
@potiuk

potiuk commented Dec 9, 2022

Copy link
Copy Markdown
Member Author

OK. All looks good, cache is solved. Ready to merge.

@potiuk

potiuk commented Dec 10, 2022

Copy link
Copy Markdown
Member Author

This one wil (finally) cut down the time for static checks by 3 minutes for all PRs when merged.

@potiuk
potiuk merged commit 0db5e46 into apache:main Dec 10, 2022
@potiuk
potiuk deleted the fix-output-from-composite-tasks branch December 10, 2022 22:57
ephraimbuddy pushed a commit that referenced this pull request Jan 12, 2023
When we separated actions into composite workflows in #27369 and
the #27371 we missed the fact that there was a step passing the
host python version to static checks - to make sure we start with
a fresh cache every time new python version is changed (this
caused problems in the past)

The "host-python-version" was therefore empty and not really used
in the cache key determining.

This has no bad effect when Python version does not change but
when there is an upgrade of Python, the symbolic links in stored
cache get broken, and next time new Python version is used in
the AMIs, we might get them broken, so better to fix it now.

(cherry picked from commit 0db5e46)
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Jan 13, 2023
@ephraimbuddy ephraimbuddy added this to the Airflow 2.5.1 milestone Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants