From 5cde7a9d892a64f6fb42ef85d03437c231809731 Mon Sep 17 00:00:00 2001 From: Joseph Grogan Date: Thu, 16 Jan 2025 00:27:08 -0500 Subject: [PATCH] test fix --- .github/workflows/integration-tests.yml | 3 ++- Makefile | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index b480331..1e8a27b 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -41,11 +41,12 @@ jobs: with: name: reports path: | - **/build/reports/ + **/build/reports/tests/intTest/ - name: Capture Cluster State if: always() run: | kubectl describe pods + kubectl describe pods -n kafka kubectl describe deployments kubectl describe kafkas -n kafka kubectl describe flinkdeployments diff --git a/Makefile b/Makefile index f67a040..d23f9af 100644 --- a/Makefile +++ b/Makefile @@ -25,8 +25,10 @@ undeploy-config: deploy: deploy-config kubectl apply -f ./hoptimator-k8s/src/main/resources/ kubectl apply -f ./deploy + kubectl apply -f ./deploy/dev/rbac.yaml undeploy: undeploy-config + kubectl delete -f ./deploy/dev/rbac.yaml || echo "skipping" kubectl delete -f ./deploy || echo "skipping" kubectl delete -f ./hoptimator-k8s/src/main/resources/ || echo "skipping" @@ -70,7 +72,6 @@ deploy-kafka: deploy deploy-flink kubectl create namespace kafka || echo "skipping" kubectl apply -f "https://strimzi.io/install/latest?namespace=kafka" -n kafka kubectl wait --for=condition=Established=True crds/kafkas.kafka.strimzi.io - kubectl apply -f ./hoptimator-k8s/src/main/resources/ kubectl apply -f ./deploy/dev kubectl apply -f ./deploy/samples/demodb.yaml kubectl apply -f ./deploy/samples/kafkadb.yaml @@ -83,7 +84,6 @@ undeploy-kafka: kubectl delete -f ./deploy/samples/kafkadb.yaml || echo "skipping" kubectl delete -f ./deploy/samples/demodb.yaml || echo "skipping" kubectl delete -f ./deploy/dev || echo "skipping" - kubectl delete -f ./hoptimator-k8s/src/main/resources/ || echo "skipping" kubectl delete namespace kafka || echo "skipping" # Deploys Venice cluster in docker and creates two stores in Venice. Stores are not managed via K8s for now. @@ -107,7 +107,9 @@ integration-tests: deploy-dev-environment deploy-samples kubectl wait kafkatopic.kafka.strimzi.io/existing-topic-1 --for=condition=Ready --timeout=10m -n kafka kubectl wait kafkatopic.kafka.strimzi.io/existing-topic-2 --for=condition=Ready --timeout=10m -n kafka kubectl port-forward -n kafka svc/one-kafka-external-0 9092 & echo $$! > port-forward.pid - ./gradlew intTest; status=$$?; kill `cat port-forward.pid`; exit $$status + ./gradlew intTest; echo $$? > exit-code.status; + kill `cat port-forward.pid` + exit `cat exit-code.status` generate-models: ./generate-models.sh