Skip to content

Commit

Permalink
Revert "Fix tfjob test; the simple tfjob test prototype was renamed. (k…
Browse files Browse the repository at this point in the history
…ubeflow#1267)"

This reverts commit b9f07e1.
  • Loading branch information
richardsliu committed Aug 21, 2018
1 parent b9f07e1 commit 4c80ab5
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions testing/workflows/components/workflows.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,17 @@
{},
{
name: "tfjob-test",
template: "tfjob-test" + v1alpha2Suffix
,
template: "tfjob-test",
dependencies: [
if platform == "minikube" then
"deploy-kubeflow"
else
"wait-for-kubeflow",
],
},
{
name: "tfjob-simple-prototype-test",
template: "tfjob-simple-prototype-test",
dependencies: [
if platform == "minikube" then
"deploy-kubeflow"
Expand Down Expand Up @@ -468,6 +477,22 @@
"testing.tf_job_simple_test",
"--src_dir=" + srcDir,
]), // tfjob-simple-prototype-test
buildTemplate("tfjob-test", [
"python",
"-m",
"py.test_runner",
"test",
"--cluster=" + cluster,
"--zone=" + zone,
"--project=" + project,
"--app_dir=" + tfOperatorRoot + "/test/workflows",
"--tfjob_version=v1alpha1",
"--component=simple_tfjob",
// Name is used for the test case name so it should be unique across
// all E2E tests.
"--params=name=simple-tfjob-" + platform + ",namespace=" + stepsNamespace + ",apiVersion=kubeflow.org/" + "v1alpha1" + ",image=" + "gcr.io/tf-on-k8s-dogfood/tf_sample:dc944ff",
"--junit_path=" + artifactsDir + "/junit_e2e-" + platform + ".xml",
]), // run tests
buildTemplate("tfjob-test" + v1alpha2Suffix, [
"python",
"-m",
Expand All @@ -478,10 +503,10 @@
"--project=" + project,
"--app_dir=" + tfOperatorRoot + "/test/workflows",
"--tfjob_version=v1alpha2",
"--component=simple_tfjob_v1alpha2",
"--component=simple_tfjob",
// Name is used for the test case name so it should be unique across
// all E2E tests.
"--params=name=simple-tfjob-" + platform + ",namespace=" + stepsNamespace,
"--params=name=simple-tfjob-" + platform + ",namespace=" + stepsNamespace + ",apiVersion=kubeflow.org/" + "v1alpha2" + ",image=" + "gcr.io/kubeflow-ci/tf-dist-mnist-test:1.0",
"--junit_path=" + artifactsDir + "/junit_e2e-" + platform + v1alpha2Suffix + ".xml",
], kubeConfig="v1alpha2"), // run tests
buildTemplate("pytorchjob-deploy", [
Expand Down

0 comments on commit 4c80ab5

Please sign in to comment.