Skip to content
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

vdk-core: test exception propagation to user code #2820

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

DeltaMichael
Copy link
Contributor

@DeltaMichael DeltaMichael commented Oct 20, 2023

Why

As part of our run logs initiative, we stopped wrapping non-vdk errors in vdk errors. This should result in errors coming from libraries, templates, etc. being propagated to user code. Users should then be able to handle those errors. This behaviour has not been tested, however.

What

Add a functional test that creates a template and runs it. The templates tries to read an empty csv using pandas, which results in a pandas-specific exception. The exception is then handled in a data job that executes the template.

How was this tested

Ran the test locally

What kind of change is this

Feature/non-breaking

Why?

As part of our run logs initiative, we stopped wrapping non-vdk
errors into vdk errors. This should result in errors coming from
libraries, templates, etc. being propagated to user code. Users
should then be able to handle those errors. This behaviour has
not been tested, however.

What?

Add a functional test that creates a template and runs it. The
templates tries to read an empty csv using pandas, which results
in a pandas-specific exception. The exception is then handled
in a data job that executes the template.

How was this tested?

Ran the test locally

What kind of change is this?

Feature/non-breaking

Signed-off-by: Dilyan Marinov <mdilyan@vmware.com>
@DeltaMichael DeltaMichael force-pushed the person/mdilyan/test-propagating-exceptions branch from ef0e134 to 6733f13 Compare October 20, 2023 14:04
@DeltaMichael DeltaMichael linked an issue Oct 20, 2023 that may be closed by this pull request
Copy link
Collaborator

@murphp15 murphp15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. very simple

@DeltaMichael DeltaMichael merged commit e71875f into main Oct 23, 2023
10 checks passed
@DeltaMichael DeltaMichael deleted the person/mdilyan/test-propagating-exceptions branch October 23, 2023 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SPIKE] Passing errors to user code
4 participants