-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vdk-core: relevant info in step result (#3062)
## Why? Sometimes the exact errors in user code are hard to find in the stack trace ## What? Print relevant information from stack trace in step results Example: On error in step 20_python_step.py, the short result summary looks like this ``` 2024-01-29 15:14:14,736 [VDK] hello-world [INFO ] vdk.internal.builtin_plugins.r cli_run.py:166 __log_short_exec[id:3a22ec2e-d6e6-4f94-96c0-122955930cbb-1706534052-abffd]- Job execution result: ERROR Step results: 10_sql_step.sql - SUCCESS 20_python_step.py - ERROR File "/Users/mdilyan/Projects/vdk-playground/hello-world/20_python_step.py", line 27, in run raise ValueError("No value in this") ValueError: No value in this ``` ## How was this tested? Ran locally Functional test ## What kind of change is this? Feature/non-breaking Signed-off-by: Dilyan Marinov <[email protected]> Co-authored-by: Dilyan Marinov <[email protected]>
- Loading branch information
1 parent
09c49ba
commit 656ba0c
Showing
2 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters