Uh oh!
There was an error while loading. Please reload this page.
Move CNCF Kubernetes to new provider structure - #46436
Conversation
Just noticed the comment - #46132 (comment) |
bugraoz93
commented
Feb 4, 2025
One of the docs is failing due to a path showing old system tests. |
ca27c14 to
47469b0Comparejason810496
commented
Feb 5, 2025
The remain errors are caused by I tried updating the path in I'm also unsure why the import in |
rawwar
commented
Feb 5, 2025
@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? |
jason810496
commented
Feb 5, 2025
All the k8s tests encounter the import error. e.g. https://github.com/apache/airflow/actions/runs/13149821313/job/36695881525?pr=46436 |
rawwar
commented
Feb 5, 2025
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 |
rawwar
commented
Feb 5, 2025
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
6769f57CompareUh oh!
There was an error while loading. Please reload this page.
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 |
Uh oh!
There was an error while loading. Please reload this page.
rawwar
commented
Feb 5, 2025
it looks like #46454 also fixes K8s tests. I just ran them locally and they passed |
jason810496
commented
Feb 5, 2025
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
37bed53CompareSo, 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
32f72b4Comparepotiuk
commented
Feb 5, 2025
@jason810496 -> the k8s tests here are failing because you need to modify |
32f72b4 to
3a0f3ccComparejason810496
commented
Feb 6, 2025
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. |
potiuk
commented
Feb 6, 2025
Those are tests failing in main now - due to some |
3a0f3cc to
201a0d4Comparepotiuk
commented
Feb 6, 2025
Ah... You need to rebase :( there are some changes merged in the meantime. Sorry :( But we are REALLY close. |
201a0d4 to
9e45896Comparejason810496
commented
Feb 6, 2025
Hope this one will be the last one to be green 🚀 🟢 |
Co-authored-by: Kalyan R <kalyan.ben10@live.com>
- rename PROVIDER from "cncf" to "cncf/kubernetes" - remove MISSING_EXAMPLES_FOR_CLASSES
9e45896 to
c437fd5Comparepotiuk
commented
Feb 6, 2025
Ah.. For some reason you have all teh |
jason810496
commented
Feb 6, 2025
Do you mean all the docs prefix with |
potiuk
commented
Feb 6, 2025
Yep. I have not seen you are around - just pushed that fixup. Yeah. The |
potiuk
commented
Feb 6, 2025
Wooho. |
jason810496
commented
Feb 6, 2025
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 <kalyan.ben10@live.com> * 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 <kalyan.ben10@live.com> Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
* 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 <kalyan.ben10@live.com> * 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 <kalyan.ben10@live.com> Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
* 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 <kalyan.ben10@live.com> * 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 <kalyan.ben10@live.com> Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
* 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 <kalyan.ben10@live.com> * 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 <kalyan.ben10@live.com> Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
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.rstor{issue_number}.significant.rst, in newsfragments.