Skip to content

Commit

Permalink
test: install kfp on github periodic functional tests workflow (#10859)
Browse files Browse the repository at this point in the history
* test: add kfp cluster to functional tests workflow

Signed-off-by: Igor Kvachenok <igor.kvachenok@prokube.ai>

* test: portforward kfp cluster for functional tests

Signed-off-by: Igor Kvachenok <igor.kvachenok@prokube.ai>

---------

Signed-off-by: Igor Kvachenok <igor.kvachenok@prokube.ai>
  • Loading branch information
tmvfb authored Jul 2, 2024
1 parent 2fb4922 commit 7d2ec39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/periodic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create k8s Kind Cluster
uses: container-tools/kind-action@v2
with:
cluster_name: kfp-tekton
kubectl_version: v1.29.2
version: v0.22.0
node_image: kindest/node:v1.29.2
- name: Create KFP cluster
uses: ./.github/actions/kfp-cluster
- name: Port forward kfp apiserver
run: |
nohup kubectl port-forward --namespace kubeflow svc/ml-pipeline 8888:8888 &
- 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 "http://localhost:8888" # host configured in workflow file

0 comments on commit 7d2ec39

Please sign in to comment.