Skip to content

Commit b4b2e5a

Browse files
authored
Merge pull request opendatahub-io#48 from gmfrasca/fix-ci
test: Update CI tests to work with renamed repository
2 parents 847b570 + 3f86ce3 commit b4b2e5a

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

tests/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ RUN curl -o /usr/local/bin/jq http://stedolan.github.io/jq/download/linux64/jq &
2727

2828
RUN mkdir -p $HOME/src && \
2929
cd $HOME/src && \
30-
git clone --depth=1 --branch ${BRANCH} https://github.com/${ORG}/ml-pipelines && \
30+
git clone --depth=1 --branch ${BRANCH} https://github.com/${ORG}/data-science-ipelines && \
3131
# Clone ods-ci repo at specified git ref for the JupyterHub webUI tests
3232
git clone --depth=1 ${ODS_CI_REPO} ods-ci && cd ods-ci && \
3333
git fetch origin ${ODS_CI_GITREF} && git checkout FETCH_HEAD && \
@@ -50,10 +50,10 @@ RUN pip3 install micropipenv &&\
5050
micropipenv install
5151

5252
COPY setup/operatorsetup scripts/install.sh scripts/installandtest.sh $HOME/peak/
53-
COPY resources $HOME/peak/operator-tests/ml-pipelines/resources
54-
COPY util $HOME/peak/operator-tests/ml-pipelines
53+
COPY resources $HOME/peak/operator-tests/data-science-pipelines/resources
54+
COPY util $HOME/peak/operator-tests/data-science-pipelines
5555
COPY setup/kfctl_openshift.yaml $HOME/kfdef/
56-
COPY basictests $HOME/peak/operator-tests/ml-pipelines/basictests
56+
COPY basictests $HOME/peak/operator-tests/data-science-pipelines/basictests
5757

5858
RUN chmod -R 777 $HOME/kfdef && \
5959
mkdir -p $HOME/.kube && \

tests/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
IMAGE=ml-pipelines-tests
1+
IMAGE=data-science-pipelines-tests
22
GIT_ORG=opendatahub-io
33
GIT_BRANCH=master
44
ODHPROJECT=opendatahub

tests/basictests/ml-pipelines.sh renamed to tests/basictests/ds-pipelines.sh

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,27 @@ RESOURCEDIR="${MY_DIR}/../resources"
1010
os::test::junit::declare_suite_start "$MY_SCRIPT"
1111

1212
function check_resources() {
13-
header "Testing ML pipelines installation"
13+
header "Testing Data Science Pipelines installation"
1414
os::cmd::expect_success "oc project ${ODHPROJECT}"
1515
os::cmd::try_until_text "oc get crd pipelineruns.tekton.dev " "pipelineruns.tekton.dev" $odhdefaulttimeout $odhdefaultinterval
16-
os::cmd::try_until_text "oc get pods -l application-crd-id=kubeflow-pipelines --field-selector='status.phase!=Running,status.phase!=Completed' -o jsonpath='{$.items[*].metadata.name}' | wc -w" "0" $odhdefaulttimeout $odhdefaultinterval
17-
running_pods=$(oc get pods -l application-crd-id=kubeflow-pipelines --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w)
16+
os::cmd::try_until_text "oc get pods -l application-crd-id=data-science-pipelines --field-selector='status.phase!=Running,status.phase!=Completed' -o jsonpath='{$.items[*].metadata.name}' | wc -w" "0" $odhdefaulttimeout $odhdefaultinterval
17+
running_pods=$(oc get pods -l application-crd-id=data-science-pipelines --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w)
1818
os::cmd::expect_success "if [ "$running_pods" -gt "0" ]; then exit 0; else exit 1; fi"
1919
}
2020

2121
function check_ui_overlay() {
2222
header "Checking UI overlay Kfdef deploys the UI"
23-
os::cmd::try_until_text "oc get pods -l app=ml-pipeline-ui --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w" "1" $odhdefaulttimeout $odhdefaultinterval
23+
os::cmd::try_until_text "oc get pods -l app=ds-pipeline-ui --field-selector='status.phase=Running' -o jsonpath='{$.items[*].metadata.name}' | wc -w" "1" $odhdefaulttimeout $odhdefaultinterval
2424
}
2525

2626
function create_pipeline() {
2727
header "Creating a pipeline"
28-
route=`oc get route ml-pipeline || echo ""`
28+
route=`oc get route ds-pipeline || echo ""`
2929
if [[ -z $route ]]; then
30-
oc expose service ml-pipeline
30+
oc expose service ds-pipeline
3131
fi
32-
ROUTE=$(oc get route ml-pipeline --template={{.spec.host}})
33-
PIPELINE_ID=$(curl -s -F "uploadfile=@${RESOURCEDIR}/ml-pipelines/test-pipeline-run.yaml" ${ROUTE}/apis/v1beta1/pipelines/upload | jq -r .id)
32+
ROUTE=$(oc get route ds-pipeline --template={{.spec.host}})
33+
PIPELINE_ID=$(curl -s -F "uploadfile=@${RESOURCEDIR}/ds-pipelines/test-pipeline-run.yaml" ${ROUTE}/apis/v1beta1/pipelines/upload | jq -r .id)
3434
os::cmd::try_until_not_text "curl -s ${ROUTE}/apis/v1beta1/pipelines/${PIPELINE_ID} | jq" "null" $odhdefaulttimeout $odhdefaultinterval
3535
}
3636

@@ -57,7 +57,7 @@ function check_run_status() {
5757

5858
function setup_monitoring() {
5959
header "Enabling User Workload Monitoring on the cluster"
60-
oc apply -f ${RESOURCEDIR}/ml-pipelines/enable-uwm.yaml
60+
oc apply -f ${RESOURCEDIR}/ds-pipelines/enable-uwm.yaml
6161
}
6262

6363
function test_metrics() {
@@ -94,6 +94,6 @@ setup_monitoring
9494
test_metrics
9595
delete_runs
9696
delete_pipeline
97-
oc delete route ml-pipeline
97+
oc delete route ds-pipeline
9898

9999
os::test::junit::declare_suite_end

tests/setup/kfctl_openshift.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ spec:
2020
name: openshift-pipelines
2121
- kustomizeConfig:
2222
overlays:
23-
- metadata-store-mysql
24-
- ml-pipeline-ui
23+
- metadata-store-mariadb
24+
- ds-pipeline-ui
2525
- object-store-minio
2626
repoRef:
2727
name: app
2828
path: manifests/opendatahub
29-
name: ml-pipelines
29+
name: data-science-pipelines
3030
repos:
3131
- name: manifests
3232
uri: https://github.com/opendatahub-io/odh-manifests/tarball/master
3333
- name: app
34-
uri: https://github.com/opendatahub-io/ml-pipelines/tarball/master
34+
uri: https://github.com/opendatahub-io/data-science-pipelines/tarball/master
3535
version: master

0 commit comments

Comments
 (0)