promptflow icon indicating copy to clipboard operation
promptflow copied to clipboard

[Test] Add basic flex flow e2e test

Open D-W- opened this issue 1 year ago • 3 comments

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

This pull request primarily introduces a new end-to-end test flow for the promptflow package. The changes include the creation of a new class-based model configuration, the addition of a new YAML file to specify the entry point for the flow, and the creation of several JSON and JSONL files to define the inputs and test configurations for the flow.

New class-based model configuration:

  • src/promptflow/tests/test_configs/e2e_test_flows/class_based_flex_flow_with_model_config/class_based_model_config.py: Introduced a new class EvalFlow that takes an AzureOpenAIModelConfiguration as an argument. The class includes a __call__ method to evaluate if an expected word is present in a given answer and an __aggregate__ method to calculate the total number of correct results.

New YAML file:

  • src/promptflow/tests/test_configs/e2e_test_flows/class_based_flex_flow_with_model_config/flow.flex.yaml: Added a new YAML file to specify EvalFlow from class_based_model_config as the entry point for the flow.

New JSON and JSONL files:

  • src/promptflow/tests/test_configs/e2e_test_flows/class_based_flex_flow_with_model_config/init.json: Created a new JSON file to define the model_config for the flow, which includes the connection and Azure deployment details.
  • src/promptflow/tests/test_configs/e2e_test_flows/class_based_flex_flow_with_model_config/inputs.jsonl: Added a new JSONL file to provide the inputs for the flow, which include an answer and an expected word.
  • src/promptflow/tests/test_configs/e2e_test_flows/class_based_flex_flow_with_model_config/test_configs/batch_run_config_1.json: Created a new JSON file to define the test configurations for a batch run of the flow. The file includes details about the run configurations, assertions, and expected outputs.

All Promptflow Contribution checklist:

  • [ ] The pull request does not introduce [breaking changes].
  • [ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
  • [ ] I have read the contribution guidelines.
  • [ ] Create an issue and link to the pull request to get dedicated review from promptflow team. Learn more: suggested workflow.

General Guidelines and Best Practices

  • [ ] Title of the pull request is clear and informative.
  • [ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • [ ] Pull request includes test coverage for the included changes.

D-W- avatar May 09 '24 08:05 D-W-

promptflow SDK CLI Azure E2E Test Result wanhan/basic_flex_flow_test

  4 files    4 suites   4m 10s :stopwatch: 241 tests 205 :white_check_mark:  36 :zzz: 0 :x: 964 runs  820 :white_check_mark: 144 :zzz: 0 :x:

Results for commit 6d3887bb.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar May 09 '24 08:05 github-actions[bot]

SDK CLI Global Config Test Result wanhan/basic_flex_flow_test

6 tests   6 :white_check_mark:  1m 12s :stopwatch: 1 suites  0 :zzz: 1 files    0 :x:

Results for commit 6d3887bb.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar May 09 '24 08:05 github-actions[bot]

SDK CLI Test Result wanhan/basic_flex_flow_test

    4 files      4 suites   1h 1m 58s :stopwatch:   705 tests   663 :white_check_mark:  41 :zzz: 1 :x: 2 820 runs  2 655 :white_check_mark: 164 :zzz: 1 :x:

For more details on these failures, see this check.

Results for commit 6d3887bb.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar May 09 '24 08:05 github-actions[bot]

Hi, thank you for your interest in helping to improve the prompt flow experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment.

github-actions[bot] avatar May 24 '24 21:05 github-actions[bot]

Hi, thank you for your contribution. Since there has not been recent engagement, we are going to close this out. Feel free to reopen if you'd like to continue working on these changes. Please be sure to remove the no-recent-activity label; otherwise, this is likely to be closed again with the next cleanup pass.

github-actions[bot] avatar Jun 01 '24 21:06 github-actions[bot]