Skip to content

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Mar 23, 2024

In case dependencies are not synchronized between provider.yaml and pyproject.toml, they got regenerated in CI, just to prevent the case we are using old dependencies - using pre-commit script.

Normally pre-commit fails when it make changes to files, but in case we are building CI image we run the pre-commit manually as we do not want to initialize all pre-commit environments and in this case we should also sys.exit(1) to fail the image build in this case.


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

In case dependencies are not synchronized between provider.yaml and
pyproject.toml, they got regenerated in CI, just to prevent the
case we are using old dependencies - using pre-commit script.

Normally pre-commit fails when it make changes to files, but in
case we are building CI image we run the pre-commit manually as
we do not want to initialize all pre-commit environments and in
this case we should also sys.exit(1) to fail the image build in
this case.
@potiuk potiuk force-pushed the exit-with-error-when-dependencies-got-updated branch from 74d494a to f31cb92 Compare March 23, 2024 09:56
@potiuk potiuk requested a review from Taragolis March 23, 2024 10:11
@potiuk
Copy link
Member Author

potiuk commented Mar 23, 2024

Prevents cases like #38384 resulting in #38422

@potiuk potiuk merged commit 98933ed into apache:main Mar 23, 2024
@potiuk potiuk deleted the exit-with-error-when-dependencies-got-updated branch March 23, 2024 11: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