-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vdk-core: fix bug in error classification
Why Errors coming from libraries imported in user code are getting classified as platform errors in the execution result This is caused by the job_input_error_classifier checking for an incorrect attribute of the error object. What Export the _vdk_resolvable_by and _vdk_resolvable_actual attributes to constants and replace wherever they're used in code How has this been tested Functional test What kind of change is this Bugfix Signed-off-by: Dilyan Marinov <mdilyan@vmware.com>
- Loading branch information
Dilyan Marinov
committed
Oct 27, 2023
1 parent
b4220f6
commit 1b7cffc
Showing
7 changed files
with
236 additions
and
169 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
24 changes: 24 additions & 0 deletions
24
projects/vdk-core/tests/functional/run/jobs/pandas-key-error-job/10_pandas_step.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright 2021-2023 VMware, Inc. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
import pandas as pd | ||
from vdk.api.job_input import IJobInput | ||
|
||
|
||
def run(job_input: IJobInput): | ||
df1 = pd.DataFrame({"lkey": ["foo", "bar", "baz", "foo"], "value": [1, 2, 3, 5]}) | ||
df2 = pd.DataFrame({"rkey": ["foo", "bar", "baz", "foo"], "value": [5, 6, 7, 8]}) | ||
pd.merge( | ||
df1, | ||
df2, | ||
how="inner", | ||
on=[ | ||
"timestamp", | ||
"status_code", | ||
"response_status", | ||
"exception", | ||
"region", | ||
"region_type", | ||
"tenant", | ||
"utc_time", | ||
], | ||
) |
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
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
Oops, something went wrong.