Closed mmyers5 closed 1 month ago
We found the issue! In our Docker image that containerized the dbt CLI, we were installing our own version of snowflake-connector-python
. Not sure how that led to flaky behavior within the same container but 🤷♀️ resolving this seems to have fixed it. Thanks y'all
Python version
3.10.7
Operating system and processor architecture
Ubuntu 22.04.4
Installed packages
What did you do?
I originally created this issue here at dbt-snowflake. They recommended I create the issue here.
We are using docker compose in GitHub Actions to generate dbt docs and publish them to an external storage location. When the CI/CD job runs
docker compose run dbt docs generate --target nondev
, it randomly fails with the error:AuthByKeyPair.prepare() takes 1 positional argument but 3 were given
. Sometimes the CI/CD job succeeds, and I haven't been able to get the failure to trigger locally.It is worth noting that the following CI/CD job always succeeds with the command:
dbt --warn-error debug --target nondev
.ghcr.io/dbt-labs/dbt-snowflake:1.7.3
. We have an entrypoint that prefixes any command being passed into the docker container withdbt
, sodocker compose run dbt docs
will rundbt docs
.docker compose build dbt
docker compose run dbt --warn-error parse --target nondev
docker compose run dbt --warn-error debug --target nondev
docker compose build dbt
docker compose run dbt docs generate --target nondev
Relevant log output
On a failed run:
On a successful run:
What did you expect to see?
No flaky job results
Can you set logging to DEBUG and collect the logs?
Added the
--debug
flag to the job: