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
fix: Do not initialize snowplow tracker if anything goes wrong with it #8302
Conversation
✅ Deploy Preview for meltano canceled.
|
09cd1c2
to
9bdf34f
Compare
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #8302 +/- ##
==========================================
- Coverage 91.51% 91.50% -0.01%
==========================================
Files 245 245
Lines 19146 19151 +5
Branches 2139 2140 +1
==========================================
+ Hits 17522 17525 +3
- Misses 1345 1346 +1
- Partials 279 280 +1 ☔ View full report in Codecov by Sentry. |
Hi @jaceksan! Correct me if I'm wrong but I don't think this fixes #8256 because the error does not occur at import time, but rather at initialization time in meltano/src/meltano/core/tracking/tracker.py Lines 116 to 128 in 72530e9
What do you think? The change in this PR fixed the problem you were having with dbt? |
Hey @edgarrmondragon!
This happens when you install dbt-core into a venv where you already installed Meltano.
It did not fail anymore. But I am quite new in poetry, I may use it wrong. But I think I get your point. |
@jaceksan So How about |
You are right. I re-tested it and even I try to implement a better solution as soon as possible. |
@edgarrmondragon I analyzed the whole code base and I am afraid I can't solve this.
Do you have any idea how to handle such cases? |
@jaceksan One option that comes to mind is
|
I was notified by the related dbt-core issue that they are not going to work on it. |
Thanks @jaceksan. Let me know if the plan above makes sense. |
d9f4aaa
to
4ee74c4
Compare
ebea181
to
dae4d83
Compare
Closes issue meltano#8256 It may be a temporary workaround - it may be removed once dbt-labs/dbt-core#8680 is merged.
dae4d83
to
dc65ff9
Compare
The code looks good but it's probably worth doing some manual testing with common ways of installing Meltano along with dbt in a venv to confirm everything's working as expected. |
I tested it. The problem with my solution is that developers have to install Meltano first and then dbt. When they do it in opposite order, dbt won't work properly affected by snowplow-tracker delivered by Meltano. I can share with you how exactly I tested it, so you can reproduce it. |
@jaceksan can you give #8400 a try? TL;DR: dbt uses the same package name
That should be fixed by dbt-labs/dbt-core#9528 |
Great contribution to dbt-core, thanks for that! I installed Meltano from your branch and executed my project. Unfortunately, it does not work for me. |
@jaceksan ah you're right. I was under the impression that I'll try a similar approach to the dbt PR here and instantiate the emitters in a compatible way. |
Closing this now based on #8256 (comment). We can revisit later if we still feel this is needed. |
Closes issue #8256
It may be a temporary workaround -
it may be removed once dbt-labs/dbt-core#8680 is merged.