From c7d9eb50256cbaa855de1146a8a673842915a4ac Mon Sep 17 00:00:00 2001 From: Jashandeep Sohi Date: Wed, 29 Nov 2023 14:29:36 -0800 Subject: [PATCH] run master bias creation test --- .github/workflows/e2e.yaml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 14f55246..bbd92e4c 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -20,10 +20,32 @@ jobs: - name: Start a Kind cluster uses: helm/kind-action@v1.8.0 with: + cluster_name: kind version: "v0.19.0" node_image: kindest/node:v1.22.17@sha256:9af784f45a584f6b28bce2af84c494d947a05bd709151466489008f80a9ce9d5 wait: "600s" - name: Build docker image run: | - docker build -t banzai . + docker build -t banzai:e2e . + + - name: Copy docker image to nodes + run: | + kind load docker-image banzai:e2e + + - name: Start banzai + run: | + # Replace w/ docker image just built & loaded + sed -i -e "s^@BANZAI_IMAGE@^banzai:e2e^g" banzai/tests/e2e-k8s.yaml + + cat banzai/tests/e2e-k8s.yaml + + # Deploy banzai stack + kubectl apply -f banzai/tests/e2e-k8s.yaml + + # Wait for banzai to be ready + kubectl wait --for=condition=Ready --timeout=60m pod/banzai-e2e-test + + - name: Test Master Bias Creation + run: | + kubectl exec banzai-e2e-test -c banzai-listener -- pytest -s --pyargs banzai.tests --durations=0 --junitxml=/archive/engineering/pytest-master-bias.xml -m master_bias