-
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
[CT-1874] [Bug] Erroneous Makefile variable causing make integration
to fail
#6689
Comments
make integration
to failmake integration
to fail
UPDATE: Through communications in the dbt-developer slack, it's been revealed that the Makefile works as expected if the environment variable So, consider potential solution number 3 to be "update the contributing guide to tell the user to set the USE_CI_FLAGS environment variable to true before running |
Yeah we should probably go with solution three to explain what this is doing. I can only barely remember the context of this right now. That said, let me do some digging and recall so we can make a better experience here. Also, I do vaguely remember there being a PR out there for this solution as opposed to another. I have to go digging. Thanks for the flag! Tooling is only as good as it can be understood. |
Alrightie ⌛ Had some time to dig through the commit log/PR history. I like the spirit of this solution because ultimately it's trying to preserve flexibility of the tooling: users may have environments with different environment variable values. That said, with wiser eyes today, I'd like a revise. How would we feel about making this edit: just a historical perspective, I think the team as a whole doesn't really have visibility into who uses this tooling (we do ourselves, of course!!). Since we rarely hear complaints, we rarely know what might be better ways to improve this. All in all, a great little bit of feedback you brought to us for the future 💥 |
I like the direction you're suggesting:
|
PR with some adjustments is up. Happy to iterate the comments, so get your opinions on there. |
Is this a new bug in dbt-core?
Current Behavior
My friend and coworker @seub has followed the Contributing guide for setting up the development environment for DBT-core, but repeatedly failed the
make integration
pytest suite. Many of the error messages referenced the fact that some environment variables weren't defined (the environment variables provided in the $CI_FLAGS variable). Looking into lines 66-69 of the makefile, there's this conditional statement contributed by @VersusFacit one or two commits ago:Because the variable $USE_CI_FLAGS is not defined anywhere, the conditional fails and the CI_FLAGS are not provided to the DOCKER_CMD. After removing the if statement and simply providing the $CI_FLAGS unconditionally,
make integration
succeeded.Expected Behavior
I expected the
make integration
test to succeed after following the Contributing guide.Steps To Reproduce
Create a fresh dev environment for dbt-core and try running
make integration
off the main branch.Relevant log output
No response
Environment
Which database adapter are you using with dbt?
No response
Additional Context
Suggested solutions:
integration
, at least until this issue is resolved.The text was updated successfully, but these errors were encountered: