-
Notifications
You must be signed in to change notification settings - Fork 1.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
Allow missing profiles.yml
for dbt deps
and dbt init
#7546
Conversation
@jtcohen6 I think we'll want the 1.5 backport label added to this. |
@dbeatty10 Agreed! To provide a little window into my methods: The label needs to be added after the PR is merged in order to trigger the GH workflow, but I like to add it before the PR is merged, as a reminder & a form of bookkeeping :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Verified that the new CI checks added in 40ef3d8 will fail as reported in the regression case: |
@jtcohen6 do you know if this was backported or not? |
Any dates on when this fix would be released in 1.5? |
* Allow missing `profiles.yml` for `dbt deps` and `dbt init` * Some commands allow the `--profiles-dir` to not exist * Remove fix to verify that CI tests work * Allow missing `profiles.yml` for `dbt deps` and `dbt init` * CI is not finding any installed adapters * Remove functional test for `dbt init`
* Allow missing `profiles.yml` for `dbt deps` and `dbt init` * Some commands allow the `--profiles-dir` to not exist * Remove fix to verify that CI tests work * Allow missing `profiles.yml` for `dbt deps` and `dbt init` * CI is not finding any installed adapters * Remove functional test for `dbt init`
…7677) * Allow missing `profiles.yml` for `dbt deps` and `dbt init` * Some commands allow the `--profiles-dir` to not exist * Remove fix to verify that CI tests work * Allow missing `profiles.yml` for `dbt deps` and `dbt init` * CI is not finding any installed adapters * Remove functional test for `dbt init` Co-authored-by: Doug Beatty <44704949+dbeatty10@users.noreply.github.com>
@abhinav-kumar-17 we don't have a precise date yet, but it will be included in the 1.5.1 dbt-core release. |
resolves #7511
Description
Options considered
We considered four different approaches:
type=click.Path(exists=False)
to ignore path validationdbt deps
it's own custom version of the--profiles-dir
parameter that ignores path validation (similar to Option 2 above)@p.profiles_dir
fromdbt deps
Initial decision
The initial decision by @jtcohen6 was:
type=click.Path(exists=False)
to turn off this validation for all commands.New decision
But during implementation, I discovered an alternative click option named
profiles_dir_exists_false
that has that behavior (which was added fordbt debug
), so I chose to re-use that in order to preserve validation for the rest of the subcommands.During code review, it would be easy to go back to the initial decision if we want to.
Checklist
changie new
to create a changelog entry