From 3335d6c551544883af11316bc0b9bcd6a3a0c99d Mon Sep 17 00:00:00 2001 From: Vibhav Bobade Date: Fri, 29 Mar 2024 15:51:28 +0530 Subject: [PATCH] deploy chart on worker updates --- .github/workflows/build-operator.yaml | 2 +- .github/workflows/e2e-perf.yaml | 9 ++++++--- hack/e2e/perf/viz/generate_graph.py | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-operator.yaml b/.github/workflows/build-operator.yaml index c9114976..efc5f27f 100644 --- a/.github/workflows/build-operator.yaml +++ b/.github/workflows/build-operator.yaml @@ -41,7 +41,7 @@ jobs: image: repository: registry.uffizzi.com/${{ env.UUID_OPERATOR }} tag: 48h - concurrent: 5 + concurrent: 1 EOF cat helm-values.yaml # For debugging, to check the contents of the file. - name: Upload Helm Values as Artifact diff --git a/.github/workflows/e2e-perf.yaml b/.github/workflows/e2e-perf.yaml index cb1dd180..2d38b231 100644 --- a/.github/workflows/e2e-perf.yaml +++ b/.github/workflows/e2e-perf.yaml @@ -106,15 +106,18 @@ jobs: - name: Time taken to create UffizziClusters with different numbers of workers run: | + n_simultaneous_clusters=3 for n_workers in $(seq 1 5 31); do - + # update concurrent workers yq -i '.concurrent = "$n_workers"' helm-values.yaml - n_simultaneous_clusters=3 + + # upgrade helm chart + helm upgrade --install --wait pr-${{ github.event.pull_request.number }} \ + ./chart -f helm-values.yaml # time taken to create n clusters simultaneously time=$(bash hack/e2e/perf/01-multicluster.sh $n_simultaneous_clusters) bash $E2E_UTILS update_json_with_workers_and_time $n_workers $time $PERF_DATA_FILE - done cat $PERF_DATA_FILE diff --git a/hack/e2e/perf/viz/generate_graph.py b/hack/e2e/perf/viz/generate_graph.py index f31d8bf0..999fb3ca 100644 --- a/hack/e2e/perf/viz/generate_graph.py +++ b/hack/e2e/perf/viz/generate_graph.py @@ -40,7 +40,7 @@ # Add title, labels, grid, and legend plt.title('Performance Comparison: PR vs Main Branch') -plt.xlabel('Number of Workers') +plt.xlabel('Number of Workers (n_simultaneous_clusters=3') plt.ylabel('Time Taken (seconds)') plt.grid(True) plt.legend()