Fire typed events in tests.integration.base
instead of AdapterLogger
#43
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Nightly runs have been failing since dbt-labs/dbt-core#4266 was merged:
In particular, a handful of tests that use
--vars
were failing here:Complaining about key errors in the
*args
being passed along:I'm guessing this has to do with the lazy evaluation for log messages that we spent time pulling apart and understanding in dbt-labs/dbt-core#4266. I'm just surprised this started failing after we merged those fixes.
For the time being, I was able to get these tests passing again locally by making
tests/integration/base.py
look more like it does in dbt-core: fire typed events (IntegrationTestInfo
,IntegrationTestDebug
,IntegrationTestException
), instead of plumbing throughAdapterLogger
.We very badly need to (a) improve this integration testing scaffold, and (b) consolidate its logic into a single module (package?) that can be reused across core + all our adapters. For now, these need to be manual fixups.