mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: upload benchmark results to opensearch
Co-authored-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
bfca2638d0
commit
29664fc481
27
.github/actions/e2e_benchmark/action.yml
vendored
27
.github/actions/e2e_benchmark/action.yml
vendored
@ -8,6 +8,15 @@ inputs:
|
||||
kubeconfig:
|
||||
description: "The kubeconfig of the cluster to test."
|
||||
required: true
|
||||
awsOpenSearchDomain:
|
||||
description: "AWS OpenSearch Endpoint Domain to upload the results."
|
||||
required: false
|
||||
awsOpenSearchUsers:
|
||||
description: "AWS OpenSearch User to upload the results."
|
||||
required: false
|
||||
awsOpenSearchPwd:
|
||||
description: "AWS OpenSearch Password to upload the results."
|
||||
required: false
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
@ -126,15 +135,19 @@ runs:
|
||||
benchmarks/constellation-${{ inputs.cloudProvider }}.json
|
||||
name: "benchmarks"
|
||||
|
||||
- name: Check performance comparison result
|
||||
- name: Upload benchmark results to opensearch
|
||||
if: (!env.ACT)
|
||||
shell: bash
|
||||
env:
|
||||
OPENSEARCH_DOMAIN: ${{ inputs.awsOpenSearchDomain }}
|
||||
OPENSEARCH_USER: ${{ inputs.awsOpenSearchUsers }}
|
||||
OPENSEARCH_PWD: ${{ inputs.awsOpenSearchPwd }}
|
||||
run: |
|
||||
if [ $COMPARISON_SUCCESS = true ] ; then
|
||||
echo "Comparison successful"
|
||||
else
|
||||
echo "Comparison failed"
|
||||
exit 1
|
||||
fi
|
||||
curl -XPOST \
|
||||
-u "${OPENSEARCH_USER}:${OPENSEARCH_PWD}" \
|
||||
"${OPENSEARCH_DOMAIN}/benchmarks-${{ inputs.cloudProvider }}-$(date '+%Y')"/_doc \
|
||||
--data-binary @benchmarks/constellation-${{ inputs.cloudProvider }}.json \
|
||||
-H 'Content-Type: application/json'
|
||||
|
||||
- name: Update benchmark records in S3
|
||||
if: github.ref_name == 'main'
|
||||
|
12
.github/actions/e2e_test/action.yml
vendored
12
.github/actions/e2e_test/action.yml
vendored
@ -38,6 +38,15 @@ inputs:
|
||||
gcpClusterServiceAccountKey:
|
||||
description: "Service account to use inside the created Constellation cluster on GCP."
|
||||
required: false
|
||||
awsOpenSearchDomain:
|
||||
description: "AWS OpenSearch Endpoint Domain to upload the benchmark results."
|
||||
required: false
|
||||
awsOpenSearchUsers:
|
||||
description: "AWS OpenSearch User to upload the benchmark results."
|
||||
required: false
|
||||
awsOpenSearchPwd:
|
||||
description: "AWS OpenSearch Password to upload the benchmark results."
|
||||
required: false
|
||||
azureSubscription:
|
||||
description: "The Azure subscription ID to deploy Constellation in."
|
||||
required: false
|
||||
@ -236,6 +245,9 @@ runs:
|
||||
with:
|
||||
cloudProvider: ${{ inputs.cloudProvider }}
|
||||
kubeconfig: ${{ steps.constellation-create.outputs.kubeconfig }}
|
||||
awsOpenSearchDomain: ${{ inputs.awsOpenSearchDomain }}
|
||||
awsOpenSearchUsers: ${{ inputs.awsOpenSearchUsers }}
|
||||
awsOpenSearchPwd: ${{ inputs.awsOpenSearchPwd }}
|
||||
|
||||
- name: Run constellation verify test
|
||||
if: inputs.test == 'verify'
|
||||
|
3
.github/workflows/e2e-test-manual.yml
vendored
3
.github/workflows/e2e-test-manual.yml
vendored
@ -296,6 +296,9 @@ jobs:
|
||||
test: ${{ inputs.test }}
|
||||
kubernetesVersion: ${{ inputs.kubernetesVersion }}
|
||||
keepMeasurements: ${{ inputs.keepMeasurements }}
|
||||
awsOpenSearchDomain: ${{ secrets.AWS_OPENSEARCH_DOMAIN }}
|
||||
awsOpenSearchUsers: ${{ secrets.AWS_OPENSEARCH_USER }}
|
||||
awsOpenSearchPwd: ${{ secrets.AWS_OPENSEARCH_PWD }}
|
||||
azureSubscription: ${{ secrets.AZURE_E2E_SUBSCRIPTION_ID }}
|
||||
azureTenant: ${{ secrets.AZURE_E2E_TENANT_ID }}
|
||||
azureClientID: ${{ secrets.AZURE_E2E_CLIENT_ID }}
|
||||
|
3
.github/workflows/e2e-test-weekly.yml
vendored
3
.github/workflows/e2e-test-weekly.yml
vendored
@ -127,6 +127,9 @@ jobs:
|
||||
cloudProvider: ${{ matrix.provider }}
|
||||
osImage: ${{ needs.find-latest-image.outputs.image }}
|
||||
kubernetesVersion: ${{ matrix.version }}
|
||||
awsOpenSearchDomain: ${{ secrets.AWS_OPENSEARCH_DOMAIN }}
|
||||
awsOpenSearchUsers: ${{ secrets.AWS_OPENSEARCH_USER }}
|
||||
awsOpenSearchPwd: ${{ secrets.AWS_OPENSEARCH_PWD }}
|
||||
azureSubscription: ${{ secrets.AZURE_E2E_SUBSCRIPTION_ID }}
|
||||
azureTenant: ${{ secrets.AZURE_E2E_TENANT_ID }}
|
||||
azureClientID: ${{ secrets.AZURE_E2E_CLIENT_ID }}
|
||||
|
Loading…
Reference in New Issue
Block a user