-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ROSA scalability workflow to commit the result numbers to github
Added Schedule run config for Rosa scalability benchmark
- Loading branch information
Anna Manukyan
committed
Aug 23, 2023
1 parent
b4f4d32
commit 552c5c0
Showing
5 changed files
with
126 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: ROSA Cluster - Scaling Benchmark on Schedule | ||
|
||
on: | ||
schedule: | ||
- cron: '0 7 * * 1-5' # Runs At 07:00 UTC on every day-of-week from Monday through Friday. | ||
|
||
jobs: | ||
|
||
checkout: | ||
name: ROSA Scheduled Scaling Benchmark Run | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run ROSA Scaling Benchmark | ||
run: | | ||
gh workflow run -R keycloak/keycloak-benchmark rosa-scaling-benchmark.yml | ||
if: github.event_name != 'schedule' || github.repository == 'keycloak/keycloak-benchmark' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Test | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
clusterName: | ||
description: 'Name of the cluster' | ||
type: string | ||
|
||
concurrency: cluster_${{ github.event.inputs.clusterName || format('gh-{0}', github.repository_owner) }} | ||
|
||
env: | ||
OPENSHIFT_VERSION: 4.13.6 | ||
REGION: ${{ github.event.inputs.region || vars.AWS_DEFAULT_REGION }} | ||
|
||
jobs: | ||
|
||
checkout: | ||
name: Test jq | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup ROSA CLI | ||
uses: ./.github/actions/rosa-cli-setup | ||
with: | ||
aws-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-default-region: ${{ vars.AWS_DEFAULT_REGION }} | ||
rosa-token: ${{ secrets.ROSA_TOKEN }} | ||
|
||
- name: Calculate and Store CPU usage For Ran Benchmark | ||
uses: ./.github/actions/prometheus-metrics-calc | ||
with: | ||
input: test_out | ||
performedTestName: 'CPU usage for client credential grants' | ||
calculatedMetricName: 'Client Credential Grants per second per 1vCPU' | ||
criteriaValue: 200 | ||
measurementInterval: 600 | ||
isvCPU: false | ||
isMemory: true | ||
|
||
- name: Calculate and Store CPU usage For Ran Benchmark | ||
uses: ./.github/actions/prometheus-metrics-calc | ||
with: | ||
input: test_out | ||
performedTestName: 'CPU usage for client credential grants' | ||
calculatedMetricName: 'Test per 1vCPU' | ||
criteriaValue: 1000 | ||
measurementInterval: 600 | ||
isvCPU: true | ||
isMemory: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
4628.35 | ||
4870.23 |