Skip to content

Commit

Permalink
test: add kfp cluster to functional tests workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Kvachenok <igor.kvachenok@prokube.ai>
  • Loading branch information
tmvfb committed Jun 3, 2024
1 parent 04b4cad commit d0b7262
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,18 @@ jobs:
- name: Create k8s Kind Cluster
uses: container-tools/kind-action@v2
with:
cluster_name: kfp-tekton
cluster_name: kfp-functional-test
kubectl_version: v1.29.2
version: v0.22.0
node_image: kindest/node:v1.29.2
- name: Deploy kfp
run: |
export PIPELINE_VERSION=2.2.0
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/cluster-scoped-resources?ref=$PIPELINE_VERSION"
kubectl wait --for condition=established --timeout=60s crd/applications.app.k8s.io
kubectl apply -k "github.com/kubeflow/pipelines/manifests/kustomize/env/dev?ref=$PIPELINE_VERSION"
echo "Waiting for max 300s for kfp cluster to come up"
kubectl wait --for=condition=Ready pods --all -n kubeflow --timeout=300s
- name: Run Functional Tests
run: |
log_dir=$(mktemp -d)
Expand Down
8 changes: 2 additions & 6 deletions test/kfp-functional-test/kfp-functional-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
sudo apt-get update -y
sudo apt --no-install-recommends -y -q install curl
source_root="$(pwd)"

source_root="$(pwd)"
python3 -m pip install -r "${source_root}/test/kfp-functional-test/requirements.txt"
HOST="https://$(curl https://raw.githubusercontent.com/kubeflow/testing/master/test-infra/kfp/endpoint)"

python3 "${source_root}/test/kfp-functional-test/run_kfp_functional_test.py" --host "${HOST}"
python3 "${source_root}/test/kfp-functional-test/run_kfp_functional_test.py" --host ""

0 comments on commit d0b7262

Please sign in to comment.