-
Notifications
You must be signed in to change notification settings - Fork 916
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
Fix Configuration Loader to Handle Paths Containing dots #3004
Comments
@erwinpaillacan Potential conflict requirements with #2977 Does it work with other ConfigLoader? And what will be the expected behavior? We can hard coded for. ipynb_checkpoints but doesn't seem ideal to me. |
I think we need to ignore internal folders but after project root, not before. The expected behaviour would be to able to run the kedro project. If I have my project_root in Just tested TemplatedConfigLoader and it works fine. |
@erwinpaillacan I agree that but we need something more generic. Conf is not necessary inside a project. While it may not be common, one may actually have their conf folder inside a hidden folder but outside project root. I have some idea to fix this but will need further investigation. |
Potential root cause (not checked): kedro/kedro/config/omegaconf_config.py Lines 258 to 259 in 955bc93
kedro/kedro/config/omegaconf_config.py Lines 394 to 400 in 955bc93
|
When addressing this we'd ideally find a solution for this problem as well as #2977. That fix seems to be the cause of this. |
I fixed this locally as a quick bugfix like this.
Maybe a usefull starting point :). Believe it also still works for the original problem. Could make a PR if you would like. |
@IngerMathilde Thank you for investigating this and sharing the solution! ⭐ |
@IngerMathilde I've opened a PR for this #3145, would you mind sharing your email id so we can add you as a co-author of that PR? :) |
Hi! |
Description
When working within Databricks workflows, it's possible to create a job that utilizes a notebook hosted inside a repository. Each time the job is executed, the code is automatically cloned to a path that depends on the commit. In my case, I have hosted a notebook that runs the Kedro project within the
.azuredevops
directory.To locate the current project root, we can employ a regular expression (regex) pattern:
With this regex, we can effectively identify the project root. For example, one possible path is:
However, there's an issue that arises when a period (dot) appears within the path. This problem is not limited to Databricks; it can also occur locally. It's important to note that the OmegaConfigLoader did not encounter any issues with this path until Kedro version 0.18.12.
Context
Just running a normal kedro project. Which was working untill 0.18.12
Steps to Reproduce
.
, for example if you a have a kedro project inUsers/yourname/kedro_project
you can create a new folder with some pointUsers/yourname/.somefolder/kedro_project
Expected Result
kedro should load the session
Actual Result
The config loader is not be able to find any config file
Your Environment
pip show kedro
orkedro -V
): 0.18.13python -V
): 3.10.12The text was updated successfully, but these errors were encountered: