-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Further improvements for provider verification #33670
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
Further improvements for provider verification #33670
Conversation
|
Somehow we had a number of issues with provider check. This is always the question : who verifies the verifier. |
f6d6fd5 to
8376795
Compare
|
Should the |
It could, but it's not a very fast check - it requires breeze image and imports a lot. So I'd prefer to keep it the way it is. The pre-commits in CI are ALWAYS run with The general approach for local pre-commits (i.e. those which are run on "commit" scope) should be as fast as possible. |
|
Maybe we can bring the ast version back to run locally instead? I feel it’s still somewhat valuable to have a check locally. |
Instead, I am not sure, but additionally - if you want - sure. The checks we are doing here are far more complete - because they not only check the AST but also imports, Deprecation warnings etc. |
This one completes review and check of provider.yaml verifications. There was one more check - for duplicates - that did not work as expected. It was hiding errors detected. This PR fixes it and also adds a bit more diagnostics messagese on what is actually being checked to give a bit more clue if some check is not doing what it is supposed to be doing. Follow up after apache#33662 and apache#33640
8376795 to
c1f3311
Compare
|
By instead I meant only run the ast check locally, and only the real imports on CI. Does that make sense? |
But it's ok to run this one locally when provider.yaml changes. It's not THAT slow (it's a second or so) .... And provider.yaml changes really rarely. Also the checks that are run there are cross-provider.yaml, because they also check integrations, documentation, logos, url and many other content of the provider.yaml which are non-AST related. So generally "not running" it when provider.yaml files change is a bad ida. |
|
So in short:
So I am not sure there is a need to change here :). Adding an AST parser for quick check might be a good idea as well but that's pretty orthogonal to those checks, |
This one completes review and check of provider.yaml verifications. There was one more check - for duplicates - that did not work as expected. It was hiding errors detected.
This PR fixes it and also adds a bit more diagnostics messagese on what is actually being checked to give a bit more clue if some check is not doing what it is supposed to be doing.
Follow up after #33662 and #33640
^ 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.rstor{issue_number}.significant.rst, in newsfragments.