Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Dec 22, 2024

The new click 8.1.8 makes the dictionary of options used to calculate hash of commands different for setup command. by bumping it to minimum 8.1.8 version we make the hash the same for both CI and locally installed breeze (click 8.1.8 change in pyproject.toml of breeze will force reinstallation of breeze for everyone locally).


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

The new click 8.1.8 makes the dictionary of options used to
calculate hash of commands different for setup command. by bumping
it to minimum 8.1.8 version we make the hash the same for both
CI and locally installed breeze (click 8.1.8 change in pyproject.toml
of breeze will force reinstallation of breeze for everyone locally).
@potiuk potiuk merged commit 4ab4707 into apache:main Dec 22, 2024
91 checks passed
@potiuk potiuk deleted the fix-static-checks-failing-with-breeze-setup-command branch December 22, 2024 07:36
@gopidesupavan
Copy link
Member

oh nice good to know , due to the click version difference it produced different hashes :)

@potiuk
Copy link
Member Author

potiuk commented Dec 22, 2024

oh nice good to know , due to the click version difference it produced different hashes :)

Yeah. We are hashing dictionaries of command information that click produces, I think the difference is that we have a "" as default value and click 8.1.8 implemented a fix for that.

option_chicken_egg_providers = click.option(
    "--chicken-egg-providers",
    default="",
    help="List of chicken-egg provider packages - "
    "those that have airflow_version >= current_version and should "
    "be installed in CI from locally built packages with >= current_version.dev0 ",
    envvar="CHICKEN_EGG_PROVIDERS",
)

Release notes: https://github.com/pallets/click/releases/tag/8.1.8
Issue: pallets/click#2500
Fix: pallets/click#2724

@potiuk
Copy link
Member Author

potiuk commented Dec 22, 2024

Actually it is something else - because it was only setup :)... But .... It works, so no need to dig-in

potiuk added a commit to potiuk/airflow that referenced this pull request Dec 22, 2024
The new click 8.1.8 makes the dictionary of options used to
calculate hash of commands different for setup command. by bumping
it to minimum 8.1.8 version we make the hash the same for both
CI and locally installed breeze (click 8.1.8 change in pyproject.toml
of breeze will force reinstallation of breeze for everyone locally).

(cherry picked from commit 4ab4707)
@potiuk potiuk added this to the Airflow 2.10.5 milestone Dec 22, 2024
potiuk added a commit that referenced this pull request Dec 22, 2024
The new click 8.1.8 makes the dictionary of options used to
calculate hash of commands different for setup command. by bumping
it to minimum 8.1.8 version we make the hash the same for both
CI and locally installed breeze (click 8.1.8 change in pyproject.toml
of breeze will force reinstallation of breeze for everyone locally).

(cherry picked from commit 4ab4707)
got686-yandex pushed a commit to got686-yandex/airflow that referenced this pull request Jan 30, 2025
The new click 8.1.8 makes the dictionary of options used to
calculate hash of commands different for setup command. by bumping
it to minimum 8.1.8 version we make the hash the same for both
CI and locally installed breeze (click 8.1.8 change in pyproject.toml
of breeze will force reinstallation of breeze for everyone locally).
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.

3 participants