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

[providers-fab/v1-5] Sort "opts" element in click option dictionary before hashing (#45156) #45169

Merged

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Dec 22, 2024

Some impleemntation details of click 8.1.8 caused instability in configuration directories that are produced by click config - the instability is in sequence of generated "opts" list - the sequence of options in it is random.

While it can be likely fixed in later versions, better is to protect from it and sort the opts list before hashing the dict.

(cherry picked from commit 1796c40)


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

…#45156)

Some impleemntation details of click 8.1.8 caused instability in
configuration directories that are produced by click config - the
instability is in sequence of generated "opts" list - the sequence
of options in it is random.

While it can be likely fixed in later versions, better is to
protect from it and sort the opts list before hashing the dict.

(cherry picked from commit 1796c40)
@potiuk potiuk requested review from jscheffl, kaxil, gopidesupavan and eladkal and removed request for ashb and jedcunningham December 22, 2024 21:56
@potiuk
Copy link
Member Author

potiuk commented Dec 22, 2024

Need to cherry-pick that one to FAB provider's branch

@potiuk potiuk merged commit 7a07994 into apache:providers-fab/v1-5 Dec 22, 2024
53 of 67 checks passed
@potiuk potiuk deleted the cherry-pick-hash-breeze-changes branch December 22, 2024 22:08
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