forked from kserve/kserve
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: error response handling for splitter and switch nodes (kserve#3116)
* Refactoring common code to a function Signed-off-by: Rachit Chauhan <[email protected]> * Added e2e test cases for splitter nodes Signed-off-by: Rachit Chauhan <[email protected]> * Fixed linting errors Signed-off-by: Rachit Chauhan <[email protected]> * Minor refactoring for error message Signed-off-by: Rachit Chauhan <[email protected]> --------- Signed-off-by: Rachit Chauhan <[email protected]>
- Loading branch information
1 parent
4142342
commit 8231072
Showing
4 changed files
with
191 additions
and
23 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
22 changes: 22 additions & 0 deletions
22
test/e2e/graph/test-resources/ig_test_switch_scenario_10.yaml
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,22 @@ | ||
apiVersion: serving.kserve.io/v1alpha1 | ||
kind: InferenceGraph | ||
metadata: | ||
name: {{ graph_name }} | ||
spec: | ||
nodes: | ||
root: | ||
routerType: Sequence | ||
steps: | ||
- name: "rootStep1" | ||
nodeName: node1 | ||
dependency: Hard | ||
- name: "rootStep2" | ||
serviceName: {{ success_200_isvc_id }} | ||
node1: | ||
routerType: Splitter | ||
steps: | ||
- name: "node1Step1" | ||
weight: 100 | ||
serviceName: {{ error_404_isvc_id }} | ||
condition: "[@this].#(decision_picker==ERROR)" | ||
dependency: Hard |
21 changes: 21 additions & 0 deletions
21
test/e2e/graph/test-resources/ig_test_switch_scenario_9.yaml
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,21 @@ | ||
apiVersion: serving.kserve.io/v1alpha1 | ||
kind: InferenceGraph | ||
metadata: | ||
name: {{ graph_name }} | ||
spec: | ||
nodes: | ||
root: | ||
routerType: Sequence | ||
steps: | ||
- name: "rootStep1" | ||
nodeName: node1 | ||
dependency: Soft # This is the default setting but setting it explicitly for more clarity | ||
- name: "rootStep2" | ||
serviceName: {{ success_200_isvc_id }} | ||
node1: | ||
routerType: Splitter | ||
steps: | ||
- name: "node1Step1" | ||
weight: 100 | ||
serviceName: {{ error_404_isvc_id }} | ||
condition: "[@this].#(decision_picker==ERROR)" |
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