-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Refactor sample tests configuration to reduce the efforts of adding samples. #1730
Conversation
…ample_tests # Conflicts: # test/sample-test/run_test.sh
…pting utility functions. TODO: Need to move the functions of run_*_test.py into a unified run_sample_test.py.
… kubeflow-training-classification, xgboost-training-cm and basic ones into one run_sample_test.py
/test kubeflow-pipeline-e2e-test |
The test cases may be even moved from the script to individual test case files. component_ref:
url: https://raw.githubusercontent.com/kubeflow/pipelines/master/samples/core/tfx/taxi-cab-classification-pipeline.component.yaml
arguments:
project: ml-pipeline-test
column-names: gs://ml-pipeline-dataset/sample-test/taxi-cab-classification/column-names.json
evaluation: gs://ml-pipeline-dataset/sample-test/taxi-cab-classification/eval20.csv
train: gs://ml-pipeline-dataset/sample-test/taxi-cab-classification/train50.csv
hidden-layer-size: 5
steps: 5 And maybe the whole test set would be a pipeline: name: TFX tests
graph:
tasks:
test-1:
component_ref:
url: https://raw.githubusercontent.com/kubeflow/pipelines/master/samples/core/tfx/taxi-cab-classification-pipeline.component.yaml
arguments:
project: ml-pipeline-test
column-names: gs://ml-pipeline-dataset/sample-test/taxi-cab-classification/column-names.json
evaluation: gs://ml-pipeline-dataset/sample-test/taxi-cab-classification/eval20.csv
train: gs://ml-pipeline-dataset/sample-test/taxi-cab-classification/train50.csv
hidden-layer-size: 5
steps: 5
test-2:
... |
/lgtm |
Thanks for the suggestion @Ark-kun . I will take that into consideration for further refactoring and future test design. |
/test kubeflow-pipeline-e2e-test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gaoning777 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Thanks jiaxiao to improve our sample test infra and refactor the codes. This is really important to keep the product quality high and saves huge engineering efforts in the future to add more tests for samples. |
Thanks for your reviews and suggestions! @gaoning777 @Ark-kun |
/test kubeflow-pipeline-e2e-test |
Synced with head to fix e2e test. Please relgtm, thx! |
/lgtm |
/test kubeflow-pipeline-e2e-test |
Refactor sample tests configuration to reduce the efforts of adding samples.
This change is