Skip to content
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

Pre-commit cache is tied to a specific python version #14430

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Feb 24, 2021

The Pre-commit cache did not work when there is a change in
version of host python version used. When python version changed
from 3.6.12 to 3.6.13, the cache rendered useless.

This change adds python versio to the cache key specification,
including fallback value also including the python version, so
that even after changing pre-commit, the cache can be rebuilt
from the last-good cache but for the same python version.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

@potiuk potiuk force-pushed the fix-pre-commit-not-found-for-higher-python-version branch from bd2c882 to b54bb22 Compare February 24, 2021 20:50
@potiuk
Copy link
Member Author

potiuk commented Feb 24, 2021

a bit more changes needed, I realized :( Yaml rule for spaces in multiline are weird, and I forgot that we have SIX similar cases actually :)

The Pre-commit cache did not work when there is a change in
version of host python version used. When python version changed
from 3.6.12 to 3.6.13, the cache rendered useless.

This change adds python versio to the cache key specification,
including fallback value also including the python version, so
that even after changing pre-commit, the cache can be rebuilt
from the last-good cache but for the same python version.
@potiuk potiuk force-pushed the fix-pre-commit-not-found-for-higher-python-version branch from b54bb22 to fc44002 Compare February 24, 2021 20:53
@potiuk potiuk merged commit f3bc8ab into apache:master Feb 24, 2021
@potiuk potiuk deleted the fix-pre-commit-not-found-for-higher-python-version branch February 24, 2021 22:13
potiuk added a commit that referenced this pull request Mar 3, 2021
The Pre-commit cache did not work when there is a change in
version of host python version used. When python version changed
from 3.6.12 to 3.6.13, the cache rendered useless.

This change adds python versio to the cache key specification,
including fallback value also including the python version, so
that even after changing pre-commit, the cache can be rebuilt
from the last-good cache but for the same python version.

(cherry picked from commit f3bc8ab)
potiuk added a commit that referenced this pull request Mar 3, 2021
The Pre-commit cache did not work when there is a change in
version of host python version used. When python version changed
from 3.6.12 to 3.6.13, the cache rendered useless.

This change adds python versio to the cache key specification,
including fallback value also including the python version, so
that even after changing pre-commit, the cache can be rebuilt
from the last-good cache but for the same python version.

(cherry picked from commit f3bc8ab)
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