Refactor: Extract pipeline_test.py into a shared file for reuse across workflows #148
Workflow file for this run
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
name: Build & Apply CentralDashboard manifests in KinD | |
on: | |
pull_request: | |
paths: | |
- tests/gh-actions/install_KinD_create_KinD_cluster_install_kustomize.sh | |
- .github/workflows/centraldashboard_test.yaml | |
- apps/centraldashboard/upstream/** | |
- tests/gh-actions/install_istio.sh | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install KinD, Create KinD cluster and Install kustomize | |
run: ./tests/gh-actions/install_KinD_create_KinD_cluster_install_kustomize.sh | |
- name: Install Istio | |
run: ./tests/gh-actions/install_istio.sh | |
- name: Build & Apply manifests | |
run: | | |
cd apps/centraldashboard/upstream | |
kubectl create ns kubeflow | |
kustomize build overlays/kserve | kubectl apply -f - | |
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout 180s | |
- name: Run Functional Test | |
run: | | |
kubectl port-forward svc/centraldashboard -n kubeflow 8080:80 & | |
sleep 5 | |
curl -s http://localhost:8080 | grep "Kubeflow Central Dashboard" | |
- name: Run Performance Test | |
run: | | |
# Simulate multiple users accessing the CentralDashboard | |
kubectl port-forward svc/centraldashboard -n kubeflow 8080:80 & | |
sleep 5 | |
ab -n 100 -c 10 http://localhost:8080/ |