-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify presubmits to support testing with v1alpha2 (#632)
* Changes to support v1alpha2 testing in presubmits. * The tests are currently disabled because they aren't passing yet because termination policy isn't handled correctly (#634) * Changed the v1alpha2 test to use the same smoke test as used by v1alpha1 as opposed to using mnist. mnist causing problems because of issues downloading the data see kubeflow/kubeflow#974 * We want a simpler test that allows for more direct testing of the distributed communication pattern * Also mnist is expensive in that it tries to download data. * Add a parameter tfJobVersion to the deploy script so we can control whether we deploy v1alpha1 or v1alpha2 * Parameterize the E2E test workflow by the TFJob version we want to run. * update test-app - We need to pull in a version of the app which has the TFJobVersion flag. * Create a script to regenerate the test-app for future use. Related to #589 * Fix versionTag logic; we need to allow for case where versionTag is an empty string.
- Loading branch information
1 parent
e164ba5
commit f66047b
Showing
61 changed files
with
3,921 additions
and
151,815 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
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
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,50 @@ | ||
#!/bin/bash | ||
# | ||
# A simple script to recreate the Kubeflow test app | ||
# | ||
set -ex | ||
# Create a namespace for kubeflow deployment | ||
NAMESPACE=kubeflow | ||
|
||
# Which version of Kubeflow to use | ||
# For a list of releases refer to: | ||
# https://github.com/kubeflow/kubeflow/releases | ||
VERSION=master | ||
API_VERSION=v1.7.0 | ||
|
||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
cd ${DIR} | ||
|
||
APP_NAME=test-app | ||
|
||
|
||
if [ -d ${DIR}/${APP_NAME} ]; then | ||
# TODO(jlewi): Maybe we should prompt to ask if we want to delete? | ||
echo "Directory ${DIR}/${APP_NAME} exists" | ||
echo "Do you want to delete ${DIR}/${APP_NAME} y/n[n]:" | ||
read response | ||
|
||
if [ "${response}"=="y" ]; then | ||
rm -r ${DIR}/${APP_NAME} | ||
else | ||
"Aborting" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
ks init ${APP_NAME} --api-spec=version:${API_VERSION} | ||
cd ${APP_NAME} | ||
ks env set default --namespace ${NAMESPACE} | ||
|
||
# Install Kubeflow components | ||
ks registry add kubeflow github.com/kubeflow/kubeflow/tree/${VERSION}/kubeflow | ||
|
||
ks pkg install kubeflow/core@${VERSION} | ||
|
||
# Create templates for core components | ||
ks generate kubeflow-core core | ||
|
||
# Run autoformat from the git root | ||
cd ${DIR}/.. | ||
bash <(curl -s https://raw.githubusercontent.com/kubeflow/kubeflow/${VERSION}/scripts/autoformat_jsonnet.sh) |
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,4 @@ | ||
/lib | ||
/.ksonnet/registries | ||
/app.override.yaml | ||
/.ks_environment |
39 changes: 0 additions & 39 deletions
39
test/test-app/.ksonnet/registries/incubator/422d521c05aa905df949868143b26445f5e4eda5.yaml
This file was deleted.
Oops, something went wrong.
18 changes: 0 additions & 18 deletions
18
test/test-app/.ksonnet/registries/kubeflow/845f2a02e6ef4e25cae8555a37924d3510d07b36.yaml
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -1,5 +1,13 @@ | ||
local env = std.extVar("__ksonnet/environments"); | ||
local params = std.extVar("__ksonnet/params").components.core; | ||
local k = import 'k.libsonnet'; | ||
|
||
local k = import "k.libsonnet"; | ||
local all = import "kubeflow/core/all.libsonnet"; | ||
|
||
std.prune(k.core.v1.list.new(all.parts(params).all)) | ||
// updatedParams uses the environment namespace if | ||
// the namespace parameter is not explicitly set | ||
local updatedParams = params { | ||
namespace: if params.namespace == "null" then env.namespace else params.namespace, | ||
}; | ||
|
||
std.prune(k.core.v1.list.new(all.parts(updatedParams).all)) |
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.