-
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
dbt debug should return 1 when one of the tests fail #3018
dbt debug should return 1 when one of the tests fail #3018
Conversation
@jtcohen6 No, didn't do anything special. We're not using CircleCI. Do you know why the postgres tests are failing? I thought I only had to toggle |
hey @sdebruyn! looks like the unit test workflow in CircleCI is failing because of a flake8 error. I definitely agree with you, this isn't very straight forward. I'm hoping we can make this a better experience, I'm actively thinking about this. In the meantime, you can run linting and tests locally with docker if you haven't done this already.
|
Okay, I fixed the flake test, but how do I fix the other ones? CircleCi is not triggering after fixing the flake test. How do you usually work on the project in your IDE? Do you always run the docker containers for the tests or is there a way to setup PyCharm/IntelliJ or VS Code to be able to set breakpoints etc.? |
@sdebruyn not sure what's up with CircleCI tests.. can you try closing and reopening the PR to force tests to run again. Sorry about this! At the moment, yes |
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.
Looks good! I just added some small comments. Hopefully we can get the CI tests sorted out.
@kwigley I'm not sure why the Circle tests aren't running; sometimes there are weird settings with certain forks. In the meantime, we can manually trigger them by pulling commits and pushing to branch
|
When I run the tests locally, I don't see the actual error message. I always get this one instead:
|
FYI for the CircleCI issue: I had to grant CircleCI access to our organization. Strange, since the repo is public... |
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.
👍
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.
@kwigley @jtcohen6 Any idea whether integration tests still have to be run inside Docker? If so, can you explain how you actually accomplish this in greater detail? Are you using
And when I build just the test container from
I can Apologies if I'm making some unlearned Docker mistakes here, took a look at the bit about setting up an env/running tests in the contributing guide but am still struggling to actually run any of the integration tests |
@anthonymichaelclark We've significantly improved the way to run integration tests over the past few months, so it's no longer strictly necessary to run them via Docker. (You still can if you choose to.) Check out the current version of |
@jtcohen6 Thanks for the reply -- so I should have been clearer, I've been through the Contributing doc (and I apologize in advance if I'm overlooking something there that's going to answer my questions), I can successfully run the postgres integration tests covered there. I'm struggling to run the BigQuery integration tests, many of which are producing the same |
@anthonymichaelclark Got it, I'm not sure what would be causing the
|
@jtcohen6 Got to the bottom of it, figured I'd share the details in case someone besides sdebruyn and I run into it: somehow I had a directory called |
resolves #3017
Description
DBT debut task now returns a boolean to indicate if all of the tests have succeeded or not.
Checklist
CHANGELOG.md
and added information about my change to the "dbt next" section.