-
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
Can't find tox config file when running make test-unit #2739
Comments
(See discussion in Slack on this topic at https://app.slack.com/client/T0VLPD22H/C50NEBJGG/thread/C50NEBJGG-1599003795.014400) |
Thanks for linking that thread. This is so outside my wheelhouse, but I'm supportive of any changes we can make here that, as @beckjake said, will not require env changes for the vast majority of users. And I'm appreciative of the time and energy you've dedicated to local testing @heisencoder! |
I've tested this fix for Linux, but don't know for sure if it works on Mac or Windows (although I expect it will). The GitHub Actions should test against Windows, but I might need someone with a Mac to manually test the change locally on their system. |
Can do! |
See dbt-labs#2739 This change enables Linux users to run the dbt tests via the docker image. It follows the recommendations from this article: https://jtreminio.com/blog/running-docker-containers-as-current-host-user/ Notable changes: * Added new Makefile rule to generate a .env file that contains USER_ID and GROUP_ID environment variables to the ID of the current user. This is in turn used by docker-compose and the Dockerfile to make the Docker image run as the current user. (Note that on Windows or Mac, this behavior happens by default). * Reordered Dockerfile to allow for better caching of intermediate images (i.e., put things that don't depend on ARGS earlier). * Bumped CircleCI's Dockerfile from version 7 to 9. Jake rebuilt 9 off of this PR.
resolved by #2768 |
Describe the bug
I'm trying to get my local developer setup by following the commands in https://github.com/fishtown-analytics/dbt/blob/dev/marian-anderson/CONTRIBUTING.md, but am running into issues with tox while running the unit tests.
I can see tox.ini in my Git repo clone, so some other layer is expecting tox.ini elsewhere. I can also get it fail when running docker directly:
Steps To Reproduce
make test-unit
Expected behavior
This should run the unit tests.
System information
Which database are you using dbt with?
The output of
dbt --version
:The operating system you're using:
Debian 10 Linux variant
The output of
python --version
:Python 3.8.5
Additional context
I've installed docker and docker-compose, along with the other recommended tools. This is reproducible in two of my Linux systems.
The text was updated successfully, but these errors were encountered: