[Bug] Change GenericExceptionOnRun
to have node_info
#9557
Labels
backport 1.7.latest
bug
Something isn't working
pre-release
Bug not yet in a stable release
unit tests
Issues related to built-in dbt unit testing functionality
Milestone
Is this a new bug in dbt-core?
Current Behavior
If a "generic" error occurs in a call runner (such as a Python keyword error), the "GenericExceptionOnRun" logging event is issued, but doesn't have node_info in it. All call runners have a node associated with them, so we should add node_info to events that are issued in the call runner code path.
Expected Behavior
The GenericExceptionOnRun logging event should have node_info.
Steps To Reproduce
Generally in order to see this, you would have to have a Python error. This happened for a pre-release version of the unit testing feature, but is hard to reproduce in a test case since you'd have to force a Python error.
Relevant log output
The lack of GenericExceptionOnRun in the node associated logs in the IDE.
Environment
Additional Context
Internal slack thread: https://dbt-labs.slack.com/archives/C012TTNN0JK/p1707407183148229
@gshank said that the solution might be:
The text was updated successfully, but these errors were encountered: