Skip to content

Commit 386fb11

Browse files
committed
test: add mcad-default kind test
1 parent 16853ba commit 386fb11

File tree

5 files changed

+38
-9
lines changed

5 files changed

+38
-9
lines changed

.github/workflows/kind.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
matrix:
1515
os: [ubuntu-latest]
1616
node-version: [16.x]
17-
profile: [keep-it-simple, ray-autoscaler]
17+
profile: [keep-it-simple, ray-autoscaler, mcad-default]
1818

1919
steps:
2020
- uses: actions/checkout@v3

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"typescript": "4.7.4"
113113
},
114114
"dependencies": {
115-
"@guidebooks/store": "^0.1.1",
115+
"@guidebooks/store": "^0.2.2",
116116
"@kui-shell/client": "file:./plugins/plugin-client-default",
117117
"@kui-shell/core": "11.5.0-dev-20220807-191654",
118118
"@kui-shell/plugin-bash-like": "11.5.0-dev-20220807-191654",

tests/kind/profiles/mcad-default

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "mcad-default",
3+
"creationTime": 1660657756574,
4+
"lastModifiedTime": 1660747919298,
5+
"lastUsedTime": 1660753306596,
6+
"choices": {
7+
"madwizard/apriori/use-gpu": "don't use gpus",
8+
"madwizard/apriori/arch": "x64",
9+
"madwizard/apriori/platform": "darwin",
10+
"madwizard/apriori/mac-installer": "Homebrew",
11+
"madwizard/apriori/in-terminal": "HTML",
12+
"Start a new Run####Connect Dashboard to an existing Run####Boot up a Cloud Computer####Shut down a Cloud Computer": "Start a new Run",
13+
"Training Demos####Fine Tuning Demos####Bring Your Own Code": "Bring Your Own Code",
14+
"BERT####MLFlow Demo####Tensorboard Demo": "MLFlow Demo",
15+
"Location of your working directory": "{\"Location of your working directory\":\"tests/kind/inputs/qiskit\"}",
16+
"Provide custom base image, if any": "{\"Provide custom base image, if any\":\"rayproject/ray:1.13.1-py37\"}",
17+
"AWS####IBM####My data is not stored in S3": "My data is not stored in S3",
18+
"Run Locally####Run on a Kubernetes Cluster": "Run on a Kubernetes Cluster",
19+
"expand(kubectl config get-contexts -o name, Kubernetes contexts)": "kind-codeflare-test",
20+
"expand([ -z ${KUBE_CONTEXT} ] && exit 1 || X=$(kubectl ${KUBE_CONTEXT_ARG} get ns -o name || oc ${KUBE_CONTEXT_ARG} get projects -o name); echo \"$X\" | sed -E 's#(namespace|project.project.openshift.io)/##' | grep -Ev 'openshift|kube-', Kubernetes namespaces)####Create a namespace": "default",
21+
"Number of CPUs####Number of GPUs####Minimum Workers####Maximum Workers####Worker Memory####Head Memory": "{\"Number of CPUs\":\"250m\",\"Number of GPUs\":\"0\",\"Minimum Workers\":\"1\",\"Maximum Workers\":\"1\",\"Worker Memory\":\"1Gi\",\"Head Memory\":\"1Gi\"}",
22+
"Keep It Simple####Use the Ray Autoscaler####Use the Multi-user Enhanced Kubernetes Scheduler": "Use the Multi-user Enhanced Kubernetes Scheduler",
23+
"My administrator has already installed and configured MCAD####MCAD with the Advanced Coscheduler####MCAD with the Default Kubernetes Scheduler": "MCAD with the Default Kubernetes Scheduler"
24+
}
25+
}

tests/kind/run.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ SCRIPTDIR=$(cd $(dirname "$0") && pwd)
66
export KUBECONFIG=$("$SCRIPTDIR"/setup.sh)
77
echo "Using KUBECONFIG=$KUBECONFIG"
88

9+
# We get this for free from github actions. Add it generally. This
10+
# informs the guidebooks to adjust their resource demands.
11+
export CI=true
12+
913
echo "================NODE INFO================="
1014
kubectl get node -o custom-columns=CAPACITY:.status.capacity
1115
echo "=========================================="

0 commit comments

Comments
 (0)