Skip to content

Commit 1b82505

Browse files
committed
test: add mcad-preinstalled test
1 parent 6cea079 commit 1b82505

File tree

7 files changed

+41
-9
lines changed

7 files changed

+41
-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, mcad-default, mcad-coscheduler]
17+
profile: [keep-it-simple, ray-autoscaler, mcad-default, mcad-coscheduler, mcad-preinstalled]
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
@@ -113,7 +113,7 @@
113113
"typescript": "4.7.4"
114114
},
115115
"dependencies": {
116-
"@guidebooks/store": "^0.2.3",
116+
"@guidebooks/store": "^0.2.4",
117117
"@kui-shell/client": "file:./plugins/plugin-client-default",
118118
"@kui-shell/core": "11.5.0-dev-20220807-191654",
119119
"@kui-shell/plugin-bash-like": "11.5.0-dev-20220807-191654",
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"name": "mcad-preinstalled",
3+
"creationTime": 1660657756574,
4+
"lastModifiedTime": 1660747919298,
5+
"lastUsedTime": 1660832127576,
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\":\"1.5Gi\",\"Head Memory\":\"1.5Gi\"}",
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": "My administrator has already installed and configured MCAD"
24+
}
25+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kubernetes/mcad/install
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
kubernetes/mcad/uninstall

tests/kind/run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ function run {
3636
local guidebook=${2-$GUIDEBOOK}
3737
local yes=$([ -z "$FORCE_ALL" ] && [ "$FORCE" != "$profile" ] && [ -f "$MWPROFILES_PATH/$profile" ] && echo "--yes" || echo "")
3838

39+
if [ -f "$MWPROFILES_PATH"/$profile.d/pre ]; then
40+
echo "Running pre guidebooks for profile $profile"
41+
cat "$MWPROFILES_PATH"/$profile.d/pre | xargs -n1 "$ROOT"/bin/codeflare -p $profile $yes
42+
fi
43+
3944
echo "Running with profile $profile"
4045
"$ROOT"/bin/codeflare -p $profile $yes $guidebook
4146
}

0 commit comments

Comments
 (0)