-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Move CNCF Kubernetes to new provider structure #46436
Move CNCF Kubernetes to new provider structure #46436
Conversation
Just noticed the comment - #46132 (comment) |
One of the docs is failing due to a path showing old system tests. |
ca27c14
to
47469b0
Compare
The remain errors are caused by
I tried updating the path in I'm also unsure why the import in |
@jason810496 , which failing test has this import error? I checked failing tests and don't see any import errors. Can you share the link to the failing test? or is it happening locally? |
All the k8s tests encounter the import error. e.g. https://github.com/apache/airflow/actions/runs/13149821313/job/36695881525?pr=46436 |
Ah sorry. I just realised you mentioned about two issues. I resolved the issue with example_dag in google provider. looking into it. Not sure about k8s tests. Will look at it after example dag tests |
@jason810496 , I noticed that adding
to TestCncfProviderProjectStructure and that's ignoring the issues. But, in actual, test for the class is present at So, issue is definitely with the src prefix in the import path. That's a direction to look into? EDIT: I suspect issue is because of the way we find example dags at https://github.com/rawwar/airflow/blob/4821da5cc3fe58e1f64d49967b52026adfa89dbe/tests/always/test_project_structure.py#L307 |
Ok, so, the issue is that PROVIDER is set to because of that, its unable to find the example dags |
I just replaced the UPDATED:
I think by adding |
I was actually checking. I see example tests at Somehow, these aren't being imported EDIT: Issue is definitely because of https://github.com/rawwar/airflow/blob/4821da5cc3fe58e1f64d49967b52026adfa89dbe/tests/always/test_project_structure.py#L243 Only for this provider, its prefixed with |
47469b0
to
6769f57
Compare
So, the actual issue for the example test is at https://github.com/rawwar/airflow/blob/4821da5cc3fe58e1f64d49967b52026adfa89dbe/tests/always/test_project_structure.py#L272 Here we just split and consider from 2nd index. since, its On to K8s failing tests |
@jason810496 , raised a separate pr - #46454 . that might handle it. Locally, tests passed . looking into k8s tests failure |
it looks like #46454 also fixes K8s tests. I just ran them locally and they passed |
Can you pull the changes from the PR? these k8s tests didn't run on the other PR. Once you pull, we can at least confirm that the changes fix the k8s tests. |
8c276f3
to
37bed53
Compare
So, the only other fix required here for the example tests is to make providers = "cncf/kubernetes". But, k8s tests are still failing. I just raised a dummy pr to see the test results and they failed. Locally, They are successful. |
37bed53
to
32f72b4
Compare
@jason810496 -> the k8s tests here are failing because you need to modify
|
32f72b4
to
3a0f3cc
Compare
The import error has finally been resolved! Big thanks to @potiuk! The only remaining CI failures:
Not sure if rerunning the tests would resolve these errors. |
Those are tests failing in main now - due to some |
3a0f3cc
to
201a0d4
Compare
Ah... You need to rebase :( there are some changes merged in the meantime. Sorry :( But we are REALLY close. |
201a0d4
to
9e45896
Compare
Hope this one will be the last one to be green 🚀 🟢 |
Co-authored-by: Kalyan R <[email protected]>
- rename PROVIDER from "cncf" to "cncf/kubernetes" - remove MISSING_EXAMPLES_FOR_CLASSES
9e45896
to
c437fd5
Compare
Ah.. For some reason you have all teh |
Do you mean all the docs prefix with |
Yep. I have not seen you are around - just pushed that fixup. Yeah. The |
Wooho. |
Greatly appreciate it, thanks @potiuk! 🙌🎉 |
* Move CNCF Kubernetes to new provider structure * Fix doc include path and k8s test * Fix taskflow tutorial * Fix test_project_structure * Strip src. prefix instead of replacing all src. Co-authored-by: Kalyan R <[email protected]> * Merge fix get_classes_from_file apache#46454 * Fix TestCncfProviderProjectStructure - rename PROVIDER from "cncf" to "cncf/kubernetes" - remove MISSING_EXAMPLES_FOR_CLASSES * Fix k8s CI requirements * fixup! Fix k8s CI requirements --------- Co-authored-by: Kalyan R <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]>
* Move CNCF Kubernetes to new provider structure * Fix doc include path and k8s test * Fix taskflow tutorial * Fix test_project_structure * Strip src. prefix instead of replacing all src. Co-authored-by: Kalyan R <[email protected]> * Merge fix get_classes_from_file apache#46454 * Fix TestCncfProviderProjectStructure - rename PROVIDER from "cncf" to "cncf/kubernetes" - remove MISSING_EXAMPLES_FOR_CLASSES * Fix k8s CI requirements * fixup! Fix k8s CI requirements --------- Co-authored-by: Kalyan R <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]>
* Move CNCF Kubernetes to new provider structure * Fix doc include path and k8s test * Fix taskflow tutorial * Fix test_project_structure * Strip src. prefix instead of replacing all src. Co-authored-by: Kalyan R <[email protected]> * Merge fix get_classes_from_file apache#46454 * Fix TestCncfProviderProjectStructure - rename PROVIDER from "cncf" to "cncf/kubernetes" - remove MISSING_EXAMPLES_FOR_CLASSES * Fix k8s CI requirements * fixup! Fix k8s CI requirements --------- Co-authored-by: Kalyan R <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]>
* Move CNCF Kubernetes to new provider structure * Fix doc include path and k8s test * Fix taskflow tutorial * Fix test_project_structure * Strip src. prefix instead of replacing all src. Co-authored-by: Kalyan R <[email protected]> * Merge fix get_classes_from_file apache#46454 * Fix TestCncfProviderProjectStructure - rename PROVIDER from "cncf" to "cncf/kubernetes" - remove MISSING_EXAMPLES_FOR_CLASSES * Fix k8s CI requirements * fixup! Fix k8s CI requirements --------- Co-authored-by: Kalyan R <[email protected]> Co-authored-by: Jarek Potiuk <[email protected]>
related: #46045
^ 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.