-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Default to current working directory for profiles.yml
and fall back to ~/.dbt
#5412
Conversation
Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the contributing guide. |
Conceptually, good by me! This section of the codebase is tricky (along with all config initialization). We'll definitely want some tests for this behavior as well. I marked |
@dbeatty10 This unittest here will write a profile.yml to local and test things, I think you can maybe follow things here to add an unittest for your change. Happy to pair a bit to figure out exactly how |
Thank you for pointing me to that test @ChenyuLInx ! 👍 I will give it a shot and let you know how it goes. |
@dbeatty10 did we want to get this in for the 1.3 RC? I just want to make sure we plan to get this in if so |
@leahwicz Yeah, it would be awesome to get this into the 1.3 RC! @jtcohen6 would you be willing to give this a look? Specifically, how would we tell if it works correctly with dbt Cloud and dbt Server? Good news:
Less fun news:
Here's the easiest way to confirm the desired behavior manually: # Activate a virtual environment and install this branch
# Using profiles.yml file at $HOME/.dbt/profiles.yml
dbt debug
touch profiles.yml
# Using profiles.yml file at $(pwd)/profiles.yml
dbt debug |
@dbeatty10 I just left a big comment over in #5717 (comment)! I forgot the main PR was over here. What's the difference between these two? After checking through the codebases, I believe we're in ok shape wrt dbt-server + dbt-cloud |
If #5717 looks good to you, let's go with that one!
These two pull requests were different originally, but now I've aligned them. The original differences were basically these two commits: They aren't needed due to our discussion here (those commits were only needed if we wanted to look for |
@dbeatty10 Huzzah! I am thrilled to move forward with whichever of these PRs you wish :) I think the move now is to close one, and request review on the other. Let's just to make sure someone from the Language or Execution teams has given the code a ✅ before merging. I do think this change will warrant an update to the docs. Would you mind opening an issue for that, and adding the |
Closing in favor of #5717 |
resolves #5411
Description
Default to current working directory for
profiles.yml
and fall back to~/.dbt
.Various alternatives and trade-offs discussed in #5411.
Checklist
changie new
to create a changelog entry