Skip to content

Commit

Permalink
Changes to add KPIs to e2e action
Browse files Browse the repository at this point in the history
  • Loading branch information
nathangeology committed Jun 26, 2024
1 parent 83a8323 commit 9b3c17f
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/kind-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@ jobs:
matrix:
k8sVersion: ["1.23.x", "1.24.x", "1.25.x", "1.26.x", "1.27.x", "1.28.x", "1.29.x", "1.30.x"]
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up Python 3.10
uses: actions/setup-python@v3
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29
- uses: actions/checkout@v4
with:
python-version: "3.10"
repository: nathangeology/karpenter_evaluate
path: ./karpenter_eval/ #<-- clone https://github.com/org1/repo1
- uses: ./.github/actions/install-deps
with:
k8sVersion: ${{ matrix.k8sVersion }}
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Kind Cluster
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0
- name: check kind cluster and taint nodes
Expand All @@ -39,38 +43,29 @@ jobs:
run: |
make toolchain
make install-kwok
export KWOK_REPO=kind.local
export KIND_CLUSTER_NAME=chart-testing
make apply-with-kind
KWOK_REPO=kind.local KIND_CLUSTER_NAME=chart-testing make apply-with-kind
- name: ping cluster
shell: bash
run: |
sleep 15
kubectl get pods -n kube-system | grep karpenter
kubectl get nodepools
kubectl get pods -A
kubectl describe nodes
- uses: actions/checkout@v4
with:
repository: nathangeology/karpenter_evaluate
path: ./karpenter_eval/ # Installs to a folder in the Karpenter repo for the test
- name: install KPI report dependencies
shell: bash
run: |
pip install awswrangler
pip install tabulate
pip install prometheus-api-client
pip install ./karpenter_eval/
- name: run test suites
shell: bash
run: |
make e2etests
- name: run KPI report
shell: bash
run: |
export e2e_test_output=$(make e2etests | tail -n 50)
line=$(echo "$e2e_test_output" | grep "Printed CSV TO")
directory=$(echo "$line" | sed -E 's|.*Printed CSV TO (/tmp/[0-9]+).*|\1|')
export TEMP_DIR="$directory"
echo "The KPI milestones data is in $TEMP_DIR"
echo "run KPIs here"
python ./karpenter_eval/main.py
python ./karpenter_eval/main.py your_file_here.csv
- name: cleanup
shell: bash
run: |
Expand Down

0 comments on commit 9b3c17f

Please sign in to comment.