support serving engine switch in pf serve cmd #10211
GitHub Actions / SDK CLI Test Result [xiaopwan/support_serving_engine_switch_in_pf_serve_cmd](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:xiaopwan/support_serving_engine_switch_in_pf_serve_cmd++)
failed
May 11, 2024 in 0s
1 fail, 41 skipped, 670 pass in 1h 3m 22s
4 files 4 suites 1h 3m 22s ⏱️
712 tests 670 ✅ 41 💤 1 ❌
2 848 runs 2 683 ✅ 164 💤 1 ❌
Results for commit 189a98c.
Annotations
Check warning on line 0 in tests.sdk_cli_test.e2etests.test_flow_test.TestFlowTest
github-actions / SDK CLI Test Result [xiaopwan/support_serving_engine_switch_in_pf_serve_cmd](https://github.com/microsoft/promptflow/actions/workflows/promptflow-sdk-cli-test.yml?query=branch:xiaopwan/support_serving_engine_switch_in_pf_serve_cmd++)
1 out of 4 runs failed: test_flex_flow_with_init (tests.sdk_cli_test.e2etests.test_flow_test.TestFlowTest)
artifacts/Test Results (Python 3.8) (OS ubuntu-latest)/test-results.xml [took 0s]
Raw output
AssertionError: assert 139677000879984 != 139677000879984
+ where 139677000879984 = FlowOutput(obj_input='val', func_input='input', obj_id=139677000879984).obj_id
+ and 139677000879984 = FlowOutput(obj_input='val', func_input='input', obj_id=139677000879984).obj_id
self = <sdk_cli_test.e2etests.test_flow_test.TestFlowTest object at 0x7f091cc7fdf0>
pf = <promptflow._sdk._pf_client.PFClient object at 0x7f090f874b50>
def test_flex_flow_with_init(self, pf):
flow_path = Path(f"{EAGER_FLOWS_DIR}/basic_callable_class")
result1 = pf.test(flow=flow_path, inputs={"func_input": "input"}, init={"obj_input": "val"})
assert result1.func_input == "input"
result2 = pf.test(flow=flow_path, inputs={"func_input": "input"}, init={"obj_input": "val"})
assert result2.func_input == "input"
> assert result1.obj_id != result2.obj_id
E AssertionError: assert 139677000879984 != 139677000879984
E + where 139677000879984 = FlowOutput(obj_input='val', func_input='input', obj_id=139677000879984).obj_id
E + and 139677000879984 = FlowOutput(obj_input='val', func_input='input', obj_id=139677000879984).obj_id
/home/runner/work/promptflow/promptflow/src/promptflow-devkit/tests/sdk_cli_test/e2etests/test_flow_test.py:473: AssertionError
Loading